kylin-weather/model/dbus.h

31 lines
509 B
C
Raw Normal View History

2022-06-22 18:45:06 +08:00
#ifndef DBUS_H
#define DBUS_H
#include <QObject>
#include <QDBusInterface>
#include <QDBusConnection>
#include <QDBusReply>
#include "global/corevar.h"
class Dbus : public QObject
{
Q_OBJECT
signals:
void processingCommand(QStringList);
public:
Dbus();
void argumentsCommand(const QStringList &arguments);
bool getConnectSeccess();
public slots:
void getCmdFromOtherMe(const QStringList &cmd);
private:
bool m_connectSeccess = false; //注册DBus成功
};
#endif // DBUS_H