1 /***************************************************************************
2 * Copyright (C) 2005-2008 by Tarek Saidi *
3 * tarek.saidi@arcor.de *
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. *
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. *
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 ***************************************************************************/
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"
31 #define BUILTIN_ICONS 69
33 #define KEEPASS_LITTLE_ENDIAN
34 //#define KEEPASS_BIG_ENDIAN
36 // often used, stable header files for pch
43 #include <QApplication>
52 #include <QDomElement>
61 #include <QMessageBox>
63 #include <QPaintEvent>
65 #include <QPushButton>
68 #include <QStringList>
71 #include <QTreeWidget>
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"
82 #include "KpxConfig.h"
84 #include "plugins/interfaces/IIconTheme.h"
86 extern QString PluginLoadError;
87 extern IIconTheme* IconLoader;
88 extern KpxConfig *config;
89 extern QString AppDir;
90 extern QString HomeDir;
91 extern QString DataDir;
93 extern QString DetailViewTemplate;
94 extern QPixmap *EntryIcons;
95 extern bool EventOccurred;
96 extern bool EventOccurredBlock;