From 8cf39c4a80f462d7c85bcb75b62544feaac585f3 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 13 Aug 2018 13:04:39 +0200 Subject: [PATCH] close now... --- libnymea-app-core/connection/awsclient.cpp | 7 +++---- nymea-app/platformoptions.cpp | 11 +++++++++++ nymea-app/platformoptions.h | 17 +++++++++++++++++ 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 nymea-app/platformoptions.cpp create mode 100644 nymea-app/platformoptions.h diff --git a/libnymea-app-core/connection/awsclient.cpp b/libnymea-app-core/connection/awsclient.cpp index da38eaa3..6349b4e5 100644 --- a/libnymea-app-core/connection/awsclient.cpp +++ b/libnymea-app-core/connection/awsclient.cpp @@ -209,10 +209,9 @@ void AWSClient::getCredentialsForIdentity(const QString &identityId) settings.setValue("secretKey", m_secretKey); settings.setValue("sessionToken", m_sessionToken); - qDebug() << "Raw GetCredentialsForIdentity reply:" << qUtf8Printable(data); - qDebug() << "GetCredentialsForIdentity reply: \nAccess Key ID:" << m_accessKeyId << "\nSecret Key:" << m_secretKey << "\nsessionkey:" << m_sessionToken << "\nExpiration:" << m_expirationDate; - - postToMQTT(); + qDebug() << "AWS Credentials for Identity received."; +// qDebug() << "Raw GetCredentialsForIdentity reply:" << qUtf8Printable(data); +// qDebug() << "GetCredentialsForIdentity reply: \nAccess Key ID:" << m_accessKeyId << "\nSecret Key:" << m_secretKey << "\nsessionkey:" << m_sessionToken << "\nExpiration:" << m_expirationDate; }); } diff --git a/nymea-app/platformoptions.cpp b/nymea-app/platformoptions.cpp new file mode 100644 index 00000000..82559a86 --- /dev/null +++ b/nymea-app/platformoptions.cpp @@ -0,0 +1,11 @@ +#include "platformoptions.h" + +PlatformOptions::PlatformOptions(QObject *parent) : QObject(parent) +{ + +} + +bool PlatformOptions::screenBacklight() const +{ + QFile f() +} diff --git a/nymea-app/platformoptions.h b/nymea-app/platformoptions.h new file mode 100644 index 00000000..67ee5838 --- /dev/null +++ b/nymea-app/platformoptions.h @@ -0,0 +1,17 @@ +#ifndef PLATFORMOPTIONS_H +#define PLATFORMOPTIONS_H + +#include + +class PlatformOptions : public QObject +{ + Q_OBJECT +public: + explicit PlatformOptions(QObject *parent = nullptr); + +signals: + +public slots: +}; + +#endif // PLATFORMOPTIONS_H \ No newline at end of file