X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fvicar-telepathy%2Fcpp%2Fconnectiontypes.cpp;fp=src%2Fvicar-telepathy%2Fcpp%2Fconnectiontypes.cpp;h=4e909327fa2e40a41cdd08d9d63f7c5a0f9b934a;hb=74800375ecf7f41e290cf7cc7fa9ee8b230be68e;hp=0000000000000000000000000000000000000000;hpb=89f0017e6a73945ea83247472a6fa07d6ee536b5;p=vicar diff --git a/src/vicar-telepathy/cpp/connectiontypes.cpp b/src/vicar-telepathy/cpp/connectiontypes.cpp new file mode 100644 index 0000000..4e90932 --- /dev/null +++ b/src/vicar-telepathy/cpp/connectiontypes.cpp @@ -0,0 +1,48 @@ +/* +@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 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 "connectiontypes.h" + +using namespace org::freedesktop::Telepathy; + +const QDBusArgument &operator>>(const QDBusArgument &argument, ChannelInfo &info) +{ + argument.beginStructure(); + argument >> info.objectPath >> info.interfaceName >> info.handleType >> info.handle; + argument.endStructure(); + return argument; +} + +QDBusArgument &operator<<(QDBusArgument &argument, const ChannelInfo &info) +{ + argument.beginStructure(); + argument << info.objectPath << info.interfaceName << info.handleType << info.handle; + argument.endStructure(); + return argument; +} +