summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwminit.h
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/pwminit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwminit.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/pwmanager/pwmanager/pwminit.h b/pwmanager/pwmanager/pwminit.h
index bf72093..32d1b4f 100644
--- a/pwmanager/pwmanager/pwminit.h
+++ b/pwmanager/pwmanager/pwminit.h
@@ -11,73 +11,72 @@
/***************************************************************************
* copyright (C) 2004 by Ulf Schenk
* This file is originaly based on version 1.0.1 of pwmanager
* and was modified to run on embedded devices that run microkde
*
* $Id$
**************************************************************************/
#ifndef __PWMINIT_H
#define __PWMINIT_H
-#include <qvaluelist.h>
+#include <q3valuelist.h>
#include <qobject.h>
#ifndef PWM_EMBEDDED
#include <kuniqueapplication.h>
#else //PWM_EMBEDDED
#ifndef DESKTOP_VERSION
#include <qpe/qpeapplication.h>
#else //DESKTOP_VERSION
#include <qapplication.h>
-#include <qplatinumstyle.h>
#endif //DESKTOP_VERSION
#include <kapplication.h>
#endif //PWM_EMBEDDED
#include "globalstuff.h"
class DCOPClient;
class KWalletEmu;
class PwMKeyCard;
class KApplication;
class QWidget;
class PwM;
class PwMTray;
class PwMDoc;
class PwMInit;
/** main application class */
#ifndef PWM_EMBEDDED
-//MOC_SKIP_BEGIN
+#ifndef Q_MOC_RUN
class PwMApplication : public KUniqueApplication
{
public:
PwMApplication(bool allowStyles=true,
bool GUIenabled=true,
bool configUnique=false)
: KUniqueApplication(allowStyles, GUIenabled, configUnique)
, init (0)
{ }
~PwMApplication()
{ delete_ifnot_null(init); }
int newInstance();
protected:
PwMInit *init;
};
-//MOC_SKIP_END
+#endif
#else //PWM_EMBEDDED
#ifndef DESKTOP_VERSION
class PwMApplication : public QPEApplication
{
public:
PwMApplication(int & argc, char ** argv);
~PwMApplication();
int newInstance();
protected:
@@ -145,25 +144,25 @@ public:
DCOPClient * dcopClient()
{ return _dcopClient; }
/** returns a pointer to the KWallet emulation */
KWalletEmu * kwalletEmu()
{ return _kwalletEmu; }
/** returns a pointer to the keycard interface */
PwMKeyCard * keycard()
{ return _keycard; }
/** returns a pointer to the tray icon */
PwMTray * tray()
{ return _tray; }
/** returns a list of all open main windows */
- const QValueList<PwM *> * mainWndList()
+ const Q3ValueList<PwM *> * mainWndList()
{ return &_mainWndList; }
/** create a new document */
PwMDoc * createDoc();
/** create a new PwM main window */
PwM * createMainWnd(const QString &loadFile = QString::null,
bool loadFileDeepLocked = false,
bool virginity = true,
PwMDoc *doc = 0,
bool minimized = false);
/** (re)initialize the KWallet emulation */
void initKWalletEmu(bool forceDisable = false, bool forceReload = false);
@@ -205,18 +204,18 @@ protected:
PwMApplication *app;
/** pointer to the current widget the user is dealing with */
QWidget *_curWidget;
/** pointer to the dcop client */
DCOPClient *_dcopClient;
/** pointer to the KWallet emulation */
KWalletEmu *_kwalletEmu;
/** pointer to the keycard interface */
PwMKeyCard *_keycard;
/** pointer to the tray icon */
PwMTray *_tray;
/** list of all open main windows */
- QValueList<PwM *> _mainWndList;
+ Q3ValueList<PwM *> _mainWndList;
/** saved command line options. */
savedCmd_t savedCmd;
};
#endif // __PWMINIT_H