summaryrefslogtreecommitdiffstats
path: root/framework/accounts/accountfactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/accounts/accountfactory.h')
-rw-r--r--framework/accounts/accountfactory.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/framework/accounts/accountfactory.h b/framework/accounts/accountfactory.h
deleted file mode 100644
index b57854e5..00000000
--- a/framework/accounts/accountfactory.h
+++ /dev/null
@@ -1,53 +0,0 @@
1/*
2 Copyright (c) 2016 Christian Mollekopf <mollekopf@kolabsystems.com>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19
20#pragma once
21
22#include <QObject>
23#include <QVariant>
24
25/**
26 * A factory to instantiate account-plugins.
27 */
28class AccountFactory : public QObject
29{
30 Q_OBJECT
31 Q_PROPERTY(QString accountId MEMBER mAccountId WRITE setAccountId);
32 Q_PROPERTY(QString accountType MEMBER mAccountType WRITE setAccountType);
33 Q_PROPERTY(QString name MEMBER mName READ name NOTIFY accountLoaded);
34 Q_PROPERTY(QString icon MEMBER mIcon NOTIFY accountLoaded);
35 Q_PROPERTY(QString uiPath MEMBER mUiPath NOTIFY accountLoaded);
36public:
37 explicit AccountFactory(QObject *parent = Q_NULLPTR);
38
39 void setAccountId(const QString &);
40 void setAccountType(const QString &);
41 QString name() const;
42
43signals:
44 void accountLoaded();
45
46private:
47 void loadPackage();
48 QString mAccountId;
49 QString mName;
50 QString mIcon;
51 QString mUiPath;
52 QByteArray mAccountType;
53};