mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
4.0
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#include "dbussparkstore.h"
|
||||
#include <QDebug>
|
||||
DBusSparkStoreService::DBusSparkStoreService(QObject *parent)
|
||||
: QDBusAbstractAdaptor(parent)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void DBusSparkStoreService::activeWindow(const QString & arg)
|
||||
{
|
||||
emit sigOpenUrl(arg);
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
#ifndef DBUSSPARKSTORE_H
|
||||
#define DBUSSPARKSTORE_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 // DBUSSPARKSTORE_H
|
||||
Reference in New Issue
Block a user