mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
29 lines
523 B
C++
29 lines
523 B
C++
#include "homemonitorplugin.h"
|
|
|
|
HomeMonitorPlugin::HomeMonitorPlugin(QObject *parent)
|
|
: QObject(parent)
|
|
{
|
|
|
|
}
|
|
|
|
const QString HomeMonitorPlugin::pluginName() const
|
|
{
|
|
return QStringLiteral("home_monitor");
|
|
}
|
|
|
|
void HomeMonitorPlugin::init(PluginProxyInterface *proxyInter)
|
|
{
|
|
m_proxyInter = proxyInter;
|
|
|
|
m_pluginWidget = new InformationWidget;
|
|
|
|
m_proxyInter->itemAdded(this, QString());
|
|
}
|
|
|
|
QWidget *HomeMonitorPlugin::itemWidget(const QString &itemKey)
|
|
{
|
|
Q_UNUSED(itemKey);
|
|
|
|
return m_pluginWidget;
|
|
}
|