Kennwortmanager KeePassX Weiterentwicklung der Version 1
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
keepassx1/src/main.h

58 lines
2.3 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_
QString findPlugin(const QString& filename);
void loadImages();
bool loadTranslation(QTranslator* tr,const QString& prefix,const QString& LocaleCode,const QStringList& SearchPaths);
void initAppPaths(int argc, char **argv);
class CmdLineArgs {
public:
CmdLineArgs();
bool parse(const QStringList& argv);
bool preparse(int argc,char** 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;
};
class EventListener : public QObject {
Q_OBJECT
protected:
bool eventFilter(QObject*, QEvent* event);
};
#endif