/usr/include/KTp/OTR/constants.h is in libktp-dev 15.08.3-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 | /***************************************************************************
* Copyright (C) 2014 by Marcin ZiemiĆski <zieminn@gmail.com> *
* *
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA*
***************************************************************************/
#ifndef KTP_OTR_CONSTANTS_HEADER
#define KTP_OTR_CONSTANTS_HEADER
namespace KTp
{
/**
* \enum OTRTrustLevel
* \ingroup enumtypeconsts
*
* Enumerated type generated from the specification.
*
* Enumeration describing trust level of this conversation. The trust level
* can only increase unless Initialize/Stop are called or TrustFingerprint is
* called with trust=false.
*/
enum OTRTrustLevel
{
/**
* The conversation is currently unencrypted
*/
OTRTrustLevelNotPrivate = 0,
/**
* The conversation is currently encrypted but the remote end is not
* verified
*/
OTRTrustLevelUnverified = 1,
/**
* The conversation is currently encrypted and the remote end is verified
*/
OTRTrustLevelPrivate = 2,
/**
* Remote end closed the OTR session, messages cannot be sent anymore.
* Either call Stop to continue unencrypted or Initialize to send
* encrypted messages again.
*/
OTRTrustLevelFinished = 3,
_OTRTrustLevelPadding = 0xffffffffU
};
/**
* \ingroup enumtypeconsts
*
* 1 higher than the highest valid value of OTRTrustLevel.
*/
const int NUM_OTR_TRUST_LEVELS = (3+1);
enum OTRPolicy {
OTRPolicyAlways = 0,
OTRPolicyOpportunistic = 1,
OTRPolicyManual = 2,
OTRPolicyNever = 3
};
/**
* OTR message event enum type - the same as OtrlMessageEvent in libotr
*/
enum OTRMessageEvent
{
OTRL_MSGEVENT_NONE,
OTRL_MSGEVENT_ENCRYPTION_REQUIRED,
OTRL_MSGEVENT_ENCRYPTION_ERROR,
OTRL_MSGEVENT_CONNECTION_ENDED,
OTRL_MSGEVENT_SETUP_ERROR,
OTRL_MSGEVENT_MSG_REFLECTED,
OTRL_MSGEVENT_MSG_RESENT,
OTRL_MSGEVENT_RCVDMSG_NOT_IN_PRIVATE,
OTRL_MSGEVENT_RCVDMSG_UNREADABLE,
OTRL_MSGEVENT_RCVDMSG_MALFORMED,
OTRL_MSGEVENT_LOG_HEARTBEAT_RCVD,
OTRL_MSGEVENT_LOG_HEARTBEAT_SENT,
OTRL_MSGEVENT_RCVDMSG_GENERAL_ERR,
OTRL_MSGEVENT_RCVDMSG_UNENCRYPTED,
OTRL_MSGEVENT_RCVDMSG_UNRECOGNIZED,
OTRL_MSGEVENT_RCVDMSG_FOR_OTHER_INSTANCE
};
}
#define KTP_PROXY_BUS_NAME (QLatin1String("org.freedesktop.Telepathy.Client.KTp.Proxy"))
#define KTP_PROXY_SERVICE_OBJECT_PATH (QLatin1String("/org/freedesktop/TelepathyProxy/ProxyService"))
#define KTP_PROXY_CHANNEL_OBJECT_PATH_PREFIX (QLatin1String("/org/freedesktop/TelepathyProxy/OtrChannelProxy/"))
#define KTP_IFACE_CHANNEL_PROXY_OTR (QLatin1String("org.kde.TelepathyProxy.ChannelProxy.Interface.OTR"))
#define KTP_IFACE_PROXY_SERVICE (QLatin1String("org.kde.TelepathyProxy.ProxyService"))
#define KTP_PROXY_ERROR_NOT_CONNECTED (QLatin1String("org.freedesktop.TelepathyProxy.Error.NotConnected"))
#define KTP_PROXY_ERROR_ENCRYPTION_ERROR (QLatin1String("org.freedesktop.TelepathyProxy.Error.EncryptionError"))
/**
* OTR message headers
*/
#define OTR_MESSAGE_EVENT_HEADER (QLatin1String("otr-message-event"))
#define OTR_REMOTE_FINGERPRINT_HEADER (QLatin1String("otr-remote-fingerprint"))
#define OTR_ERROR_HEADER (QLatin1String("otr-error"))
#define OTR_UNENCRYPTED_MESSAGE_HEADER (QLatin1String("otr-unencrypted-message"))
#endif
|