summaryrefslogtreecommitdiffstats
path: root/ksmserver/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'ksmserver/client.h')
-rw-r--r--ksmserver/client.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/ksmserver/client.h b/ksmserver/client.h
new file mode 100644
index 000000000..e478cfc31
--- /dev/null
+++ b/ksmserver/client.h
@@ -0,0 +1,63 @@
+/*****************************************************************
+ksmserver - the KDE session management server
+
+Copyright (C) 2000 Matthias Ettrich <[email protected]>
+******************************************************************/
+
+#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 <tqobject.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqsocketnotifier.h>
+#include <tqptrlist.h>
+#include <tqvaluelist.h>
+#include <tqcstring.h>
+#include <tqdict.h>
+#include <tqptrqueue.h>
+#include <tqptrdict.h>
+#include <tdeapplication.h>
+#include <tqtimer.h>
+#include <tqdatetime.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;
+
+ TQPtrList<SmProp> properties;
+ SmProp* property( const char* name ) const;
+
+ TQString program() const;
+ TQStringList restartCommand() const;
+ TQStringList discardCommand() const;
+ int restartStyleHint() const;
+ TQString userId() const;
+ const char* clientId() { return id ? id : ""; }
+
+ TQDateTime terminationRequestTimeStamp;
+
+private:
+ const char* id;
+ SmsConn smsConn;
+};
+
+#endif