summaryrefslogtreecommitdiffabout
path: root/pwmanager/pwmanager/pwm.h
Side-by-side diff
Diffstat (limited to 'pwmanager/pwmanager/pwm.h') (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/pwm.h39
1 files changed, 38 insertions, 1 deletions
diff --git a/pwmanager/pwmanager/pwm.h b/pwmanager/pwmanager/pwm.h
index 36a8b5b..2fe7352 100644
--- a/pwmanager/pwmanager/pwm.h
+++ b/pwmanager/pwmanager/pwm.h
@@ -30,11 +30,11 @@
#include <kapp.h>
#include <kdeversion.h>
#else
+#include <ksyncmanager.h>
#endif
#include <kaction.h>
-
#include <qglobal.h>
#include "pwmview.h"
@@ -46,9 +46,16 @@
class PwMInit;
+class KSyncManager;
/** PwM is the base class of the project */
+#ifndef PWM_EMBEDDED
+//MOC_SKIP_BEGIN
class PwM : public KMainWindow
+//MOC_SKIP_END
+#else
+class PwM : public KMainWindow, public KSyncInterface
+#endif
{
Q_OBJECT
public:
@@ -256,6 +263,36 @@ protected:
bool forceQuit;
/** force minimize this window to the tray */
bool forceMinimizeToTray;
+
+
+
+
+ private:
+#ifdef PWM_EMBEDDED
+ //this are the overwritten callbackmethods from the syncinterface
+ virtual bool sync(KSyncManager* manager, QString filename, int mode);
+ virtual bool syncExternal(KSyncManager* manager, QString resource);
+
+ //called by the syncmanager to indicate that the work has to marked as dirty.
+ virtual void sync_setModified();
+ //called by the syncmanager to ask if the dirty flag is set.
+ virtual bool sync_isModified();
+ //called by the syncmanager to indicate that the work has to be saved.
+ virtual void sync_save();
+
+ // LR *******************************
+ // sync stuff!
+ QPopupMenu *syncPopup;
+ KSyncManager* syncManager;
+#endif
+
+
+
+
+
+
+
+
};
#endif