X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fvicar-lib%2Fsrc%2Fconnectioninterfacerequeststypes.cpp;fp=src%2Fvicar-lib%2Fsrc%2Fconnectioninterfacerequeststypes.cpp;h=33ea4a652b8c5c635da38979faf9401b1f858a82;hb=5e3ee6e03bc18e941eb99dc5b7f9cfde7ff86a51;hp=0000000000000000000000000000000000000000;hpb=11d5c26f3a622a0fc32f9cb89e1658846201af4d;p=vicar diff --git a/src/vicar-lib/src/connectioninterfacerequeststypes.cpp b/src/vicar-lib/src/connectioninterfacerequeststypes.cpp new file mode 100644 index 0000000..33ea4a6 --- /dev/null +++ b/src/vicar-lib/src/connectioninterfacerequeststypes.cpp @@ -0,0 +1,75 @@ +/* +@version: 0.5 +@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 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 + */ + +#include "connectioninterfacerequeststypes.h" + +using namespace org::freedesktop::Telepathy; + +const QDBusArgument &operator>>(const QDBusArgument &argument, ChannelDetails &val) +{ + argument.beginStructure(); + argument >> val.channel >> val.properties; + argument.endStructure(); + return argument; +} + +QDBusArgument &operator<<(QDBusArgument &argument, const ChannelDetails &val) +{ + argument.beginStructure(); + argument << val.channel << val.properties; + argument.endStructure(); + return argument; +} + +QDebug &operator<<(QDebug arg,const ChannelDetails &val) +{ + arg.space() << "[" << val.channel.path() << "," << val.properties <<"]"; + return arg.space(); +} + +const QDBusArgument &operator>>(const QDBusArgument &argument, RequestableChannelClass &val) +{ + argument.beginStructure(); + argument >> val.fixedProperties >> val.allowedProperties; + argument.endStructure(); + return argument; +} + +QDBusArgument &operator<<(QDBusArgument &argument, const RequestableChannelClass &val) +{ + argument.beginStructure(); + argument << val.fixedProperties << val.allowedProperties; + argument.endStructure(); + return argument; +} + +QDebug &operator<<(QDebug arg,const RequestableChannelClass &val) +{ + arg.space() << "[" << val.fixedProperties << "," << val.allowedProperties <<"]"; + return arg.space(); +}