use d_ptr in shellpluginloader
This commit is contained in:
parent
52e57cfdd5
commit
ff34152432
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user