Plasma/PortingTolibplasma2: Difference between revisions

From KDE Community Wiki
No edit summary
No edit summary
Line 3: Line 3:
* mimeDataForMatch is now virtual; does not need to be a slot
* mimeDataForMatch is now virtual; does not need to be a slot
* mimeDataForMatch is now passed the QueryMatch by reference rather than as a pointer
* mimeDataForMatch is now passed the QueryMatch by reference rather than as a pointer
== AbstractToolBox ==
* protected Q_SLOTS that were used as virtual methods (restore, save, reposition) are now proper virtuals


== Applet ==
== Applet ==
Line 25: Line 28:
== Service ==
== Service ==
* parametersFromDescription now returns an unsorted QHash rather than a QMap
* parametersFromDescription now returns an unsorted QHash rather than a QMap
* creatJob now takes a QHash instead of a QMap
== ServiceJob ==
* QMaps have been replaced with QHashes


== Wallpaper ==
== Wallpaper ==
* listWallpapersForMimetype becomes listWallpapersForMimeType
* listWallpapersForMimetype becomes listWallpapersForMimeType

Revision as of 16:58, 26 May 2011

AbstractRunner

  • init() is now virtual; does not need to be a slot
  • mimeDataForMatch is now virtual; does not need to be a slot
  • mimeDataForMatch is now passed the QueryMatch by reference rather than as a pointer

AbstractToolBox

  • protected Q_SLOTS that were used as virtual methods (restore, save, reposition) are now proper virtuals

Applet

  • listAppletInfoForMimetype becomes listAppletInfoForMimeType

Containment

  • listContainmentsForMimetype becomes listContainmentsForMimeType
  • context() was removed
  • setActivity(QString) and activity() now use activity IDs rather than names

Context

  • Plasma::Context has been removed; the Activity DataEngines or KActivity* classes should be used instead.

PackageStructure

  • setMimetypes -> setMimeTypes
  • setDefaultMimetypes -> setDefaultMimeTypes
  • mimetypes(const char*) -> mimeTypes(const char*)

Plasma Namespace

  • ContextConstraint is no longer a member of the Plasma::Constraint enumeration

Service

  • parametersFromDescription now returns an unsorted QHash rather than a QMap
  • creatJob now takes a QHash instead of a QMap

ServiceJob

  • QMaps have been replaced with QHashes

Wallpaper

  • listWallpapersForMimetype becomes listWallpapersForMimeType