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
00028 #ifndef SERVICE_H
00029 #define SERVICE_H
00030
00031
00032 #include <QObject>
00033 #include <QSettings>
00034 #include <QStringList>
00035 #include <QXmlStreamReader>
00036 #include <QDomDocument>
00037
00038 #include "Accounts/accountscommon.h"
00039
00040 extern "C"
00041 {
00042 typedef struct _AgService AgService;
00043 }
00044
00045 namespace Accounts
00046 {
00047 class Service;
00048
00049 typedef QList<Service*> ServiceList;
00050
00061 class ACCOUNTS_EXPORT Service
00062 {
00063 public:
00067 QString name() const;
00068
00072 QString displayName() const;
00073
00077 QString trCatalog() const;
00078
00082 QString serviceType() const;
00083
00087 QString provider() const;
00088
00092 QString iconName() const;
00093
00098 QXmlStreamReader *xmlStreamReader() const;
00099
00103 const QDomDocument domDocument() const;
00104
00105
00106 AgService *service() const;
00107
00108 private:
00109 ~Service();
00110
00111 friend class Account;
00112 friend class Manager;
00113 Service(AgService *service);
00114 AgService *m_service;
00115 mutable QDomDocument doc;
00116
00117 };
00118
00119 }
00120
00121 #endif // SERVICE_H