File indexing completed on 2023-12-03 08:28:37
0001 /*************************************************************************** 0002 * Copyright (C) 2014 Marcin ZiemiĆski <zieminn@gmail.com> 0003 * * 0004 * This library is free software; you can redistribute it and/or * 0005 * modify it under the terms of the GNU Lesser General Public * 0006 * License as published by the Free Software Foundation; either * 0007 * version 2.1 of the License, or (at your option) any later version. * 0008 * * 0009 * This library is distributed in the hope that it will be useful, * 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 0012 * Lesser General Public License for more details. * 0013 * * 0014 * You should have received a copy of the GNU Lesser General Public * 0015 * License along with this library; if not, write to the Free Software * 0016 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA* 0017 ***************************************************************************/ 0018 0019 #include "types.h" 0020 0021 #include <QDBusArgument> 0022 #include <QDBusMetaType> 0023 0024 namespace KTp 0025 { 0026 0027 // ---------- generated by TpQt ---------------------------------------------------------------- 0028 TP_QT_EXPORT bool operator==(const FingerprintInfo& v1, const FingerprintInfo& v2) 0029 { 0030 return ((v1.contactName == v2.contactName) 0031 && (v1.fingerprint == v2.fingerprint) 0032 && (v1.isVerified == v2.isVerified) 0033 && (v1.inUse == v2.inUse) 0034 ); 0035 } 0036 0037 TP_QT_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const FingerprintInfo& val) 0038 { 0039 arg.beginStructure(); 0040 arg << val.contactName << val.fingerprint << val.isVerified << val.inUse; 0041 arg.endStructure(); 0042 return arg; 0043 } 0044 0045 TP_QT_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, FingerprintInfo& val) 0046 { 0047 arg.beginStructure(); 0048 arg >> val.contactName >> val.fingerprint >> val.isVerified >> val.inUse; 0049 arg.endStructure(); 0050 return arg; 0051 } 0052 // ---------- \generated by TpQt ---------------------------------------------------------------- 0053 0054 void registerOtrTypes() 0055 { 0056 static bool registered = false; 0057 if(registered) { 0058 return; 0059 } 0060 registered = true; 0061 0062 qDBusRegisterMetaType<KTp::FingerprintInfo>(); 0063 qDBusRegisterMetaType<KTp::FingerprintInfoList>(); 0064 } 0065 0066 }