mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
35 lines
724 B
C++
35 lines
724 B
C++
#ifndef DATETIMEPLUGIN_H
|
|
#define DATETIMEPLUGIN_H
|
|
|
|
#include "pluginsiteminterface.h"
|
|
|
|
#include <QLabel>
|
|
#include <QTimer>
|
|
|
|
class DatetimePlugin : public QObject, PluginsItemInterface
|
|
{
|
|
Q_OBJECT
|
|
Q_INTERFACES(PluginsItemInterface)
|
|
Q_PLUGIN_METADATA(IID "com.deepin.dock.PluginsItemInterface" FILE "datetime.json")
|
|
|
|
public:
|
|
explicit DatetimePlugin(QObject *parent = 0);
|
|
~DatetimePlugin();
|
|
|
|
const QString pluginName();
|
|
PluginType pluginType(const QString &itemKey);
|
|
void init(PluginProxyInterface *proxyInter);
|
|
|
|
QWidget *itemWidget(const QString &itemKey);
|
|
|
|
|
|
private slots:
|
|
void refershTime();
|
|
|
|
private:
|
|
QLabel *m_timeLabel;
|
|
QTimer *m_refershTimer;
|
|
};
|
|
|
|
#endif // DATETIMEPLUGIN_H
|