new_alterator/include/dbus_connector.h
2022-07-11 20:12:12 +04:00

27 lines
617 B
C++

#ifndef DBUS_CONNECTOR_H
#define DBUS_CONNECTOR_H
#include <QtDBus/QtDBus>
#include <QProcess>
#include <QHash>
namespace Alterator{
class DBusConnector: public QObject
{
Q_OBJECT
public:
DBusConnector(QObject *parent);
DBusConnector();
~DBusConnector();
int addInterface( QString service, QString path
, QString interface, bool systemBus, QString shortName);
QVariant getProperty(QString InterfaceName, QString propertyName);
QDBusInterface getInterface(QString shortName);
private:
QHash<QString, QDBusInterface> interfaces;
};
}
#endif // DBUS_CONNECTOR_H