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 #ifndef OTR_TYPES_HEADER 0020 #define OTR_TYPES_HEADER 0021 0022 #include "ktpotr_export.h" 0023 0024 #include <QtGlobal> 0025 #include <QByteArray> 0026 #include <QString> 0027 0028 #include <QDBusArgument> 0029 #include <QDBusMetaType> 0030 #include <QDBusSignature> 0031 #include <QDBusVariant> 0032 0033 #include <TelepathyQt/Global> 0034 0035 namespace KTp 0036 { 0037 0038 // ---------- generated by TpQt ---------------------------------------------------------------- 0039 /** 0040 * \struct FingerprintInfo 0041 * \ingroup struct 0042 * \headerfile TelepathyQt/types.h <TelepathyQt/Types> 0043 * 0044 * Structure type generated from the specification. 0045 * 0046 * A struct (Contact_Name, Fingerprint, Is_Verified) representing remote 0047 * contact's fingerprint, as returned by Get_Known_Fingerprints 0048 */ 0049 struct KTPOTR_EXPORT FingerprintInfo 0050 { 0051 QString contactName; 0052 QString fingerprint; 0053 bool isVerified; 0054 bool inUse; 0055 }; 0056 0057 KTPOTR_EXPORT bool operator==(const FingerprintInfo& v1, const FingerprintInfo& v2); 0058 inline bool operator!=(const FingerprintInfo& v1, const FingerprintInfo& v2) 0059 { 0060 return !operator==(v1, v2); 0061 } 0062 KTPOTR_EXPORT QDBusArgument& operator<<(QDBusArgument& arg, const FingerprintInfo& val); 0063 KTPOTR_EXPORT const QDBusArgument& operator>>(const QDBusArgument& arg, FingerprintInfo& val); 0064 0065 /** 0066 * \ingroup list 0067 * \headerfile TelepathyQt/types.h <TelepathyQt/Types> 0068 * 0069 * Array of FingerprintInfo values. 0070 */ 0071 typedef QList<FingerprintInfo> FingerprintInfoList; 0072 // ---------- \generated by TpQt ---------------------------------------------------------------- 0073 0074 void KTPOTR_EXPORT registerOtrTypes(); 0075 0076 } /* namespace KTp */ 0077 0078 Q_DECLARE_METATYPE(KTp::FingerprintInfo) 0079 Q_DECLARE_METATYPE(KTp::FingerprintInfoList) 0080 0081 #endif