mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-03-26 07:19:44 +08:00
添加dbus功能
This commit is contained in:
24
src/dbus/dbussparkstoreservice.h
Normal file
24
src/dbus/dbussparkstoreservice.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef DBUSSPARKSTORESERVICE_H
|
||||
#define DBUSSPARKSTORESERVICE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QUrl>
|
||||
#include <QtDBus/QtDBus>
|
||||
|
||||
class Wallpaper;
|
||||
class DBusSparkStoreService : public QDBusAbstractAdaptor
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_CLASSINFO("D-Bus Interface", "com.gitee.spark.store")
|
||||
public:
|
||||
explicit DBusSparkStoreService(QObject *parent);
|
||||
|
||||
signals :
|
||||
void sigOpenUrl(const QString &url);
|
||||
|
||||
public Q_SLOTS:
|
||||
void activeWindow(const QString &arg);
|
||||
|
||||
};
|
||||
|
||||
#endif // DBUSSPARKSTORESERVICE_H
|
||||
Reference in New Issue
Block a user