pykde4: fix build of plasma bindings

This commit is contained in:
Ivailo Monev 2015-03-02 16:33:02 +00:00
parent 78660aef84
commit 1fbf1f5dec
19 changed files with 0 additions and 487 deletions

View file

@ -25,23 +25,16 @@
#include <plasma/abstractdialogmanager.h> #include <plasma/abstractdialogmanager.h>
#include <plasma/abstractrunner.h> #include <plasma/abstractrunner.h>
#include <plasma/abstracttoolbox.h> #include <plasma/abstracttoolbox.h>
#include <plasma/accessappletjob.h>
#include <plasma/accessmanager.h>
#include <plasma/animation.h> #include <plasma/animation.h>
#include <plasma/animationdriver.h>
#include <plasma/animator.h> #include <plasma/animator.h>
#include <plasma/applet.h> #include <plasma/applet.h>
#include <plasma/scripting/appletscript.h> #include <plasma/scripting/appletscript.h>
#include <plasma/authorizationmanager.h>
#include <plasma/authorizationrule.h>
#include <plasma/widgets/busywidget.h> #include <plasma/widgets/busywidget.h>
#include <plasma/widgets/checkbox.h> #include <plasma/widgets/checkbox.h>
#include <plasma/clientpinrequest.h>
#include <plasma/widgets/combobox.h> #include <plasma/widgets/combobox.h>
#include <plasma/configloader.h> #include <plasma/configloader.h>
#include <plasma/containment.h> #include <plasma/containment.h>
#include <plasma/containmentactions.h> #include <plasma/containmentactions.h>
#include <plasma/context.h>
#include <plasma/corona.h> #include <plasma/corona.h>
#include <plasma/datacontainer.h> #include <plasma/datacontainer.h>
#include <plasma/dataengine.h> #include <plasma/dataengine.h>
@ -76,7 +69,6 @@
#include <plasma/widgets/scrollwidget.h> #include <plasma/widgets/scrollwidget.h>
#include <plasma/widgets/separator.h> #include <plasma/widgets/separator.h>
#include <plasma/service.h> #include <plasma/service.h>
#include <plasma/serviceaccessjob.h>
#include <plasma/servicejob.h> #include <plasma/servicejob.h>
#include <plasma/widgets/signalplotter.h> #include <plasma/widgets/signalplotter.h>
#include <plasma/widgets/slider.h> #include <plasma/widgets/slider.h>
@ -172,32 +164,16 @@ protected:
if (dynamic_cast<Plasma::ConfigLoader*>(sipCpp)) if (dynamic_cast<Plasma::ConfigLoader*>(sipCpp))
sipType = sipType_Plasma_ConfigLoader; sipType = sipType_Plasma_ConfigLoader;
else if (dynamic_cast<Plasma::AccessAppletJob*>(sipCpp))
sipType = sipType_Plasma_AccessAppletJob;
else if (dynamic_cast<Plasma::ServiceAccessJob*>(sipCpp))
sipType = sipType_Plasma_ServiceAccessJob;
else if (dynamic_cast<Plasma::ServiceJob*>(sipCpp)) else if (dynamic_cast<Plasma::ServiceJob*>(sipCpp))
sipType = sipType_Plasma_ServiceJob; sipType = sipType_Plasma_ServiceJob;
else if (dynamic_cast<Plasma::AbstractDialogManager*>(sipCpp)) else if (dynamic_cast<Plasma::AbstractDialogManager*>(sipCpp))
sipType = sipType_Plasma_AbstractDialogManager; sipType = sipType_Plasma_AbstractDialogManager;
else if (dynamic_cast<Plasma::AbstractRunner*>(sipCpp)) else if (dynamic_cast<Plasma::AbstractRunner*>(sipCpp))
sipType = sipType_Plasma_AbstractRunner; sipType = sipType_Plasma_AbstractRunner;
else if (dynamic_cast<Plasma::AccessManager*>(sipCpp))
sipType = sipType_Plasma_AccessManager;
else if (dynamic_cast<Plasma::AnimationDriver*>(sipCpp))
sipType = sipType_Plasma_AnimationDriver;
else if (dynamic_cast<Plasma::Animator*>(sipCpp)) else if (dynamic_cast<Plasma::Animator*>(sipCpp))
sipType = sipType_Plasma_Animator; sipType = sipType_Plasma_Animator;
else if (dynamic_cast<Plasma::AuthorizationManager*>(sipCpp))
sipType = sipType_Plasma_AuthorizationManager;
else if (dynamic_cast<Plasma::AuthorizationRule*>(sipCpp))
sipType = sipType_Plasma_AuthorizationRule;
else if (dynamic_cast<Plasma::ClientPinRequest*>(sipCpp))
sipType = sipType_Plasma_ClientPinRequest;
else if (dynamic_cast<Plasma::ContainmentActions*>(sipCpp)) else if (dynamic_cast<Plasma::ContainmentActions*>(sipCpp))
sipType = sipType_Plasma_ContainmentActions; sipType = sipType_Plasma_ContainmentActions;
else if (dynamic_cast<Plasma::Context*>(sipCpp))
sipType = sipType_Plasma_Context;
else if (dynamic_cast<Plasma::DataContainer*>(sipCpp)) else if (dynamic_cast<Plasma::DataContainer*>(sipCpp))
sipType = sipType_Plasma_DataContainer; sipType = sipType_Plasma_DataContainer;
else if (dynamic_cast<Plasma::DataEngine*>(sipCpp)) else if (dynamic_cast<Plasma::DataEngine*>(sipCpp))

View file

@ -1,37 +0,0 @@
// Copyright 2009 Simon Edwards <simon@simonzone.com>
// Generated by twine2
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class AccessAppletJob : KJob
{
%TypeHeaderCode
#include <plasma/accessappletjob.h>
%End
public:
~AccessAppletJob ();
Plasma::Applet* applet () const;
protected:
AccessAppletJob (const KUrl& location, QObject* parent /TransferThis/ = 0);
void start ();
private:
AccessAppletJob ();
};
};

View file

@ -1,41 +0,0 @@
// Copyright 2009 Simon Edwards <simon@simonzone.com>
// Generated by twine2
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class AccessManager : QObject
{
%TypeHeaderCode
#include <plasma/accessmanager.h>
%End
public:
static Plasma::AccessManager* self ();
Plasma::AccessAppletJob* accessRemoteApplet (const KUrl& location) const;
QList<Plasma::PackageMetadata> remoteApplets () const;
static QStringList supportedProtocols ();
signals:
void finished (Plasma::AccessAppletJob*);
void remoteAppletAnnounced (Plasma::PackageMetadata metadata);
void remoteAppletUnannounced (Plasma::PackageMetadata metadata);
private:
AccessManager ();
~AccessManager ();
};
};

View file

@ -47,32 +47,16 @@ protected:
if (dynamic_cast<Plasma::ConfigLoader*>(sipCpp)) if (dynamic_cast<Plasma::ConfigLoader*>(sipCpp))
sipType = sipType_Plasma_ConfigLoader; sipType = sipType_Plasma_ConfigLoader;
else if (dynamic_cast<Plasma::AccessAppletJob*>(sipCpp))
sipType = sipType_Plasma_AccessAppletJob;
else if (dynamic_cast<Plasma::ServiceAccessJob*>(sipCpp))
sipType = sipType_Plasma_ServiceAccessJob;
else if (dynamic_cast<Plasma::ServiceJob*>(sipCpp)) else if (dynamic_cast<Plasma::ServiceJob*>(sipCpp))
sipType = sipType_Plasma_ServiceJob; sipType = sipType_Plasma_ServiceJob;
else if (dynamic_cast<Plasma::AbstractDialogManager*>(sipCpp)) else if (dynamic_cast<Plasma::AbstractDialogManager*>(sipCpp))
sipType = sipType_Plasma_AbstractDialogManager; sipType = sipType_Plasma_AbstractDialogManager;
else if (dynamic_cast<Plasma::AbstractRunner*>(sipCpp)) else if (dynamic_cast<Plasma::AbstractRunner*>(sipCpp))
sipType = sipType_Plasma_AbstractRunner; sipType = sipType_Plasma_AbstractRunner;
else if (dynamic_cast<Plasma::AccessManager*>(sipCpp))
sipType = sipType_Plasma_AccessManager;
else if (dynamic_cast<Plasma::AnimationDriver*>(sipCpp))
sipType = sipType_Plasma_AnimationDriver;
else if (dynamic_cast<Plasma::Animator*>(sipCpp)) else if (dynamic_cast<Plasma::Animator*>(sipCpp))
sipType = sipType_Plasma_Animator; sipType = sipType_Plasma_Animator;
else if (dynamic_cast<Plasma::AuthorizationManager*>(sipCpp))
sipType = sipType_Plasma_AuthorizationManager;
else if (dynamic_cast<Plasma::AuthorizationRule*>(sipCpp))
sipType = sipType_Plasma_AuthorizationRule;
else if (dynamic_cast<Plasma::ClientPinRequest*>(sipCpp))
sipType = sipType_Plasma_ClientPinRequest;
else if (dynamic_cast<Plasma::ContainmentActions*>(sipCpp)) else if (dynamic_cast<Plasma::ContainmentActions*>(sipCpp))
sipType = sipType_Plasma_ContainmentActions; sipType = sipType_Plasma_ContainmentActions;
else if (dynamic_cast<Plasma::Context*>(sipCpp))
sipType = sipType_Plasma_Context;
else if (dynamic_cast<Plasma::DataContainer*>(sipCpp)) else if (dynamic_cast<Plasma::DataContainer*>(sipCpp))
sipType = sipType_Plasma_DataContainer; sipType = sipType_Plasma_DataContainer;
else if (dynamic_cast<Plasma::DataEngine*>(sipCpp)) else if (dynamic_cast<Plasma::DataEngine*>(sipCpp))
@ -223,23 +207,16 @@ public:
#include <plasma/abstractdialogmanager.h> #include <plasma/abstractdialogmanager.h>
#include <plasma/abstractrunner.h> #include <plasma/abstractrunner.h>
#include <plasma/abstracttoolbox.h> #include <plasma/abstracttoolbox.h>
#include <plasma/accessappletjob.h>
#include <plasma/accessmanager.h>
#include <plasma/animation.h> #include <plasma/animation.h>
#include <plasma/animationdriver.h>
#include <plasma/animator.h> #include <plasma/animator.h>
#include <plasma/applet.h> #include <plasma/applet.h>
#include <plasma/scripting/appletscript.h> #include <plasma/scripting/appletscript.h>
#include <plasma/authorizationmanager.h>
#include <plasma/authorizationrule.h>
#include <plasma/widgets/busywidget.h> #include <plasma/widgets/busywidget.h>
#include <plasma/widgets/checkbox.h> #include <plasma/widgets/checkbox.h>
#include <plasma/clientpinrequest.h>
#include <plasma/widgets/combobox.h> #include <plasma/widgets/combobox.h>
#include <plasma/configloader.h> #include <plasma/configloader.h>
#include <plasma/containment.h> #include <plasma/containment.h>
#include <plasma/containmentactions.h> #include <plasma/containmentactions.h>
#include <plasma/context.h>
#include <plasma/corona.h> #include <plasma/corona.h>
#include <plasma/datacontainer.h> #include <plasma/datacontainer.h>
#include <plasma/dataengine.h> #include <plasma/dataengine.h>
@ -274,7 +251,6 @@ public:
#include <plasma/widgets/scrollwidget.h> #include <plasma/widgets/scrollwidget.h>
#include <plasma/widgets/separator.h> #include <plasma/widgets/separator.h>
#include <plasma/service.h> #include <plasma/service.h>
#include <plasma/serviceaccessjob.h>
#include <plasma/servicejob.h> #include <plasma/servicejob.h>
#include <plasma/widgets/signalplotter.h> #include <plasma/widgets/signalplotter.h>
#include <plasma/widgets/slider.h> #include <plasma/widgets/slider.h>

View file

@ -1,55 +0,0 @@
// Copyright 2008 Simon Edwards <simon@simonzone.com>
// Generated by twine
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class AnimationDriver : QObject
{
%TypeHeaderCode
#include <plasma/animationdriver.h>
%End
public:
explicit AnimationDriver (QObject* parent /TransferThis/ = 0);
virtual int animationFps (Plasma::Animator::Animation) const;
virtual int movementAnimationFps (Plasma::Animator::Movement) const;
virtual int elementAnimationFps (Plasma::Animator::Animation) const;
virtual int animationDuration (Plasma::Animator::Animation) const;
virtual int movementAnimationDuration (Plasma::Animator::Movement) const;
virtual int elementAnimationDuration (Plasma::Animator::Animation) const;
virtual Plasma::Animator::CurveShape animationCurve (Plasma::Animator::Animation) const;
virtual Plasma::Animator::CurveShape movementAnimationCurve (Plasma::Animator::Movement) const;
virtual Plasma::Animator::CurveShape elementAnimationCurve (Plasma::Animator::Animation) const;
virtual QPixmap elementAppear (qreal progress, const QPixmap& pixmap);
virtual QPixmap elementDisappear (qreal progress, const QPixmap& pixmap);
virtual void itemAppear (qreal progress, QGraphicsItem* item);
virtual void itemDisappear (qreal progress, QGraphicsItem* item);
virtual void itemActivated (qreal progress, QGraphicsItem* item);
virtual void itemSlideIn (qreal progress, QGraphicsItem* item, const QPoint& start, const QPoint& destination);
virtual void itemSlideOut (qreal progress, QGraphicsItem* item, const QPoint& start, const QPoint& destination);
~AnimationDriver ();
};
// AnimationDriver
};
// Plasma

View file

@ -66,19 +66,6 @@ public:
FastSlideOutMovement FastSlideOutMovement
}; };
static Plasma::Animator* self ();
int animateItem (QGraphicsItem* item, Plasma::Animator::Animation anim);
void stopItemAnimation (int id);
int moveItem (QGraphicsItem* item, Plasma::Animator::Movement movement, const QPoint& destination);
void stopItemMovement (int id);
int customAnimation (int frames, int duration, Plasma::Animator::CurveShape curve, QObject* receiver, const char* method);
void stopCustomAnimation (int id);
int animateElement (QGraphicsItem* obj, Plasma::Animator::Animation);
void stopElementAnimation (int id);
void setInitialPixmap (int id, const QPixmap& pixmap);
QPixmap currentPixmap (int id);
bool isAnimating () const;
signals: signals:
void animationFinished (QGraphicsItem* item, Plasma::Animator::Animation anim); void animationFinished (QGraphicsItem* item, Plasma::Animator::Animation anim);
void movementFinished (QGraphicsItem* item); void movementFinished (QGraphicsItem* item);
@ -93,8 +80,6 @@ private:
~Animator (); ~Animator ();
public: public:
//ig static AbstractAnimation* create (Plasma::Animator::Animation type, QObject* parent /Transfer/ = 0); //ig static AbstractAnimation* create (Plasma::Animator::Animation type, QObject* parent /Transfer/ = 0);
void registerScrollingManager (QGraphicsWidget* widget);
void unregisterScrollingManager (QGraphicsWidget* widget);
signals: signals:
void scrollStateChanged (QGraphicsWidget* widget, QAbstractAnimation::State newState, QAbstractAnimation::State oldState); void scrollStateChanged (QGraphicsWidget* widget, QAbstractAnimation::State newState, QAbstractAnimation::State oldState);
public: public:

View file

@ -88,7 +88,6 @@ public:
void updateConstraints (Plasma::Constraints constraints = Plasma::AllConstraints); void updateConstraints (Plasma::Constraints constraints = Plasma::AllConstraints);
virtual Plasma::FormFactor formFactor () const; virtual Plasma::FormFactor formFactor () const;
virtual Plasma::Location location () const; virtual Plasma::Location location () const;
Plasma::Context* context () const;
Plasma::AspectRatioMode aspectRatioMode () const; Plasma::AspectRatioMode aspectRatioMode () const;
void setAspectRatioMode (Plasma::AspectRatioMode); void setAspectRatioMode (Plasma::AspectRatioMode);
static KPluginInfo::List listAppletInfo (const QString& category = QString(), const QString& parentApp = QString()); static KPluginInfo::List listAppletInfo (const QString& category = QString(), const QString& parentApp = QString());
@ -211,8 +210,6 @@ public:
Plasma::ItemStatus status () const; Plasma::ItemStatus status () const;
void setStatus (const Plasma::ItemStatus stat); void setStatus (const Plasma::ItemStatus stat);
//ig void publish (Plasma::AnnouncementMethods methods, const QString& resourceName); //ig void publish (Plasma::AnnouncementMethods methods, const QString& resourceName);
void unpublish ();
bool isPublished () const;
void runAssociatedApplication (); void runAssociatedApplication ();
void showConfigurationInterface (QWidget* widget); void showConfigurationInterface (QWidget* widget);
bool isUserConfiguring () const; bool isUserConfiguring () const;

View file

@ -1,35 +0,0 @@
// Copyright 2009 Simon Edwards <simon@simonzone.com>
// Generated by twine2
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class AuthorizationInterface
{
%TypeHeaderCode
#include <plasma/authorizationinterface.h>
%End
public:
virtual ~AuthorizationInterface ();
virtual void authorizationRequest (Plasma::AuthorizationRule& rule)=0;
virtual void clientPinRequest (Plasma::ClientPinRequest& request)=0;
protected:
AuthorizationInterface ();
};
};

View file

@ -1,45 +0,0 @@
// Copyright 2009 Simon Edwards <simon@simonzone.com>
// Generated by twine2
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class AuthorizationManager : QObject
{
%TypeHeaderCode
#include <plasma/authorizationmanager.h>
%End
public:
enum AuthorizationPolicy
{
DenyAll,
TrustedOnly,
PinPairing,
Custom
};
static Plasma::AuthorizationManager* self ();
void setAuthorizationPolicy (Plasma::AuthorizationManager::AuthorizationPolicy policy);
void setAuthorizationInterface (Plasma::AuthorizationInterface* interface);
signals:
void readyForRemoteAccess ();
private:
AuthorizationManager ();
~AuthorizationManager ();
};
};

View file

@ -1,65 +0,0 @@
// Copyright 2009 Simon Edwards <simon@simonzone.com>
// Generated by twine2
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class AuthorizationRule : QObject
{
%TypeHeaderCode
#include <plasma/authorizationrule.h>
%End
public:
~AuthorizationRule ();
enum Policy
{
Deny,
Allow,
PinRequired
};
enum Persistence
{
Transient,
Persistent
};
enum Target
{
Default,
AllUsers,
AllServices
};
//ig typedef QFlags<Target> Targets;
QString description () const;
void setPolicy (Plasma::AuthorizationRule::Policy policy);
Plasma::AuthorizationRule::Policy policy ();
void setPersistence (Plasma::AuthorizationRule::Persistence persistence);
Plasma::AuthorizationRule::Persistence persistence ();
//ig void setTargets (Plasma::AuthorizationRule::Targets targets);
//ig Plasma::AuthorizationRule::Targets targets ();
void setPin (const QString& pin);
QString pin () const;
//ig Credentials credentials () const;
QString serviceName () const;
signals:
void changed (Plasma::AuthorizationRule*);
private:
AuthorizationRule ();
AuthorizationRule (const QString& serviceName, const QString& identityID);
};
};

View file

@ -1,39 +0,0 @@
// Copyright 2009 Simon Edwards <simon@simonzone.com>
// Generated by twine2
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class ClientPinRequest : QObject
{
%TypeHeaderCode
#include <plasma/clientpinrequest.h>
%End
public:
QString description () const;
void setPin (const QString& pin);
QString pin () const;
signals:
void changed (Plasma::ClientPinRequest*);
private:
ClientPinRequest ();
//ig ClientPinRequest (RemoteService* service);
~ClientPinRequest ();
};
};

View file

@ -93,8 +93,6 @@ public:
bool drawWallpaper (); bool drawWallpaper ();
void setWallpaper (const QString& pluginName, const QString& mode = QString()); void setWallpaper (const QString& pluginName, const QString& mode = QString());
Plasma::Wallpaper* wallpaper () const; Plasma::Wallpaper* wallpaper () const;
void setActivity (const QString& activity);
QString activity () const;
void showContextMenu (const QPointF& containmentPos, const QPoint& screenPos); void showContextMenu (const QPointF& containmentPos, const QPoint& screenPos);
virtual void showDropZone (const QPoint pos); virtual void showDropZone (const QPoint pos);
@ -108,7 +106,6 @@ signals:
void showAddWidgetsInterface (const QPointF& pos); void showAddWidgetsInterface (const QPointF& pos);
void screenChanged (int wasScreen, int isScreen, Plasma::Containment* containment); void screenChanged (int wasScreen, int isScreen, Plasma::Containment* containment);
void configureRequested (Plasma::Containment* containment); void configureRequested (Plasma::Containment* containment);
void contextChanged (Plasma::Context* context);
public: public:
void setLocation (Plasma::Location location); void setLocation (Plasma::Location location);
@ -136,7 +133,6 @@ protected:
void dragMoveEvent (QGraphicsSceneDragDropEvent* event); void dragMoveEvent (QGraphicsSceneDragDropEvent* event);
void dropEvent (QGraphicsSceneDragDropEvent* event); void dropEvent (QGraphicsSceneDragDropEvent* event);
void resizeEvent (QGraphicsSceneResizeEvent* event); void resizeEvent (QGraphicsSceneResizeEvent* event);
const QGraphicsItem* toolBoxItem () const;
public: public:
@ -154,7 +150,6 @@ protected:
private: private:
Containment (const QString& packagePath, uint appletId, const QVariantList& args); Containment (const QString& packagePath, uint appletId, const QVariantList& args);
public: public:
Plasma::Context* context () const;
int lastScreen () const; int lastScreen () const;
int lastDesktop () const; int lastDesktop () const;
bool isToolBoxOpen () const; bool isToolBoxOpen () const;

View file

@ -1,50 +0,0 @@
// Copyright 2008 Simon Edwards <simon@simonzone.com>
// Generated by twine
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class Context : QObject
{
%TypeHeaderCode
#include <plasma/context.h>
%End
public:
explicit Context (QObject* parent /TransferThis/ = 0);
void createActivity (const QString& name);
QStringList listActivities () const;
void setCurrentActivity (const QString& name);
QString currentActivity () const;
signals:
void changed (Plasma::Context* context);
void activityChanged (Plasma::Context* context);
void locationChanged (Plasma::Context* context);
public:
~Context ();
void setCurrentActivityId (const QString& id);
QString currentActivityId () const;
};
// Context
};
// Plasma

View file

@ -82,7 +82,6 @@ public:
Plasma::ContainmentActionsPluginsConfig containmentActionsDefaults (Plasma::Containment::Type containmentType); Plasma::ContainmentActionsPluginsConfig containmentActionsDefaults (Plasma::Containment::Type containmentType);
void setDialogManager (Plasma::AbstractDialogManager* manager); void setDialogManager (Plasma::AbstractDialogManager* manager);
Plasma::AbstractDialogManager* dialogManager (); Plasma::AbstractDialogManager* dialogManager ();
QList<Plasma::Containment*> importLayout (const KConfigBase& config);
void layoutContainments (); void layoutContainments ();
protected: protected:
void mapAnimation (Plasma::Animator::Animation from, Plasma::Animator::Animation to); void mapAnimation (Plasma::Animator::Animation from, Plasma::Animator::Animation to);

View file

@ -54,7 +54,6 @@ public:
void write (KConfigBase* config) const; void write (KConfigBase* config) const;
virtual bool installPackage (const QString& archivePath, const QString& packageRoot); virtual bool installPackage (const QString& archivePath, const QString& packageRoot);
virtual bool uninstallPackage (const QString& packageName, const QString& packageRoot); virtual bool uninstallPackage (const QString& packageName, const QString& packageRoot);
virtual void createNewWidgetBrowser (QWidget* parent /Transfer/ = 0);
QString contentsPrefix () const; QString contentsPrefix () const;
QString defaultPackageRoot () const; QString defaultPackageRoot () const;
QString servicePrefix () const; QString servicePrefix () const;

View file

@ -39,21 +39,13 @@
%Include abstractdialogmanager.sip %Include abstractdialogmanager.sip
%Include abstractrunner.sip %Include abstractrunner.sip
%Include abstracttoolbox.sip %Include abstracttoolbox.sip
%Include accessappletjob.sip
%Include accessmanager.sip
%Include animation.sip %Include animation.sip
%Include animationdriver.sip
%Include animator.sip %Include animator.sip
%Include applet.sip %Include applet.sip
%Include authorizationinterface.sip
%Include authorizationmanager.sip
%Include authorizationrule.sip
%Include clientpinrequest.sip
%Include configloader.sip %Include configloader.sip
%Include containment.sip %Include containment.sip
%Include containmentactions.sip %Include containmentactions.sip
%Include containmentactionspluginsconfig.sip %Include containmentactionspluginsconfig.sip
%Include context.sip
%Include corona.sip %Include corona.sip
%Include datacontainer.sip %Include datacontainer.sip
%Include dataengine.sip %Include dataengine.sip
@ -80,7 +72,6 @@
%Include scriptengine.sip %Include scriptengine.sip
%Include wallpaperscript.sip %Include wallpaperscript.sip
%Include service.sip %Include service.sip
%Include serviceaccessjob.sip
%Include servicejob.sip %Include servicejob.sip
%Include svg.sip %Include svg.sip
%Include theme.sip %Include theme.sip

View file

@ -49,8 +49,6 @@ public:
~ScrollWidget (); ~ScrollWidget ();
void ensureRectVisible (const QRectF& rect); void ensureRectVisible (const QRectF& rect);
void ensureItemVisible (QGraphicsItem* item); void ensureItemVisible (QGraphicsItem* item);
void registerAsDragHandle (QGraphicsWidget* item);
void unregisterAsDragHandle (QGraphicsWidget* item);
QRectF viewportGeometry () const; QRectF viewportGeometry () const;
QSizeF contentsSize () const; QSizeF contentsSize () const;
void setScrollPosition (const QPointF& position); void setScrollPosition (const QPointF& position);

View file

@ -54,7 +54,6 @@ protected:
void setOperationEnabled (const QString& operation, bool enable); void setOperationEnabled (const QString& operation, bool enable);
public: public:
~Service (); ~Service ();
static Plasma::Service* access (const KUrl& url, QObject* parent /Transfer/ = 0);
QMap<QString,QVariant> parametersFromDescription (const KConfigGroup& description); QMap<QString,QVariant> parametersFromDescription (const KConfigGroup& description);
signals: signals:
void serviceReady (Plasma::Service* service); void serviceReady (Plasma::Service* service);

View file

@ -1,35 +0,0 @@
// Copyright 2009 Simon Edwards <simon@simonzone.com>
// Generated by twine2
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License as
// published by the Free Software Foundation; either version 2, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details
// You should have received a copy of the GNU Library General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
namespace Plasma
{
class ServiceAccessJob : KJob
{
%TypeHeaderCode
#include <plasma/serviceaccessjob.h>
%End
public:
~ServiceAccessJob ();
Plasma::Service* service () const;
protected:
ServiceAccessJob (KUrl location, QObject* parent /TransferThis/ = 0);
void start ();
};
};