Projects/Plasma/DBusInterface: Difference between revisions
< Projects
No edit summary |
(removed "javascript:void(0)" from the middle of QStringList) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
= D-Bus interface planning = | = D-Bus interface planning = | ||
== Preamble == | |||
'''ivan: Please don't edit this document until this notice is removed''' | |||
== Summary == | == Summary == | ||
Line 11: | Line 15: | ||
== Interface == | == Interface == | ||
*Global functions (Corona)<br> | *Global functions (Corona)<br> | ||
**int numScreens()<br> | **int numScreens()<br> | ||
**ImmutabilityType immutability() | **ImmutabilityType immutability() | ||
**void setImmutability(IT value) | **void setImmutability(IT value) | ||
**''signal:'' immutabilityChanged(IT value) | **''signal:'' immutabilityChanged(IT value) | ||
**void requestConfigSync() | **void requestConfigSync() | ||
Line 36: | Line 40: | ||
**'''QStringList applets() '''<br>returns a list of unique applet IDs.<br> | **'''QStringList applets() '''<br>returns a list of unique applet IDs.<br> | ||
**'''QStringList appletsForContainment(QString containmentID)'''<br>returns a list of applet IDs that belong to the specified containment | **'''QStringList appletsForContainment(QString containmentID)'''<br>returns a list of applet IDs that belong to the specified containment | ||
**''' | **'''QStringList appletsForType(QString type)'''<br>returns a list of applets of the specified type | ||
**'''QMap <...> appletInfo(QString id)'''<br>returns additional info about the specified applet | **'''QMap <...> appletInfo(QString id)'''<br>returns additional info about the specified applet | ||
** | ** | ||
*Other functions | *Other functions |
Latest revision as of 20:59, 27 August 2009
D-Bus interface planning
Preamble
ivan: Please don't edit this document until this notice is removed
Summary
This document serves for planning and revising the future plasma-desktop D-Bus interface.
Namespace
The namespace to be used is org.kde.plasma-desktop with the path ???
Interface
- Global functions (Corona)
- int numScreens()
- ImmutabilityType immutability()
- void setImmutability(IT value)
- signal: immutabilityChanged(IT value)
- void requestConfigSync()
- int numScreens()
- Activity functions
- QStringList activities()
returns a list of activity IDs - QMap < QString, QVariant > activityInfo(QString id)
returns additional info about an activity - name, type, ... - QString currentActivity()
returns the ID of the current activity (in case of multi-monitor setups, returns the activity for the monitor that has the mouse cursor???) - QStringList currentActivities()
returns the list of open activities (in case of non-multi-monitor setups, returns just one item) - void setCurrentActivity(QString id)
switches to the specified activity - QString newActivity(QString name = "", QString type = "")
creates a new activity with the specified name and type, and returns the ID. If an argument is empty, the default values are used - void deleteActivity(QString id)
removes the specified activity - QMap < QString, QVariant > wallpaper()
returns the info about the active wallpaper plugin - name and serialized data
- QStringList activities()
- Containment functions
- QStringList containments()
returns a list of unique containment IDs. - QString containmentForScreen(int screen, int desktop = -1)
returns the containment for the psecified screen - QMap < QString, QVariant > containmentInfo(QString id)
returns a map containing containment type, position... - QString addContainment(QString type, QVariantList args)
creates a containment with the specified type (panel, ...) and returns its ID - void deleteContainment(QString id)
deletes the specified containment
- QStringList containments()
- Applet functions
- QStringList applets()
returns a list of unique applet IDs. - QStringList appletsForContainment(QString containmentID)
returns a list of applet IDs that belong to the specified containment - QStringList appletsForType(QString type)
returns a list of applets of the specified type - QMap <...> appletInfo(QString id)
returns additional info about the specified applet
- QStringList applets()
- Other functions