X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fvicar-telepathy%2Fcpp%2Fconnectioninterfacecapabilitiestypes.h;fp=src%2Fvicar-telepathy%2Fcpp%2Fconnectioninterfacecapabilitiestypes.h;h=d104ffeec36bf42c9be062db4c04a78bcda6b74f;hb=38440679f13b8dc528a9aff93cbf4935011fdb22;hp=0000000000000000000000000000000000000000;hpb=89f0017e6a73945ea83247472a6fa07d6ee536b5;p=vicar diff --git a/src/vicar-telepathy/cpp/connectioninterfacecapabilitiestypes.h b/src/vicar-telepathy/cpp/connectioninterfacecapabilitiestypes.h new file mode 100644 index 0000000..d104ffe --- /dev/null +++ b/src/vicar-telepathy/cpp/connectioninterfacecapabilitiestypes.h @@ -0,0 +1,98 @@ +/* +@version: 0.6 +@author: Sudheer K. +@license: GNU General Public License + +Based on QtTelepathy with copyright notice below. +*/ + +/* + * QtTelepathy, the Tapioca Qt4 Telepathy Client Library + * Copyright (C) 2006 by Tobias Hunger + * Copyright (C) 2006 by INdT + * @author Andre Moreira Magalhaes + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef CONNECTIONINTERFACECAPABILITIESTYPES_H +#define CONNECTIONINTERFACECAPABILITIESTYPES_H + +#include +#include +#include +#include +#include + +namespace org { +namespace freedesktop { +namespace Telepathy { + +class ContactCapabilities +{ +public: + uint handle; + QString channelType; + uint genericCapabilityFlags; + uint typeSpecificFlags; +}; +typedef QList ContactCapabilitiesList; + +class CapabilityPair +{ +public: + QString channelType; + uint typeSpecificFlags; +}; +typedef QList CapabilityPairList; + +class CapabilityChange +{ +public: + uint handle; + QString channelType; + uint oldGenericFlags; + uint newGenericFlags; + uint oldTypeSpecificFlags; + uint newTypeSpecificFlags; +}; +typedef QList CapabilityChangeList; + +} // namespace Telepathy +} // namespace freedesktop +} // namespace org + +Q_DECLARE_METATYPE(org::freedesktop::Telepathy::ContactCapabilities) +Q_DECLARE_METATYPE(org::freedesktop::Telepathy::ContactCapabilitiesList) + +const QDBusArgument& operator>>(const QDBusArgument& arg, org::freedesktop::Telepathy::ContactCapabilities& val); +QDBusArgument& operator<<(QDBusArgument& arg, const org::freedesktop::Telepathy::ContactCapabilities& val); +QDebug& operator<<(QDebug arg, const org::freedesktop::Telepathy::ContactCapabilities& val); + +Q_DECLARE_METATYPE(org::freedesktop::Telepathy::CapabilityPair) +Q_DECLARE_METATYPE(org::freedesktop::Telepathy::CapabilityPairList) + +const QDBusArgument& operator>>(const QDBusArgument& arg, org::freedesktop::Telepathy::CapabilityPair& val); +QDBusArgument& operator<<(QDBusArgument& arg, const org::freedesktop::Telepathy::CapabilityPair& val); +QDebug& operator<<(QDebug arg, const org::freedesktop::Telepathy::CapabilityPair& val); + +Q_DECLARE_METATYPE(org::freedesktop::Telepathy::CapabilityChange) +Q_DECLARE_METATYPE(org::freedesktop::Telepathy::CapabilityChangeList) + +const QDBusArgument& operator>>(const QDBusArgument& arg, org::freedesktop::Telepathy::CapabilityChange& val); +QDBusArgument& operator<<(QDBusArgument& arg, const org::freedesktop::Telepathy::CapabilityChange& val); +QDebug& operator<<(QDebug arg, const org::freedesktop::Telepathy::CapabilityChange& val); + +#endif // CONNECTIONINTERFACECAPABILITIESTYPES_H