accounts-qt
0.31
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
service.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) 2009-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 SERVICE_H
25
#define SERVICE_H
26
27
28
#include <QObject>
29
#include <QSettings>
30
#include <QStringList>
31
#include <QXmlStreamReader>
32
#include <QDomDocument>
33
34
#include "
Accounts/accountscommon.h
"
35
36
extern
"C"
37
{
38
typedef
struct
_AgService
AgService
;
39
}
40
41
namespace
Accounts
42
{
43
class
Service
;
44
45
typedef
QList<Service*>
ServiceList
;
46
57
class
ACCOUNTS_EXPORT
Service
58
{
59
public
:
63
QString name()
const
;
64
68
QString displayName()
const
;
69
73
QString serviceType()
const
;
74
78
QString provider()
const
;
79
83
QString iconName()
const
;
84
89
QXmlStreamReader *xmlStreamReader()
const
;
90
94
const
QDomDocument domDocument()
const
;
95
96
// \cond
97
AgService
*service()
const
;
98
99
private
:
100
~
Service
();
101
102
friend
class
Account
;
103
friend
class
Manager
;
104
Service
(
AgService
*service);
105
AgService
*m_service;
106
mutable
QDomDocument doc;
107
// \endcond
108
};
109
110
}
//namespace Accounts
111
112
#endif // SERVICE_H
Accounts
service.h
Generated by
1.8.1.1