all the desktop/netbook scripting stuff is in the WorkspaceScripting namespace now

svn path=/trunk/KDE/kdebase/workspace/; revision=1128578
This commit is contained in:
Marco Martin 2010-05-19 17:13:29 +00:00
parent de2f7ef846
commit 6f4dc1cc4f
12 changed files with 57 additions and 0 deletions

View File

@ -28,6 +28,9 @@
#include "scriptengine.h" #include "scriptengine.h"
namespace WorkspaceScripting
{
AppInterface::AppInterface(Plasma::Corona *corona, QObject *parent) AppInterface::AppInterface(Plasma::Corona *corona, QObject *parent)
: QObject(parent), : QObject(parent),
m_corona(corona) m_corona(corona)
@ -137,5 +140,7 @@ QStringList AppInterface::knownContainmentTypes(const QString &type) const
return containments; return containments;
} }
}
#include "appinterface.moc" #include "appinterface.moc"

View File

@ -32,6 +32,9 @@ namespace Plasma
class Corona; class Corona;
} // namespace Plasma } // namespace Plasma
namespace WorkspaceScripting
{
class PLASMAGENERICSHELL_EXPORT AppInterface : public QObject class PLASMAGENERICSHELL_EXPORT AppInterface : public QObject
{ {
Q_OBJECT Q_OBJECT
@ -71,5 +74,7 @@ private:
Plasma::Corona *m_corona; Plasma::Corona *m_corona;
}; };
}
#endif #endif

View File

@ -29,6 +29,9 @@
#include <Plasma/Containment> #include <Plasma/Containment>
#include <Plasma/Corona> #include <Plasma/Corona>
namespace WorkspaceScripting
{
class Applet::Private class Applet::Private
{ {
public: public:
@ -250,5 +253,7 @@ Plasma::Applet *Applet::applet() const
return 0; return 0;
} }
}
#include "applet.moc" #include "applet.moc"

View File

@ -32,6 +32,9 @@ namespace Plasma
class Applet; class Applet;
} // namespace Plasma } // namespace Plasma
namespace WorkspaceScripting
{
class PLASMAGENERICSHELL_EXPORT Applet : public QObject class PLASMAGENERICSHELL_EXPORT Applet : public QObject
{ {
Q_OBJECT Q_OBJECT
@ -74,6 +77,7 @@ private:
Private * const d; Private * const d;
}; };
}
#endif #endif

View File

@ -28,6 +28,9 @@
#include "scriptengine.h" #include "scriptengine.h"
#include "widget.h" #include "widget.h"
namespace WorkspaceScripting
{
class Containment::Private class Containment::Private
{ {
public: public:
@ -299,5 +302,7 @@ Plasma::Containment *Containment::containment() const
return d->containment.data(); return d->containment.data();
} }
}
#include "containment.moc" #include "containment.moc"

View File

@ -36,6 +36,9 @@ namespace Plasma
class Widget; class Widget;
class PanelView; class PanelView;
namespace WorkspaceScripting
{
class PLASMAGENERICSHELL_EXPORT Containment : public Applet class PLASMAGENERICSHELL_EXPORT Containment : public Applet
{ {
Q_OBJECT Q_OBJECT
@ -104,5 +107,7 @@ private:
Private * const d; Private * const d;
}; };
}
#endif #endif

View File

@ -19,6 +19,9 @@
#include "layouttemplatepackagestructure.h" #include "layouttemplatepackagestructure.h"
namespace WorkspaceScripting
{
LayoutTemplatePackageStructure::LayoutTemplatePackageStructure(QObject *parent) LayoutTemplatePackageStructure::LayoutTemplatePackageStructure(QObject *parent)
: Plasma::PackageStructure(parent) : Plasma::PackageStructure(parent)
{ {
@ -33,5 +36,7 @@ LayoutTemplatePackageStructure::~LayoutTemplatePackageStructure()
} }
}
#include "layouttemplatepackagestructure.moc" #include "layouttemplatepackagestructure.moc"

View File

@ -23,6 +23,9 @@
#include <Plasma/PackageStructure> #include <Plasma/PackageStructure>
#include "../plasmagenericshell_export.h" #include "../plasmagenericshell_export.h"
namespace WorkspaceScripting
{
class PLASMAGENERICSHELL_EXPORT LayoutTemplatePackageStructure : public Plasma::PackageStructure class PLASMAGENERICSHELL_EXPORT LayoutTemplatePackageStructure : public Plasma::PackageStructure
{ {
Q_OBJECT Q_OBJECT
@ -32,6 +35,7 @@ public:
~LayoutTemplatePackageStructure(); ~LayoutTemplatePackageStructure();
}; };
}
#endif #endif

View File

@ -40,6 +40,9 @@
QScriptValue constructQRectFClass(QScriptEngine *engine); QScriptValue constructQRectFClass(QScriptEngine *engine);
namespace WorkspaceScripting
{
ScriptEngine::ScriptEngine(Plasma::Corona *corona, QObject *parent) ScriptEngine::ScriptEngine(Plasma::Corona *corona, QObject *parent)
: QScriptEngine(parent), : QScriptEngine(parent),
m_corona(corona) m_corona(corona)
@ -427,5 +430,7 @@ QStringList ScriptEngine::defaultLayoutScripts()
return scriptPaths; return scriptPaths;
} }
}
#include "scriptengine.moc" #include "scriptengine.moc"

View File

@ -32,6 +32,9 @@ namespace Plasma
class Corona; class Corona;
} // namespace Plasma } // namespace Plasma
namespace WorkspaceScripting
{
class Containment; class Containment;
class PLASMAGENERICSHELL_EXPORT ScriptEngine : public QScriptEngine class PLASMAGENERICSHELL_EXPORT ScriptEngine : public QScriptEngine
@ -85,5 +88,7 @@ private:
QScriptValue m_scriptSelf; QScriptValue m_scriptSelf;
}; };
}
#endif #endif

View File

@ -26,6 +26,9 @@
#include <Plasma/Containment> #include <Plasma/Containment>
#include <Plasma/Corona> #include <Plasma/Corona>
namespace WorkspaceScripting
{
class Widget::Private class Widget::Private
{ {
public: public:
@ -167,6 +170,7 @@ void Widget::showConfigurationInterface()
} }
} }
}
#include "widget.moc" #include "widget.moc"

View File

@ -31,6 +31,9 @@ namespace Plasma
class Applet; class Applet;
} // namespace Plasma } // namespace Plasma
namespace WorkspaceScripting
{
class PLASMAGENERICSHELL_EXPORT Widget : public Applet class PLASMAGENERICSHELL_EXPORT Widget : public Applet
{ {
Q_OBJECT Q_OBJECT
@ -83,5 +86,7 @@ private:
Private * const d; Private * const d;
}; };
}
#endif #endif