move shellpluginloader back to shell
Conflicts: src/plasmaview/CMakeLists.txt src/shell/shellpluginloader.cpp
This commit is contained in:
parent
0235eb82d5
commit
bf2619a79a
@ -41,7 +41,6 @@ set(plasmaview_LIB_INCLUDES
|
||||
${CMAKE_CURRENT_BINARY_DIR}/plasmaview_export.h
|
||||
view.h
|
||||
configview.h
|
||||
shellpluginloader.h
|
||||
)
|
||||
|
||||
install(FILES ${plasmaview_LIB_INCLUDES}
|
||||
|
@ -61,6 +61,7 @@ add_executable(plasma-shell
|
||||
panelview.cpp
|
||||
lookandfeelpackage.cpp
|
||||
panelconfigview.cpp
|
||||
shellpluginloader.cpp
|
||||
${scripting_SRC}
|
||||
${widgetexplorer_SRC}
|
||||
)
|
||||
|
@ -21,19 +21,16 @@
|
||||
#include "shellpackage_p.h"
|
||||
|
||||
|
||||
class ShellPluginLoaderPrivate
|
||||
{
|
||||
public:
|
||||
ShellPluginLoaderPrivate();
|
||||
~ShellPluginLoaderPrivate();
|
||||
Plasma::Package internalLoadPackage(const QString &packageFormat, const QString &specialization);
|
||||
};
|
||||
|
||||
ShellPluginLoaderPrivate::ShellPluginLoaderPrivate()
|
||||
ShellPluginLoader::ShellPluginLoader()
|
||||
: Plasma::PluginLoader()
|
||||
{
|
||||
}
|
||||
|
||||
Plasma::Package ShellPluginLoaderPrivate::internalLoadPackage(const QString &packageFormat, const QString &specialization)
|
||||
ShellPluginLoader::~ShellPluginLoader()
|
||||
{
|
||||
}
|
||||
|
||||
Plasma::Package ShellPluginLoader::internalLoadPackage(const QString &packageFormat, const QString &specialization)
|
||||
{
|
||||
Q_UNUSED(specialization)
|
||||
|
||||
@ -45,22 +42,8 @@ Plasma::Package ShellPluginLoaderPrivate::internalLoadPackage(const QString &pac
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/////////////////////ShellPluginLoader
|
||||
ShellPluginLoader::ShellPluginLoader()
|
||||
: Plasma::PluginLoader(),
|
||||
d(new ShellPluginLoaderPrivate())
|
||||
void ShellPluginLoader::init()
|
||||
{
|
||||
}
|
||||
|
||||
ShellPluginLoader::~ShellPluginLoader()
|
||||
{
|
||||
}
|
||||
|
||||
Plasma::Package ShellPluginLoader::internalLoadPackage(const QString &packageFormat, const QString &specialization)
|
||||
{
|
||||
return d->internalLoadPackage(packageFormat, specialization);
|
||||
Plasma::PluginLoader::setPluginLoader(new ShellPluginLoader);
|
||||
}
|
||||
|
@ -21,33 +21,8 @@
|
||||
#define SHELLPLUGINLOADER_H
|
||||
|
||||
#include <Plasma/PluginLoader>
|
||||
#include <plasmaview/plasmaview_export.h>
|
||||
|
||||
/**
|
||||
* @class ShellPluginLoader plasmaview/shellpluginloader.h <PlasmaView/ShellPluginLoader>
|
||||
*
|
||||
* This class loads the shell package. Normally you won't need this class, unless if you
|
||||
* want to use the PlasmaView::View and Plasma::Corona directly.
|
||||
*
|
||||
* This class must be instantiated before the Corona and the View
|
||||
* example:
|
||||
*
|
||||
* <code>
|
||||
* // example 1, it works
|
||||
* Plasma::PluginLoader::setPluginLoader(new ShellPluginLoader);
|
||||
* Plasma::Corona *corona = new Plasma::Corona();
|
||||
* View *view = new View(corona);
|
||||
*
|
||||
* // exmaple 2, it doesn't work
|
||||
* Plasma::corona *corona = new plasma::corona();
|
||||
* View *view = new view(corona);
|
||||
* Plasma::PluginLoader::setPluginLoader(new shellpluginloader);
|
||||
* </code>
|
||||
*/
|
||||
|
||||
class ShellPluginLoaderPrivate;
|
||||
|
||||
class PLASMAVIEW_EXPORT ShellPluginLoader : public Plasma::PluginLoader
|
||||
class ShellPluginLoader : public Plasma::PluginLoader
|
||||
{
|
||||
public:
|
||||
ShellPluginLoader();
|
||||
@ -55,9 +30,6 @@ public:
|
||||
|
||||
protected:
|
||||
Plasma::Package internalLoadPackage(const QString &packageFormat, const QString &specialization);
|
||||
private:
|
||||
ShellPluginLoaderPrivate *const d;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user