Changeset View
Changeset View
Standalone View
Standalone View
logind.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 70 | private: | |||
---|---|---|---|---|---|
73 | * The DBusConnection argument is needed for the unit test. Logind uses the system bus | 73 | * The DBusConnection argument is needed for the unit test. Logind uses the system bus | ||
74 | * on which the unit test's fake logind cannot register to. Thus the unit test need to | 74 | * on which the unit test's fake logind cannot register to. Thus the unit test need to | ||
75 | * be able to do everything over the session bus. This ctor allows the LogindTest to | 75 | * be able to do everything over the session bus. This ctor allows the LogindTest to | ||
76 | * create a LogindIntegration which listens on the session bus. | 76 | * create a LogindIntegration which listens on the session bus. | ||
77 | **/ | 77 | **/ | ||
78 | explicit LogindIntegration(const QDBusConnection &connection, QObject *parent = nullptr); | 78 | explicit LogindIntegration(const QDBusConnection &connection, QObject *parent = nullptr); | ||
79 | void logindServiceRegistered(); | 79 | void logindServiceRegistered(); | ||
80 | void connectSessionPropertiesChanged(); | 80 | void connectSessionPropertiesChanged(); | ||
81 | enum SessionController { | ||||
82 | SessionControllerLogind, | ||||
83 | SessionControllerConsoleKit, | ||||
84 | }; | ||||
85 | void setupSessionController(SessionController controller); | ||||
81 | void getSeat(); | 86 | void getSeat(); | ||
82 | QDBusConnection m_bus; | 87 | QDBusConnection m_bus; | ||
83 | QDBusServiceWatcher *m_logindServiceWatcher; | 88 | QDBusServiceWatcher *m_logindServiceWatcher; | ||
84 | bool m_connected; | 89 | bool m_connected; | ||
85 | QString m_sessionPath; | 90 | QString m_sessionPath; | ||
86 | bool m_sessionControl; | 91 | bool m_sessionControl; | ||
87 | bool m_sessionActive; | 92 | bool m_sessionActive; | ||
88 | int m_vt = -1; | 93 | int m_vt = -1; | ||
89 | QString m_seatPath; | 94 | QString m_seatPath; | ||
95 | QString m_sessionControllerName; | ||||
96 | QString m_sessionControllerService; | ||||
97 | QString m_sessionControllerPath; | ||||
98 | QString m_sessionControllerManagerInterface; | ||||
99 | QString m_sessionControllerSeatInterface; | ||||
100 | QString m_sessionControllerSessionInterface; | ||||
101 | QString m_sessionControllerActivateProperty; | ||||
90 | KWIN_SINGLETON(LogindIntegration) | 102 | KWIN_SINGLETON(LogindIntegration) | ||
91 | }; | 103 | }; | ||
92 | 104 | | |||
93 | } | 105 | } | ||
94 | 106 | | |||
95 | #endif | 107 | #endif |