accounts-qt
0.31
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
provider.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 PROVIDER_H
25
#define PROVIDER_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
_AgProvider
AgProvider
;
39
}
40
41
namespace
Accounts
42
{
43
class
Provider
;
44
45
typedef
QList<Provider*>
ProviderList
;
46
56
class
ACCOUNTS_EXPORT
Provider
57
{
58
public
:
59
QString name()
const
;
60
QString displayName()
const
;
61
65
const
QDomDocument domDocument()
const
;
66
67
// \cond
68
AgProvider
*provider()
const
;
69
70
private
:
71
~
Provider
();
72
73
friend
class
Manager
;
74
Provider
(
AgProvider
*provider);
75
AgProvider
*m_provider;
76
mutable
QDomDocument doc;
77
// \endcond
78
};
79
80
}
//namespace Accounts
81
82
#endif // PROVIDER_H
Accounts
provider.h
Generated by
1.8.1.1