Release 0.4.3-3maemo with patches to disable menus/actions, add ScrollArea and fix...
[keepassx] / src / keepassx.h
1 /***************************************************************************
2  *   Copyright (C) 2005-2008 by Tarek Saidi                                *
3  *   tarek.saidi@arcor.de                                                  *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; version 2 of the License.               *
8  *                                                                         *
9  *   This program is distributed in the hope that it will be useful,       *
10  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
11  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
12  *   GNU General Public License for more details.                          *
13  *                                                                         *
14  *   You should have received a copy of the GNU General Public License     *
15  *   along with this program; if not, write to the                         *
16  *   Free Software Foundation, Inc.,                                       *
17  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
18  ***************************************************************************/
19
20 #ifndef KEEPASSX_H_
21 #define KEEPASSX_H_
22
23 // global defines
24
25 #define APP_DISPLAY_NAME    "KeePassX"
26 #define APP_CODE_NAME       "keepassx"
27 #define APP_SHORT_FUNC      "Password Manager"
28 #define APP_LONG_FUNC       "Cross Platform Password Manager"
29 #define APP_VERSION         "0.4.3"
30
31 #define BUILTIN_ICONS 69
32
33 #define KEEPASS_LITTLE_ENDIAN
34 //#define KEEPASS_BIG_ENDIAN
35
36 // often used, stable header files for pch
37
38 #ifdef __cplusplus
39
40 #include <cstdlib>
41 #include <cmath>
42
43 #include <QApplication>
44 #include <QBitArray>
45 #include <QByteArray>
46 #include <QCheckBox>
47 #include <QColor>
48 #include <QComboBox>
49 #include <QDateTime>
50 #include <QDialog>
51 #include <QDir>
52 #include <QDomElement>
53 #include <QFile>
54 #include <QHash>
55 #include <QIcon>
56 #include <QImage>
57 #include <QLabel>
58 #include <QLineEdit>
59 #include <QList>
60 #include <QMenu>
61 #include <QMessageBox>
62 #include <QPainter>
63 #include <QPaintEvent>
64 #include <QPixmap>
65 #include <QPushButton>
66 #include <QSettings>
67 #include <QString>
68 #include <QStringList>
69 #include <QTextCodec>
70 #include <QTimer>
71 #include <QTreeWidget>
72 #include <QUrl>
73
74 #include "crypto/aescpp.h"
75 #include "crypto/yarrow.h"
76 #include "lib/bookmarks.h"
77 #include "lib/FileDialogs.h"
78 #include "lib/SecString.h"
79 #include "lib/tools.h"
80 #include "lib/UrlLabel.h"
81 #include "Database.h"
82 #include "KpxConfig.h"
83
84 #include "plugins/interfaces/IIconTheme.h"
85
86 extern QString PluginLoadError;
87 extern IIconTheme* IconLoader;
88 extern KpxConfig *config;
89 extern QString AppDir;
90 extern QString HomeDir;
91 extern QString DataDir;
92 extern bool TrActive;
93 extern QString DetailViewTemplate;
94 extern QPixmap *EntryIcons;
95 extern bool EventOccurred;
96 extern bool EventOccurredBlock;
97
98 #endif //__cplusplus
99 #endif //KEEPASS_X_