Jump to content

Plasma/PortingTolibplasma2: Difference between revisions

From KDE Community Wiki
Notmart (talk | contribs)
Notmart (talk | contribs)
No edit summary
Line 43: Line 43:
* added bool isUsed()
* added bool isUsed()
* removed protected checkUsage()
* removed protected checkUsage()
== Dialog ==
* removed from libplasma
* will have to be reimplemented in QML bindings in PlasmaCore
* means will be visible from QML, not from the C++ part


== Extenders ==
== Extenders ==
Line 59: Line 64:
* ContextConstraint is no longer a member of the Plasma::Constraint enumeration
* ContextConstraint is no longer a member of the Plasma::Constraint enumeration
* ZoomDirection, ZoomLevel and ScalingFactor were removed
* ZoomDirection, ZoomLevel and ScalingFactor were removed
== PopupApplet ==
* Removed from libplasma
* Every applet will have to be able to collapse in a popup


== Service ==
== Service ==

Revision as of 16:11, 9 November 2012

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
  • The BackgroundHints enumeration is now part of the Plasma namespace and no longer a flag but a plain enumeration.
  • config(const QString &name) has been removed as redundant to KConfigGroup(&config(), name)
  • removed screenGeometry()
  • removed all geometry functions: size(), geometry(), transform(), zValue(), raise(), lower()

Containment

  • listContainmentsForMimetype becomes listContainmentsForMimeType
  • context() was removed
  • setActivity(QString) and activity() now use activity IDs rather than names
  • zoomRequested signal was removed
  • QGraphicsItem *toolBoxItem() was removed
  • geometry functions removed: resize() setMinimumSize(), setMaximumSize()
  • removed acceptDrops() / setAcceptDrops()

ContainmentActions

  • paste method is removed; instead, look for an action named "drop-current-data" via containment()->action
  • popuPosition is gone -> all screen visibility is handled by the GSS

Context

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

Corona

  • layoutContainment is now virtual (no actual porting required; it is still a protected slot)
  • importLayout(const KConfigBase &config) was removed in favor of importLayout(const KConfigGroup &config)

DataEngine

  • source queue limit feature no longer available (no one used it)

DataEngineManager

  • made private API; users of DataEngineManager should now use DataEngineConsumer

DataContainer

  • added bool isUsed()
  • removed protected checkUsage()

Dialog

  • removed from libplasma
  • will have to be reimplemented in QML bindings in PlasmaCore
  • means will be visible from QML, not from the C++ part

Extenders

  • removed; rarely used, many problems with the implementation, may be brought back via QML Component

PackageMetadata

  • PackageMetadata was removed. It is replaced everywhere with KPluginInfo, except in AccessManager where a new class, RemoteObjectDescription, is used.

PackageStructure

  • setMimetypes -> setMimeTypes
  • setDefaultMimetypes -> setDefaultMimeTypes
  • mimetypes(const char*) -> mimeTypes(const char*)
  • sePrefix/prefix were removed in preference of the multi-path setPrefixPaths/prefixPaths

Plasma Namespace

  • ContextConstraint is no longer a member of the Plasma::Constraint enumeration
  • ZoomDirection, ZoomLevel and ScalingFactor were removed

PopupApplet

  • Removed from libplasma
  • Every applet will have to be able to collapse in a popup

Service

  • parametersFromDescription now returns an unsorted QHash rather than a QMap
  • createJob now takes a QHash instead of a QMap
  • jobFinished signal was removed; connect to jobs individually instead

ServiceJob

  • QMaps have been replaced with QHashes

ScrollWidget

  • registerAsScrollWidget and unregisterAsScrollWidget removed

ToolTipContent

  • setWidowToPreview/windowToPreview was removed; instead, use setWindowsToPreview/windowsToPreview which support more than one window id being passed in

Wallpaper

  • listWallpapersForMimetype becomes listWallpapersForMimeType