accounts-qt: Accounts/application.h Source File

accounts-qt 1.12

- Main Page
- Related Pages
- Classes
- Files

- File List

application.h
1 /* vi: set et sw=4 ts=4 cino=t0,(0: */
2 /*
3 * This file is part of libaccounts-qt
4 *
5 * Copyright (C) 2012 Nokia Corporation.
6 *
7 * Contact: Alberto Mardegan <alberto.mardegan@canonical.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_APPLICATION_H
25 #define ACCOUNTS_APPLICATION_H
26
27 #include "Accounts/accountscommon.h"
28
29 #include <QString>
30
31 extern "C"
32 {
33 typedef struct _AgApplication AgApplication;
34 }
35
36 namespace Accounts
37 {
38 class Service;
39
40 class ACCOUNTS_EXPORT Application
41 {
42 public:
43 Application();
44 Application(const Application &other);
45 Application &operator=(const Application &other);
46 ~Application();
47
48 bool isValid() const;
49
50 QString name() const;
51 QString displayName() const;
52 QString description() const;
53 QString iconName() const;
54 QString desktopFilePath() const;
55 QString trCatalog() const;
56
57 QString serviceUsage(const Service &service) const;
58
59 private:
60 // Don't include private data in docs: \cond
61 friend class Manager;
62 Application(AgApplication *application);
63
64 AgApplication *m_application;
65 // \endcond
66 };
67
68 } //namespace
69
70 #endif // ACCOUNTS_APPLICATION_H
Accounts::Manager
Manager of accounts, services and providers.
Definition: manager.h:51
Accounts::Service
Representation of an account service.
Definition: service.h:48
Accounts::Application
Information on the client applications of libaccounts.
Definition: application.h:40