#include
#include "tdlibreceiver.h"
+#include "dbusadaptor.h"
+#include "dbusinterface.h"
class TDLibWrapper : public QObject
{
@@ -71,6 +73,8 @@ public:
Q_INVOKABLE void openFileOnDevice(const QString &filePath);
Q_INVOKABLE void controlScreenSaver(const bool &enabled);
+ DBusAdaptor *getDBusAdaptor();
+
// Direct TDLib functions
Q_INVOKABLE void sendRequest(const QVariantMap &requestObject);
Q_INVOKABLE void setAuthenticationPhoneNumber(const QString &phoneNumber);
@@ -142,6 +146,7 @@ public slots:
private:
void *tdLibClient;
TDLibReceiver *tdLibReceiver;
+ DBusInterface *dbusInterface;
QString version;
TDLibWrapper::AuthorizationState authorizationState;
TDLibWrapper::ConnectionState connectionState;
@@ -157,6 +162,7 @@ private:
void setInitialParameters();
void setEncryptionKey();
void setLogVerbosityLevel();
+ void initializeOpenWith();
};
|