dde-dock/plugins/shutdown/shutdownplugin.h
石博文 d9d2faccca add system tray plugin
Change-Id: Iba6e206e506ecfd50f8600fefd7b150e27117f97
2016-08-02 09:28:06 +08:00

28 lines
649 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() const;
void init(PluginProxyInterface *proxyInter);
ItemType pluginType(const QString &itemKey);
const QIcon itemIcon(const QString &itemKey);
const QString itemCommand(const QString &itemKey);
private:
QIcon m_icon;
};
#endif // SHUTDOWNPLUGIN_H