You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.5 KiB
76 lines
2.5 KiB
/***************************************************************************
|
|
* Copyright (C) 2005 by Tarek Saidi *
|
|
* tarek.saidi@arcor.de *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; version 2 of the License. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program; if not, write to the *
|
|
* Free Software Foundation, Inc., *
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
***************************************************************************/
|
|
|
|
#ifndef _MAIN_H_
|
|
#define _MAIN_H_
|
|
|
|
#include <QLabel>
|
|
#include <QPixmap>
|
|
#include <QString>
|
|
#include <QColor>
|
|
#include <QIcon>
|
|
#include <QFile>
|
|
|
|
#define APP_DISPLAY_NAME "KeePassX"
|
|
#define APP_CODE_NAME "keepassx"
|
|
|
|
#define APP_SHORT_FUNC "Password Manager"
|
|
#define APP_LONG_FUNC "Cross Platform Password Manager"
|
|
|
|
#define APP_VERSION "0.3.0a"
|
|
|
|
#define BUILTIN_ICONS 65
|
|
|
|
|
|
//QString findPlugin(const QString& filename); //TODO Plugins
|
|
|
|
class KpxConfig;
|
|
extern QString PluginLoadError;
|
|
extern KpxConfig *config;
|
|
extern QString AppDir;
|
|
extern QString HomeDir;
|
|
extern QString DataDir;
|
|
extern bool TrActive;
|
|
extern QString DetailViewTemplate;
|
|
extern QPixmap *EntryIcons;
|
|
|
|
|
|
class CmdLineArgs {
|
|
public:
|
|
CmdLineArgs();
|
|
bool parse(const QStringList& argv);
|
|
static void printHelp();
|
|
QString error() {return Error;}
|
|
QString file() {return File;}
|
|
QString configLocation() {return ConfigLocation;}
|
|
QString language() {return Language;}
|
|
bool startMinimized() {return StartMinimized;}
|
|
bool startLocked() {return StartLocked;}
|
|
bool help() {return Help;}
|
|
private:
|
|
QString Error;
|
|
QString File;
|
|
QString ConfigLocation;
|
|
QString Language;
|
|
bool StartMinimized;
|
|
bool StartLocked;
|
|
bool Help;
|
|
};
|
|
|
|
#endif
|
|
|