You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
461 B
C
29 lines
461 B
C
4 years ago
|
#ifndef WALLPAPER_H
|
||
|
#define WALLPAPER_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QDBusInterface>
|
||
|
|
||
|
class Wallpaper : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
Q_PROPERTY(QString path READ path NOTIFY pathChanged)
|
||
|
|
||
|
public:
|
||
|
explicit Wallpaper(QObject *parent = nullptr);
|
||
|
|
||
|
QString path() const;
|
||
|
|
||
|
signals:
|
||
|
void pathChanged();
|
||
|
|
||
|
private slots:
|
||
|
void onPathChanged(QString path);
|
||
|
|
||
|
private:
|
||
|
QDBusInterface m_interface;
|
||
|
QString m_wallpaper;
|
||
|
};
|
||
|
|
||
|
#endif // WALLPAPER_H
|