add disk mount plugin
Change-Id: I3f51d78d95ffca75fbd7ffcc362436efecd17561
2
plugins/disk-mount/disk-mount.json
Normal file
@ -0,0 +1,2 @@
|
||||
{
|
||||
}
|
22
plugins/disk-mount/disk-mount.pro
Normal 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 += \
|
24
plugins/disk-mount/diskmountplugin.cpp
Normal 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;
|
||||
}
|
21
plugins/disk-mount/diskmountplugin.h
Normal 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
|
BIN
plugins/disk-mount/resources/camera-photo.png
Normal file
After Width: | Height: | Size: 959 B |
BIN
plugins/disk-mount/resources/drive-harddisk-ieee1394.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
plugins/disk-mount/resources/drive-harddisk-scsi.png
Normal file
After Width: | Height: | Size: 641 B |
BIN
plugins/disk-mount/resources/drive-harddisk-system.png
Normal file
After Width: | Height: | Size: 809 B |
BIN
plugins/disk-mount/resources/drive-harddisk-usb.png
Normal file
After Width: | Height: | Size: 736 B |
BIN
plugins/disk-mount/resources/drive-harddisk.png
Normal file
After Width: | Height: | Size: 524 B |
BIN
plugins/disk-mount/resources/drive-optical.png
Normal file
After Width: | Height: | Size: 872 B |
BIN
plugins/disk-mount/resources/drive-removable-media-ieee1394.png
Normal file
After Width: | Height: | Size: 729 B |
BIN
plugins/disk-mount/resources/drive-removable-media-mtp.png
Normal file
After Width: | Height: | Size: 598 B |
BIN
plugins/disk-mount/resources/drive-removable-media-scsi.png
Normal file
After Width: | Height: | Size: 643 B |
BIN
plugins/disk-mount/resources/drive-removable-media-usb.png
Normal file
After Width: | Height: | Size: 745 B |
BIN
plugins/disk-mount/resources/drive-removable-media.png
Normal file
After Width: | Height: | Size: 609 B |
BIN
plugins/disk-mount/resources/folder-remote.png
Normal file
After Width: | Height: | Size: 805 B |
BIN
plugins/disk-mount/resources/icon.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
plugins/disk-mount/resources/icon_16.png
Normal file
After Width: | Height: | Size: 358 B |
BIN
plugins/disk-mount/resources/input-tablet.png
Normal file
After Width: | Height: | Size: 487 B |
BIN
plugins/disk-mount/resources/media-optical.png
Normal file
After Width: | Height: | Size: 903 B |
BIN
plugins/disk-mount/resources/phone-apple-iphone.png
Normal file
After Width: | Height: | Size: 649 B |
BIN
plugins/disk-mount/resources/unmount_button_hover.png
Normal file
After Width: | Height: | Size: 449 B |
BIN
plugins/disk-mount/resources/unmount_button_hover_fail.png
Normal file
After Width: | Height: | Size: 533 B |
BIN
plugins/disk-mount/resources/unmount_button_normal.png
Normal file
After Width: | Height: | Size: 497 B |
BIN
plugins/disk-mount/resources/unmount_button_normal_fail.png
Normal file
After Width: | Height: | Size: 533 B |
BIN
plugins/disk-mount/resources/unmount_button_press.png
Normal file
After Width: | Height: | Size: 493 B |
BIN
plugins/disk-mount/resources/unmount_button_press_fail.png
Normal file
After Width: | Height: | Size: 533 B |
BIN
plugins/disk-mount/resources/usb_disk.png
Normal file
After Width: | Height: | Size: 772 B |
@ -2,4 +2,5 @@ TEMPLATE = subdirs
|
||||
SUBDIRS = \
|
||||
datetime \
|
||||
shutdown \
|
||||
system-tray
|
||||
system-tray \
|
||||
disk-mount
|
||||
|