use d_ptr in shellpluginloader

This commit is contained in:
Giorgos Tsiapaliokas 2013-08-31 17:31:03 +03:00 committed by Marco Martin
parent 52e57cfdd5
commit ff34152432
2 changed files with 34 additions and 9 deletions

View File

@ -21,18 +21,19 @@
#include "shellpackage_p.h"
ShellPluginLoader::ShellPluginLoader()
: Plasma::PluginLoader()
class ShellPluginLoaderPrivate
{
public:
ShellPluginLoaderPrivate();
~ShellPluginLoaderPrivate();
Plasma::Package internalLoadPackage(const QString &packageFormat, const QString &specialization);
};
ShellPluginLoaderPrivate::ShellPluginLoaderPrivate()
{
}
ShellPluginLoader::~ShellPluginLoader()
{
}
Plasma::Package ShellPluginLoader::internalLoadPackage(const QString &packageFormat, const QString &specialization)
Plasma::Package ShellPluginLoaderPrivate::internalLoadPackage(const QString &packageFormat, const QString &specialization)
{
Q_UNUSED(specialization)
@ -43,3 +44,23 @@ Plasma::Package ShellPluginLoader::internalLoadPackage(const QString &packageFor
return Plasma::Package();
}
}
/////////////////////ShellPluginLoader
ShellPluginLoader::ShellPluginLoader()
: Plasma::PluginLoader(),
d(new ShellPluginLoaderPrivate())
{
}
ShellPluginLoader::~ShellPluginLoader()
{
}
Plasma::Package ShellPluginLoader::internalLoadPackage(const QString &packageFormat, const QString &specialization)
{
return d->internalLoadPackage(packageFormat, specialization);
}

View File

@ -23,6 +23,8 @@
#include <Plasma/PluginLoader>
#include <plasmaview/plasmaview_export.h>
class ShellPluginLoaderPrivate;
class PLASMAVIEW_EXPORT ShellPluginLoader : public Plasma::PluginLoader
{
public:
@ -31,6 +33,8 @@ public:
protected:
Plasma::Package internalLoadPackage(const QString &packageFormat, const QString &specialization);
private:
ShellPluginLoaderPrivate *const d;
};