2016-07-19 09:46:08 +08:00
|
|
|
#ifndef DISKMOUNTPLUGIN_H
|
|
|
|
#define DISKMOUNTPLUGIN_H
|
|
|
|
|
|
|
|
#include "pluginsiteminterface.h"
|
2016-07-19 10:30:02 +08:00
|
|
|
#include "dbus/dbusdiskmount.h"
|
2016-07-19 09:46:08 +08:00
|
|
|
|
|
|
|
class DiskMountPlugin : public QObject, PluginsItemInterface
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
Q_INTERFACES(PluginsItemInterface)
|
|
|
|
Q_PLUGIN_METADATA(IID "com.deepin.dock.PluginsItemInterface" FILE "disk-mount.json")
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit DiskMountPlugin(QObject *parent = 0);
|
|
|
|
|
|
|
|
const QString pluginName() const;
|
|
|
|
void init(PluginProxyInterface *proxyInter);
|
|
|
|
|
|
|
|
QWidget *itemWidget(const QString &itemKey);
|
2016-07-19 10:30:02 +08:00
|
|
|
|
|
|
|
private:
|
|
|
|
DBusDiskMount *m_diskInter;
|
2016-07-19 09:46:08 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DISKMOUNTPLUGIN_H
|