dde-dock/plugins/shutdown/shutdownplugin.h
石博文 654accbaf5 add some plugins interface method
Change-Id: I863da1169a5aceb1aa4891edd3ac000014e2eaa1
2016-08-02 09:28:06 +08:00

28 lines
645 B
C++

#ifndef SHUTDOWNPLUGIN_H
#define SHUTDOWNPLUGIN_H
#include "pluginsiteminterface.h"
class ShutdownPlugin : public QObject, PluginsItemInterface
{
Q_OBJECT
Q_INTERFACES(PluginsItemInterface)
Q_PLUGIN_METADATA(IID "com.deepin.dock.PluginsItemInterface" FILE "shutdown.json")
public:
explicit ShutdownPlugin(QObject *parent = 0);
const QString pluginName();
void init(PluginProxyInterface *proxyInter);
PluginType pluginType(const QString &itemKey);
const QIcon itemIcon(const QString &itemKey);
const QString itemCommand(const QString &itemKey);
private:
QIcon m_icon;
};
#endif // SHUTDOWNPLUGIN_H