Changeset View
Changeset View
Standalone View
Standalone View
dbusinterface.h
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Line(s) | 179 | { | |||
---|---|---|---|---|---|
195 | Q_PROPERTY(QString current READ current WRITE setCurrent NOTIFY currentChanged) | 195 | Q_PROPERTY(QString current READ current WRITE setCurrent NOTIFY currentChanged) | ||
196 | /** | 196 | /** | ||
197 | * Whether navigation in the desktop layout wraps around at the borders. | 197 | * Whether navigation in the desktop layout wraps around at the borders. | ||
198 | **/ | 198 | **/ | ||
199 | Q_PROPERTY(bool navigationWrappingAround READ isNavigationWrappingAround WRITE setNavigationWrappingAround NOTIFY navigationWrappingAroundChanged) | 199 | Q_PROPERTY(bool navigationWrappingAround READ isNavigationWrappingAround WRITE setNavigationWrappingAround NOTIFY navigationWrappingAroundChanged) | ||
200 | 200 | | |||
201 | /** | 201 | /** | ||
202 | * list of key/value pairs which every one of them is representing a desktop | 202 | * list of key/value pairs which every one of them is representing a desktop | ||
203 | */ | 203 | **/ | ||
204 | Q_PROPERTY(KWin::DBusDesktopDataVector desktops READ desktops NOTIFY desktopsChanged); | 204 | Q_PROPERTY(KWin::DBusDesktopDataVector desktops READ desktops NOTIFY desktopsChanged); | ||
205 | 205 | | |||
206 | public: | 206 | public: | ||
207 | VirtualDesktopManagerDBusInterface(VirtualDesktopManager *parent); | 207 | VirtualDesktopManagerDBusInterface(VirtualDesktopManager *parent); | ||
208 | ~VirtualDesktopManagerDBusInterface() = default; | 208 | ~VirtualDesktopManagerDBusInterface() = default; | ||
209 | 209 | | |||
210 | uint count() const; | 210 | uint count() const; | ||
211 | 211 | | |||
Show All 17 Lines | 223 | Q_SIGNALS: | |||
229 | void desktopDataChanged(const QString &id, KWin::DBusDesktopDataStruct); | 229 | void desktopDataChanged(const QString &id, KWin::DBusDesktopDataStruct); | ||
230 | void desktopCreated(const QString &id, KWin::DBusDesktopDataStruct); | 230 | void desktopCreated(const QString &id, KWin::DBusDesktopDataStruct); | ||
231 | void desktopRemoved(const QString &id); | 231 | void desktopRemoved(const QString &id); | ||
232 | 232 | | |||
233 | public Q_SLOTS: | 233 | public Q_SLOTS: | ||
234 | /** | 234 | /** | ||
235 | * Create a desktop with a new name at a given position | 235 | * Create a desktop with a new name at a given position | ||
236 | * note: the position starts from 1 | 236 | * note: the position starts from 1 | ||
237 | */ | 237 | **/ | ||
238 | void createDesktop(uint position, const QString &name); | 238 | void createDesktop(uint position, const QString &name); | ||
239 | void setDesktopName(const QString &id, const QString &name); | 239 | void setDesktopName(const QString &id, const QString &name); | ||
240 | void removeDesktop(const QString &id); | 240 | void removeDesktop(const QString &id); | ||
241 | 241 | | |||
242 | private: | 242 | private: | ||
243 | VirtualDesktopManager *m_manager; | 243 | VirtualDesktopManager *m_manager; | ||
244 | }; | 244 | }; | ||
245 | 245 | | |||
246 | } // namespace | 246 | } // namespace | ||
247 | 247 | | |||
248 | #endif // KWIN_DBUS_INTERFACE_H | 248 | #endif // KWIN_DBUS_INTERFACE_H |