Changeset View
Changeset View
Standalone View
Standalone View
ksmserver/server.h
Show First 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | |||||
57 | #define SESSION_BY_USER "saved by user" | 57 | #define SESSION_BY_USER "saved by user" | ||
58 | 58 | | |||
59 | class KProcess; | 59 | class KProcess; | ||
60 | 60 | | |||
61 | class KSMListener; | 61 | class KSMListener; | ||
62 | class KSMConnection; | 62 | class KSMConnection; | ||
63 | class KSMClient; | 63 | class KSMClient; | ||
64 | 64 | | |||
65 | class OrgKdeKWinSessionInterface; | ||||
65 | 66 | | |||
66 | enum SMType { SM_ERROR, SM_WMCOMMAND, SM_WMSAVEYOURSELF }; | 67 | enum SMType { SM_ERROR, SM_WMCOMMAND, SM_WMSAVEYOURSELF }; | ||
67 | struct SMData | 68 | struct SMData | ||
68 | { | 69 | { | ||
69 | SMType type; | 70 | SMType type; | ||
70 | QStringList wmCommand; | 71 | QStringList wmCommand; | ||
71 | QString wmClientMachine; | 72 | QString wmClientMachine; | ||
72 | QString wmclass1, wmclass2; | 73 | QString wmclass1, wmclass2; | ||
▲ Show 20 Lines • Show All 177 Lines • ▼ Show 20 Line(s) | 217 | private: | |||
250 | 251 | | |||
251 | QDBusMessage m_performLogoutCall; | 252 | QDBusMessage m_performLogoutCall; | ||
252 | QDBusMessage m_restoreSessionCall; | 253 | QDBusMessage m_restoreSessionCall; | ||
253 | 254 | | |||
254 | //subSession stuff | 255 | //subSession stuff | ||
255 | QList<KSMClient*> clientsToKill; | 256 | QList<KSMClient*> clientsToKill; | ||
256 | QList<KSMClient*> clientsToSave; | 257 | QList<KSMClient*> clientsToSave; | ||
257 | 258 | | |||
259 | OrgKdeKWinSessionInterface *m_kwinInterface; | ||||
260 | | ||||
258 | int sockets[2]; | 261 | int sockets[2]; | ||
259 | friend bool readFromPipe(int pipe); | 262 | friend bool readFromPipe(int pipe); | ||
260 | }; | 263 | }; | ||
261 | 264 | | |||
262 | #endif | 265 | #endif |