summaryrefslogtreecommitdiffstats
path: root/ksmserver/client.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /ksmserver/client.h
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksmserver/client.h')
-rw-r--r--ksmserver/client.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/ksmserver/client.h b/ksmserver/client.h
new file mode 100644
index 000000000..46dc28fa2
--- /dev/null
+++ b/ksmserver/client.h
@@ -0,0 +1,60 @@
+/*****************************************************************
+ksmserver - the KDE session management server
+
+Copyright (C) 2000 Matthias Ettrich <ettrich@kde.org>
+******************************************************************/
+
+#ifndef CLIENT_H
+#define CLIENT_H
+
+// needed to avoid clash with INT8 defined in X11/Xmd.h on solaris
+#define QT_CLEAN_NAMESPACE 1
+#include <qobject.h>
+#include <qstring.h>
+#include <qstringlist.h>
+#include <qsocketnotifier.h>
+#include <qptrlist.h>
+#include <qvaluelist.h>
+#include <qcstring.h>
+#include <qdict.h>
+#include <qptrqueue.h>
+#include <qptrdict.h>
+#include <kapplication.h>
+#include <qtimer.h>
+#include <dcopobject.h>
+
+#include "server2.h"
+
+class KSMListener;
+class KSMConnection;
+class KSMClient
+{
+public:
+ KSMClient( SmsConn );
+ ~KSMClient();
+
+ void registerClient( const char* previousId = 0 );
+ SmsConn connection() const { return smsConn; }
+
+ void resetState();
+ uint saveYourselfDone : 1;
+ uint pendingInteraction : 1;
+ uint waitForPhase2 : 1;
+ uint wasPhase2 : 1;
+
+ QPtrList<SmProp> properties;
+ SmProp* property( const char* name ) const;
+
+ QString program() const;
+ QStringList restartCommand() const;
+ QStringList discardCommand() const;
+ int restartStyleHint() const;
+ QString userId() const;
+ const char* clientId() { return id ? id : ""; }
+
+private:
+ const char* id;
+ SmsConn smsConn;
+};
+
+#endif