add disk mount plugin

Change-Id: I3f51d78d95ffca75fbd7ffcc362436efecd17561
This commit is contained in:
石博文 2016-07-19 09:46:08 +08:00 committed by Hualet Wang
parent 19c1a8a5ed
commit 429abf7505
30 changed files with 71 additions and 1 deletions

View File

@ -0,0 +1,2 @@
{
}

View File

@ -0,0 +1,22 @@
include(../../interfaces/interfaces.pri)
QT += widgets svg
TEMPLATE = lib
CONFIG += plugin c++11 link_pkgconfig
PKGCONFIG +=
TARGET = $$qtLibraryTarget(disk-mount)
DESTDIR = $$_PRO_FILE_PWD_/../
DISTFILES += disk-mount.json
HEADERS += \
diskmountplugin.h
SOURCES += \
diskmountplugin.cpp
target.path = $${PREFIX}/lib/dde-dock/plugins/
INSTALLS += target
RESOURCES += \

View File

@ -0,0 +1,24 @@
#include "diskmountplugin.h"
DiskMountPlugin::DiskMountPlugin(QObject *parent)
: QObject(parent)
{
}
const QString DiskMountPlugin::pluginName() const
{
return "disk-mount";
}
void DiskMountPlugin::init(PluginProxyInterface *proxyInter)
{
m_proxyInter = proxyInter;
}
QWidget *DiskMountPlugin::itemWidget(const QString &itemKey)
{
Q_UNUSED(itemKey);
return nullptr;
}

View File

@ -0,0 +1,21 @@
#ifndef DISKMOUNTPLUGIN_H
#define DISKMOUNTPLUGIN_H
#include "pluginsiteminterface.h"
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);
};
#endif // DISKMOUNTPLUGIN_H

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 736 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 872 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 745 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 805 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 903 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 649 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 497 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

View File

@ -2,4 +2,5 @@ TEMPLATE = subdirs
SUBDIRS = \
datetime \
shutdown \
system-tray
system-tray \
disk-mount