summaryrefslogtreecommitdiffstats
path: root/framework/src/accounts/accountfactory.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-15 11:27:15 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-05-15 11:27:38 +0200
commitd353ec997f06891455dce9b51333687da670a03e (patch)
tree5e305f2c613782d028da3853bdb49aad5e12fa4c /framework/src/accounts/accountfactory.h
parenta4156dec117a8ebc4e810b026c489f2c6b2ec48f (diff)
downloadkube-d353ec997f06891455dce9b51333687da670a03e.tar.gz
kube-d353ec997f06891455dce9b51333687da670a03e.zip
Use QUrl for paths
so windows gets it as well
Diffstat (limited to 'framework/src/accounts/accountfactory.h')
-rw-r--r--framework/src/accounts/accountfactory.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/framework/src/accounts/accountfactory.h b/framework/src/accounts/accountfactory.h
index 34293bb2..10acfbc1 100644
--- a/framework/src/accounts/accountfactory.h
+++ b/framework/src/accounts/accountfactory.h
@@ -22,6 +22,7 @@
22#include "kube_export.h" 22#include "kube_export.h"
23#include <QObject> 23#include <QObject>
24#include <QVariant> 24#include <QVariant>
25#include <QUrl>
25 26
26/** 27/**
27 * A factory to instantiate account-plugins. 28 * A factory to instantiate account-plugins.
@@ -31,8 +32,8 @@ class KUBE_EXPORT AccountFactory : public QObject
31 Q_OBJECT 32 Q_OBJECT
32 Q_PROPERTY(QString accountId MEMBER mAccountId WRITE setAccountId); 33 Q_PROPERTY(QString accountId MEMBER mAccountId WRITE setAccountId);
33 Q_PROPERTY(QString accountType MEMBER mAccountType WRITE setAccountType); 34 Q_PROPERTY(QString accountType MEMBER mAccountType WRITE setAccountType);
34 Q_PROPERTY(QString uiPath MEMBER mUiPath NOTIFY accountLoaded); 35 Q_PROPERTY(QUrl uiPath MEMBER mUiPath NOTIFY accountLoaded);
35 Q_PROPERTY(QString loginUi MEMBER mLoginUi NOTIFY accountLoaded); 36 Q_PROPERTY(QUrl loginUi MEMBER mLoginUi NOTIFY accountLoaded);
36 Q_PROPERTY(bool requiresKeyring MEMBER mRequiresKeyring NOTIFY accountLoaded); 37 Q_PROPERTY(bool requiresKeyring MEMBER mRequiresKeyring NOTIFY accountLoaded);
37public: 38public:
38 explicit AccountFactory(QObject *parent = Q_NULLPTR); 39 explicit AccountFactory(QObject *parent = Q_NULLPTR);
@@ -46,8 +47,8 @@ signals:
46private: 47private:
47 void loadPackage(); 48 void loadPackage();
48 QString mAccountId; 49 QString mAccountId;
49 QString mUiPath; 50 QUrl mUiPath;
50 QString mLoginUi; 51 QUrl mLoginUi;
51 QByteArray mAccountType; 52 QByteArray mAccountType;
52 bool mRequiresKeyring = true; 53 bool mRequiresKeyring = true;
53}; 54};