accounts-qt
1.13
|
00001 /* vi: set et sw=4 ts=4 cino=t0,(0: */ 00002 /* 00003 * This file is part of libaccounts-qt 00004 * 00005 * Copyright (C) 2012 Nokia Corporation. 00006 * 00007 * Contact: Alberto Mardegan <alberto.mardegan@canonical.com> 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public License 00011 * version 2.1 as published by the Free Software Foundation. 00012 * 00013 * This library is distributed in the hope that it will be useful, but 00014 * WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 * Lesser General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU Lesser General Public 00019 * License along with this library; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00021 * 02110-1301 USA 00022 */ 00023 00024 #ifndef ACCOUNTS_APPLICATION_H 00025 #define ACCOUNTS_APPLICATION_H 00026 00027 #include "Accounts/accountscommon.h" 00028 00029 #include <QString> 00030 00031 extern "C" 00032 { 00033 typedef struct _AgApplication AgApplication; 00034 } 00035 00036 namespace Accounts 00037 { 00038 class Service; 00039 00040 class ACCOUNTS_EXPORT Application 00041 { 00042 public: 00043 Application(); 00044 Application(const Application &other); 00045 Application &operator=(const Application &other); 00046 ~Application(); 00047 00048 bool isValid() const; 00049 00050 QString name() const; 00051 QString displayName() const; 00052 QString description() const; 00053 QString iconName() const; 00054 QString desktopFilePath() const; 00055 QString trCatalog() const; 00056 00057 QString serviceUsage(const Service &service) const; 00058 00059 private: 00060 // Don't include private data in docs: \cond 00061 friend class Manager; 00062 Application(AgApplication *application); 00063 00064 AgApplication *m_application; 00065 // \endcond 00066 }; 00067 00068 } //namespace 00069 00070 #endif // ACCOUNTS_APPLICATION_H