accounts-qt 0.31
|
00001 /* vi: set et sw=4 ts=4 cino=t0,(0: */ 00002 /* 00003 * This file is part of libaccounts-qt 00004 * 00005 * Copyright (C) 2010 Nokia Corporation. 00006 * 00007 * Contact: Alberto Mardegan <alberto.mardegan@nokia.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_SERVICE_TYPE_H 00025 #define ACCOUNTS_SERVICE_TYPE_H 00026 00027 00028 #include <QObject> 00029 #include <QDomDocument> 00030 00031 #include "Accounts/accountscommon.h" 00032 00033 extern "C" 00034 { 00035 typedef struct _AgServiceType AgServiceType; 00036 } 00037 00038 namespace Accounts 00039 { 00040 00051 class ACCOUNTS_EXPORT ServiceType 00052 { 00053 public: 00057 QString name() const; 00058 00067 QString displayName() const; 00068 00073 QString trCatalog() const; 00074 00078 QString iconName() const; 00079 00083 const QDomDocument domDocument() const; 00084 00085 private: 00086 ~ServiceType(); 00087 00088 friend class Manager; 00089 ServiceType(AgServiceType *serviceType); 00090 AgServiceType *m_serviceType; 00091 mutable QDomDocument doc; 00092 // \endcond 00093 }; 00094 00095 } //namespace Accounts 00096 00097 #endif // ACCOUNTS_SERVICE_TYPE_H