Version 0.7-0
[vicar] / src / vicar-telepathy / cpp / connectionmanagertypes.h
1 /*
2 @version: 0.6
3 @author: Sudheer K. <scifi1947 at gmail.com>
4 @license: GNU General Public License
5
6 Based on QtTelepathy with copyright notice below.
7 */
8
9 /*
10  * QtTelepathy, the Tapioca Qt4 Telepathy Client Library
11  * Copyright (C) 2006 by Tobias Hunger <tobias.hunger@basyskom.de>
12  * Copyright (C) 2006 by INdT
13  *  @author Andre Moreira Magalhaes <andre.magalhaes@indt.org>
14  *
15  * This library is free software; you can redistribute it and/or
16  * modify it under the terms of the GNU Lesser General Public
17  * License as published by the Free Software Foundation; either
18  * version 2.1 of the License, or (at your option) any later version.
19  *
20  * This library is distributed in the hope that it will be useful,
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23  * Lesser General Public License for more details.
24  *
25  * You should have received a copy of the GNU Lesser General Public
26  * License along with this library; if not, write to the Free Software
27  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28  */
29
30 #ifndef QTTELEPATHY_CONNECTIONMANAGERTYPES_H
31 #define QTTELEPATHY_CONNECTIONMANAGERTYPES_H
32
33 #include <QtCore/QFlag>
34 #include <QtCore/QList>
35 #include <QtCore/QString>
36 #include <QtDBus/QDBusArgument>
37 #include <QtDBus/QDBusVariant>
38
39 namespace org {
40 namespace freedesktop {
41 namespace Telepathy {
42
43 class ParameterDefinition
44 {
45 public:
46     QString name;
47     uint flags;
48     QString signature;
49     QDBusVariant defaultValue;
50 };
51 typedef QList<ParameterDefinition> ParameterDefinitionList;
52
53 } // namespace Telepathy
54 } // namespace freedesktop
55 } // namespace org
56
57 Q_DECLARE_METATYPE(org::freedesktop::Telepathy::ParameterDefinition)
58 Q_DECLARE_METATYPE(org::freedesktop::Telepathy::ParameterDefinitionList)
59
60 const QDBusArgument &operator>>(const QDBusArgument &argument, org::freedesktop::Telepathy::ParameterDefinition &param);
61 QDBusArgument &operator<<(QDBusArgument &argument, const org::freedesktop::Telepathy::ParameterDefinition &param);
62
63 #endif
64