accounts-qt  0.31
service-type.h
Go to the documentation of this file.
1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /*
3  * This file is part of libaccounts-qt
4  *
5  * Copyright (C) 2010 Nokia Corporation.
6  *
7  * Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  */
23 
24 #ifndef ACCOUNTS_SERVICE_TYPE_H
25 #define ACCOUNTS_SERVICE_TYPE_H
26 
27 
28 #include <QObject>
29 #include <QDomDocument>
30 
32 
33 extern "C"
34 {
35  typedef struct _AgServiceType AgServiceType;
36 }
37 
38 namespace Accounts
39 {
40 
52 {
53 public:
57  QString name() const;
58 
67  QString displayName() const;
68 
73  QString trCatalog() const;
74 
78  QString iconName() const;
79 
83  const QDomDocument domDocument() const;
84 
85 private:
86  ~ServiceType();
87 
88  friend class Manager;
89  ServiceType(AgServiceType *serviceType);
90  AgServiceType *m_serviceType;
91  mutable QDomDocument doc;
92  // \endcond
93 };
94 
95 } //namespace Accounts
96 
97 #endif // ACCOUNTS_SERVICE_TYPE_H