service-type.h

Go to the documentation of this file.
00001 /* vi: set et sw=4 ts=4 cino=t0,(0: */
00002 /*
00003  * This file is part of libaccounts-qt
00004  *
00005  * Copyright (C) 2011 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  */
00028 #ifndef ACCOUNTS_SERVICE_TYPE_H
00029 #define ACCOUNTS_SERVICE_TYPE_H
00030 
00031 
00032 #include <QObject>
00033 #include <QDomDocument>
00034 
00035 #include "Accounts/accountscommon.h"
00036 
00037 extern "C"
00038 {
00039     typedef struct _AgServiceType AgServiceType;
00040 }
00041 
00042 namespace Accounts
00043 {
00044 
00055 class ACCOUNTS_EXPORT ServiceType
00056 {
00057 public:
00061     QString name() const;
00062 
00071     QString displayName() const;
00072 
00077     QString trCatalog() const;
00078 
00082     QString iconName() const;
00083 
00087     const QDomDocument domDocument() const;
00088 
00089 private:
00090     // \cond
00091     ~ServiceType();
00092 
00093     friend class Manager;
00094     ServiceType(AgServiceType *serviceType);
00095     AgServiceType *m_serviceType;
00096     mutable QDomDocument doc;
00097     // \endcond
00098 };
00099 
00100 } //namespace Accounts
00101 
00102 #endif // ACCOUNTS_SERVICE_TYPE_H