Home · All Classes · All Namespaces · Modules · Functions · Files

types-body.hpp

00001 /* Generated from Telepathy D-Bus Interface Specification, TelepathyQt4Yell copy */
00002 
00003 #define IN_TELEPATHY_QT4_YELL_HEADER
00004 #include "TelepathyQt4Yell/types.h"
00005 
00006 namespace Tpy
00007 {
00008 TELEPATHY_QT4_YELL_EXPORT bool operator==(const CallStateReason& v1, const CallStateReason& v2)
00009 {
00010     return ((v1.actor == v2.actor)
00011             && (v1.reason == v2.reason)
00012             && (v1.DBusReason == v2.DBusReason)
00013             );
00014 }
00015 
00016 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const CallStateReason& val)
00017 {
00018     arg.beginStructure();
00019     arg << val.actor << val.reason << val.DBusReason;
00020     arg.endStructure();
00021     return arg;
00022 }
00023 
00024 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, CallStateReason& val)
00025 {
00026     arg.beginStructure();
00027     arg >> val.actor >> val.reason >> val.DBusReason;
00028     arg.endStructure();
00029     return arg;
00030 }
00031 
00032 TELEPATHY_QT4_YELL_EXPORT bool operator==(const Candidate& v1, const Candidate& v2)
00033 {
00034     return ((v1.component == v2.component)
00035             && (v1.IP == v2.IP)
00036             && (v1.port == v2.port)
00037             && (v1.info == v2.info)
00038             );
00039 }
00040 
00041 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const Candidate& val)
00042 {
00043     arg.beginStructure();
00044     arg << val.component << val.IP << val.port << val.info;
00045     arg.endStructure();
00046     return arg;
00047 }
00048 
00049 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, Candidate& val)
00050 {
00051     arg.beginStructure();
00052     arg >> val.component >> val.IP >> val.port >> val.info;
00053     arg.endStructure();
00054     return arg;
00055 }
00056 
00057 TELEPATHY_QT4_YELL_EXPORT bool operator==(const SocketAddressIP& v1, const SocketAddressIP& v2)
00058 {
00059     return ((v1.address == v2.address)
00060             && (v1.port == v2.port)
00061             );
00062 }
00063 
00064 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const SocketAddressIP& val)
00065 {
00066     arg.beginStructure();
00067     arg << val.address << val.port;
00068     arg.endStructure();
00069     return arg;
00070 }
00071 
00072 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, SocketAddressIP& val)
00073 {
00074     arg.beginStructure();
00075     arg >> val.address >> val.port;
00076     arg.endStructure();
00077     return arg;
00078 }
00079 
00080 TELEPATHY_QT4_YELL_EXPORT bool operator==(const SocketAddressIPv4& v1, const SocketAddressIPv4& v2)
00081 {
00082     return ((v1.address == v2.address)
00083             && (v1.port == v2.port)
00084             );
00085 }
00086 
00087 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const SocketAddressIPv4& val)
00088 {
00089     arg.beginStructure();
00090     arg << val.address << val.port;
00091     arg.endStructure();
00092     return arg;
00093 }
00094 
00095 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, SocketAddressIPv4& val)
00096 {
00097     arg.beginStructure();
00098     arg >> val.address >> val.port;
00099     arg.endStructure();
00100     return arg;
00101 }
00102 
00103 TELEPATHY_QT4_YELL_EXPORT bool operator==(const SocketAddressIPv6& v1, const SocketAddressIPv6& v2)
00104 {
00105     return ((v1.address == v2.address)
00106             && (v1.port == v2.port)
00107             );
00108 }
00109 
00110 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const SocketAddressIPv6& val)
00111 {
00112     arg.beginStructure();
00113     arg << val.address << val.port;
00114     arg.endStructure();
00115     return arg;
00116 }
00117 
00118 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, SocketAddressIPv6& val)
00119 {
00120     arg.beginStructure();
00121     arg >> val.address >> val.port;
00122     arg.endStructure();
00123     return arg;
00124 }
00125 
00126 TELEPATHY_QT4_YELL_EXPORT bool operator==(const SocketNetmaskIPv4& v1, const SocketNetmaskIPv4& v2)
00127 {
00128     return ((v1.address == v2.address)
00129             && (v1.prefixLength == v2.prefixLength)
00130             );
00131 }
00132 
00133 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const SocketNetmaskIPv4& val)
00134 {
00135     arg.beginStructure();
00136     arg << val.address << val.prefixLength;
00137     arg.endStructure();
00138     return arg;
00139 }
00140 
00141 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, SocketNetmaskIPv4& val)
00142 {
00143     arg.beginStructure();
00144     arg >> val.address >> val.prefixLength;
00145     arg.endStructure();
00146     return arg;
00147 }
00148 
00149 TELEPATHY_QT4_YELL_EXPORT bool operator==(const SocketNetmaskIPv6& v1, const SocketNetmaskIPv6& v2)
00150 {
00151     return ((v1.address == v2.address)
00152             && (v1.prefixLength == v2.prefixLength)
00153             );
00154 }
00155 
00156 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const SocketNetmaskIPv6& val)
00157 {
00158     arg.beginStructure();
00159     arg << val.address << val.prefixLength;
00160     arg.endStructure();
00161     return arg;
00162 }
00163 
00164 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, SocketNetmaskIPv6& val)
00165 {
00166     arg.beginStructure();
00167     arg >> val.address >> val.prefixLength;
00168     arg.endStructure();
00169     return arg;
00170 }
00171 
00172 TELEPATHY_QT4_YELL_EXPORT bool operator==(const StreamCredentials& v1, const StreamCredentials& v2)
00173 {
00174     return ((v1.username == v2.username)
00175             && (v1.password == v2.password)
00176             );
00177 }
00178 
00179 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const StreamCredentials& val)
00180 {
00181     arg.beginStructure();
00182     arg << val.username << val.password;
00183     arg.endStructure();
00184     return arg;
00185 }
00186 
00187 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, StreamCredentials& val)
00188 {
00189     arg.beginStructure();
00190     arg >> val.username >> val.password;
00191     arg.endStructure();
00192     return arg;
00193 }
00194 
00195 TELEPATHY_QT4_YELL_EXPORT bool operator==(const Codec& v1, const Codec& v2)
00196 {
00197     return ((v1.identifier == v2.identifier)
00198             && (v1.name == v2.name)
00199             && (v1.clockrate == v2.clockrate)
00200             && (v1.channels == v2.channels)
00201             && (v1.parameters == v2.parameters)
00202             );
00203 }
00204 
00205 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const Codec& val)
00206 {
00207     arg.beginStructure();
00208     arg << val.identifier << val.name << val.clockrate << val.channels << val.parameters;
00209     arg.endStructure();
00210     return arg;
00211 }
00212 
00213 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, Codec& val)
00214 {
00215     arg.beginStructure();
00216     arg >> val.identifier >> val.name >> val.clockrate >> val.channels >> val.parameters;
00217     arg.endStructure();
00218     return arg;
00219 }
00220 
00221 TELEPATHY_QT4_YELL_EXPORT bool operator==(const CodecOffering& v1, const CodecOffering& v2)
00222 {
00223     return ((v1.codecOffer == v2.codecOffer)
00224             && (v1.remoteContact == v2.remoteContact)
00225             && (v1.remoteContactCodecs == v2.remoteContactCodecs)
00226             );
00227 }
00228 
00229 TELEPATHY_QT4_YELL_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const CodecOffering& val)
00230 {
00231     arg.beginStructure();
00232     arg << val.codecOffer << val.remoteContact << val.remoteContactCodecs;
00233     arg.endStructure();
00234     return arg;
00235 }
00236 
00237 TELEPATHY_QT4_YELL_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, CodecOffering& val)
00238 {
00239     arg.beginStructure();
00240     arg >> val.codecOffer >> val.remoteContact >> val.remoteContactCodecs;
00241     arg.endStructure();
00242     return arg;
00243 }
00244 
00245 TELEPATHY_QT4_NO_EXPORT void _registerTypes()
00246 {
00247     static bool registered = false;
00248     if (registered)
00249         return;
00250     registered = true;
00251 
00252     qDBusRegisterMetaType<Tpy::CallMemberMap>();
00253     qDBusRegisterMetaType<Tpy::CallMemberMapList>();
00254     qDBusRegisterMetaType<Tpy::CallStateReason>();
00255     qDBusRegisterMetaType<Tpy::Candidate>();
00256     qDBusRegisterMetaType<Tpy::CandidateInfo>();
00257     qDBusRegisterMetaType<Tpy::CandidateList>();
00258     qDBusRegisterMetaType<Tpy::Codec>();
00259     qDBusRegisterMetaType<Tpy::CodecList>();
00260     qDBusRegisterMetaType<Tpy::CodecOffering>();
00261     qDBusRegisterMetaType<Tpy::ContactCodecMap>();
00262     qDBusRegisterMetaType<Tpy::ContactSendingStateMap>();
00263     qDBusRegisterMetaType<Tpy::ObjectImmutablePropertiesMap>();
00264     qDBusRegisterMetaType<Tpy::ObjectImmutablePropertiesMapList>();
00265     qDBusRegisterMetaType<Tpy::ObjectPathList>();
00266     qDBusRegisterMetaType<Tpy::QualifiedPropertyValueMap>();
00267     qDBusRegisterMetaType<Tpy::QualifiedPropertyValueMapList>();
00268     qDBusRegisterMetaType<Tpy::SocketAddressIP>();
00269     qDBusRegisterMetaType<Tpy::SocketAddressIPList>();
00270     qDBusRegisterMetaType<Tpy::SocketAddressIPv4>();
00271     qDBusRegisterMetaType<Tpy::SocketAddressIPv6>();
00272     qDBusRegisterMetaType<Tpy::SocketNetmaskIPv4>();
00273     qDBusRegisterMetaType<Tpy::SocketNetmaskIPv6>();
00274     qDBusRegisterMetaType<Tpy::StreamCredentials>();
00275     qDBusRegisterMetaType<Tpy::StringStringMap>();
00276     qDBusRegisterMetaType<Tpy::StringStringMapList>();
00277     qDBusRegisterMetaType<Tpy::StringVariantMap>();
00278     qDBusRegisterMetaType<Tpy::StringVariantMapList>();
00279     qDBusRegisterMetaType<Tpy::UIntList>();
00280 }
00281 
00282 } // namespace Tpy


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4-Yell 0.1.6