Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef PROVIDER_H
00025 #define PROVIDER_H
00026
00027
00028 #include <QObject>
00029 #include <QSettings>
00030 #include <QStringList>
00031 #include <QXmlStreamReader>
00032 #include <QDomDocument>
00033
00034 #include "Accounts/accountscommon.h"
00035
00036 extern "C"
00037 {
00038 typedef struct _AgProvider AgProvider;
00039 }
00040
00041 namespace Accounts
00042 {
00043 class Provider;
00044
00045 typedef QList<Provider*> ProviderList;
00046
00056 class ACCOUNTS_EXPORT Provider
00057 {
00058 public:
00059 QString name() const;
00060 QString displayName() const;
00061
00065 const QDomDocument domDocument() const;
00066
00067
00068 AgProvider *provider() const;
00069
00070 private:
00071 ~Provider();
00072
00073 friend class Manager;
00074 Provider(AgProvider *provider);
00075 AgProvider *m_provider;
00076 mutable QDomDocument doc;
00077
00078 };
00079
00080 }
00081
00082 #endif // PROVIDER_H