File indexing completed on 2023-12-03 08:28:36
0001 /* 0002 * This file contains D-Bus client proxy classes generated by qt-client-gen.py. 0003 * 0004 * This file can be distributed under the same terms as the specification from 0005 * which it was generated. 0006 */ 0007 0008 #ifndef OTR_CHANNEL_PROXY_HEADER 0009 #define OTR_CHANNEL_PROXY_HEADER 0010 0011 #include "ktpotr_export.h" 0012 0013 #include <QtGlobal> 0014 0015 #include <QString> 0016 #include <QObject> 0017 #include <QVariant> 0018 0019 #include <QDBusPendingReply> 0020 0021 #include <TelepathyQt/Types> 0022 #include <TelepathyQt/AbstractInterface> 0023 #include <TelepathyQt/DBusProxy> 0024 #include <TelepathyQt/Global> 0025 0026 namespace Tp 0027 { 0028 class PendingVariant; 0029 class PendingOperation; 0030 } 0031 0032 namespace KTp 0033 { 0034 namespace Client 0035 { 0036 0037 /** 0038 * \class ChannelProxyInterfaceOTRInterface 0039 * \headerfile TelepathyQt/channel-proxy.h <TelepathyQt/ChannelProxy> 0040 * \ingroup clientchannelproxy 0041 * 0042 * Proxy class providing a 1:1 mapping of the D-Bus interface "org.kde.TelepathyProxy.ChannelProxy.Interface.OTR". 0043 */ 0044 class KTPOTR_EXPORT ChannelProxyInterfaceOTRInterface : public Tp::AbstractInterface 0045 { 0046 Q_OBJECT 0047 0048 public: 0049 /** 0050 * Returns the name of the interface "org.kde.TelepathyProxy.ChannelProxy.Interface.OTR", which this class 0051 * represents. 0052 * 0053 * \return The D-Bus interface name. 0054 */ 0055 static inline QLatin1String staticInterfaceName() 0056 { 0057 return QLatin1String("org.kde.TelepathyProxy.ChannelProxy.Interface.OTR"); 0058 } 0059 0060 /** 0061 * Creates a ChannelProxyInterfaceOTRInterface associated with the given object on the session bus. 0062 * 0063 * \param busName Name of the service the object is on. 0064 * \param objectPath Path to the object on the service. 0065 * \param parent Passed to the parent class constructor. 0066 */ 0067 ChannelProxyInterfaceOTRInterface( 0068 const QString& busName, 0069 const QString& objectPath, 0070 QObject* parent = nullptr 0071 ); 0072 0073 /** 0074 * Creates a ChannelProxyInterfaceOTRInterface associated with the given object on the given bus. 0075 * 0076 * \param connection The bus via which the object can be reached. 0077 * \param busName Name of the service the object is on. 0078 * \param objectPath Path to the object on the service. 0079 * \param parent Passed to the parent class constructor. 0080 */ 0081 ChannelProxyInterfaceOTRInterface( 0082 const QDBusConnection& connection, 0083 const QString& busName, 0084 const QString& objectPath, 0085 QObject* parent = nullptr 0086 ); 0087 0088 /** 0089 * Creates a ChannelProxyInterfaceOTRInterface associated with the same object as the given proxy. 0090 * 0091 * \param proxy The proxy to use. It will also be the QObject::parent() 0092 * for this object. 0093 */ 0094 ChannelProxyInterfaceOTRInterface(Tp::DBusProxy *proxy); 0095 0096 /** 0097 * Creates a ChannelProxyInterfaceOTRInterface associated with the same object as the given proxy. 0098 * Additionally, the created proxy will have the same parent as the given 0099 * proxy. 0100 * 0101 * \param mainInterface The proxy to use. 0102 */ 0103 explicit ChannelProxyInterfaceOTRInterface(const Tp::AbstractInterface& mainInterface); 0104 0105 /** 0106 * Creates a ChannelProxyInterfaceOTRInterface associated with the same object as the given proxy. 0107 * However, a different parent object can be specified. 0108 * 0109 * \param mainInterface The proxy to use. 0110 * \param parent Passed to the parent class constructor. 0111 */ 0112 ChannelProxyInterfaceOTRInterface(const Tp::AbstractInterface& mainInterface, QObject* parent); 0113 0114 /** 0115 * Asynchronous getter for the remote object property \c WrappedChannel of type \c QDBusObjectPath. 0116 * 0117 * 0118 * \htmlonly 0119 * <p>Object path of the channel this proxy is created for.</p> 0120 * \endhtmlonly 0121 * 0122 * \return A pending variant which will emit finished when the property has been 0123 * retrieved. 0124 */ 0125 inline Tp::PendingVariant *requestPropertyWrappedChannel() const 0126 { 0127 return internalRequestProperty(QLatin1String("WrappedChannel")); 0128 } 0129 0130 /** 0131 * Asynchronous getter for the remote object property \c Connected of type \c bool. 0132 * 0133 * 0134 * \htmlonly 0135 * <p>TRUE if the proxy is connected</p> 0136 * \endhtmlonly 0137 * 0138 * \return A pending variant which will emit finished when the property has been 0139 * retrieved. 0140 */ 0141 inline Tp::PendingVariant *requestPropertyConnected() const 0142 { 0143 return internalRequestProperty(QLatin1String("Connected")); 0144 } 0145 0146 /** 0147 * Asynchronous getter for the remote object property \c PendingMessages of type \c Tp::MessagePartListList. 0148 * 0149 * 0150 * \htmlonly 0151 * <p> 0152 * The same as: 0153 * \endhtmlonly ChannelInterfaceMessagesInterface \htmlonly 0154 * </p> 0155 * \endhtmlonly 0156 * 0157 * \return A pending variant which will emit finished when the property has been 0158 * retrieved. 0159 */ 0160 inline Tp::PendingVariant *requestPropertyPendingMessages() const 0161 { 0162 return internalRequestProperty(QLatin1String("PendingMessages")); 0163 } 0164 0165 /** 0166 * Asynchronous getter for the remote object property \c TrustLevel of type \c uint. 0167 * 0168 * 0169 * \htmlonly 0170 * <p>The current trust level of this channel: 0171 * 0=TRUST_NOT_PRIVATE, 1=TRUST_UNVERIFIED, 2=TRUST_PRIVATE, 0172 * 3=TRUST_FINISHED</p> 0173 * <p>Clients MUST listen to PropertiesChanged to update UI when trust 0174 * level changes.</p> 0175 * \endhtmlonly 0176 * 0177 * \return A pending variant which will emit finished when the property has been 0178 * retrieved. 0179 */ 0180 inline Tp::PendingVariant *requestPropertyTrustLevel() const 0181 { 0182 return internalRequestProperty(QLatin1String("TrustLevel")); 0183 } 0184 0185 /** 0186 * Asynchronous getter for the remote object property \c LocalFingerprint of type \c QString. 0187 * 0188 * 0189 * \htmlonly 0190 * <p>User's current fingerprint. The first element is a human readable 0191 * fingerprint that can be displayed to the user so he can communicate it 0192 * to the other end by other means so he can trust it. The 2nd element is 0193 * the fingerprint raw data.</p> 0194 * \endhtmlonly 0195 * 0196 * \return A pending variant which will emit finished when the property has been 0197 * retrieved. 0198 */ 0199 inline Tp::PendingVariant *requestPropertyLocalFingerprint() const 0200 { 0201 return internalRequestProperty(QLatin1String("LocalFingerprint")); 0202 } 0203 0204 /** 0205 * Asynchronous getter for the remote object property \c RemoteFingerprint of type \c QString. 0206 * 0207 * 0208 * \htmlonly 0209 * <p>The current fingerprint of the remote contact. Should be displayed 0210 * to the user to update its trust level. It is shown in human readable format i.e. 0211 * :e '12345678 12345678 12345678 12345678 12345678'.</p> 0212 * \endhtmlonly 0213 * 0214 * \return A pending variant which will emit finished when the property has been 0215 * retrieved. 0216 */ 0217 inline Tp::PendingVariant *requestPropertyRemoteFingerprint() const 0218 { 0219 return internalRequestProperty(QLatin1String("RemoteFingerprint")); 0220 } 0221 0222 /** 0223 * Request all of the DBus properties on the interface. 0224 * 0225 * \return A pending variant map which will emit finished when the properties have 0226 * been retrieved. 0227 */ 0228 Tp::PendingVariantMap *requestAllProperties() const 0229 { 0230 return internalRequestAllProperties(); 0231 } 0232 0233 public Q_SLOTS: 0234 /** 0235 * Begins a call to the D-Bus method \c ConnectProxy on the remote object. 0236 * 0237 * Connect to the otr proxy. From now on all data which is modified by it 0238 * should be acquired from the proxy, not from the underlying channel. 0239 * 0240 * Note that \a timeout is ignored as of now. It will be used once 0241 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0242 * 0243 * \param timeout The timeout in milliseconds. 0244 */ 0245 inline QDBusPendingReply<> ConnectProxy(int timeout = -1) 0246 { 0247 if (!invalidationReason().isEmpty()) { 0248 return QDBusPendingReply<>(QDBusMessage::createError( 0249 invalidationReason(), 0250 invalidationMessage() 0251 )); 0252 } 0253 0254 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0255 this->staticInterfaceName(), QLatin1String("ConnectProxy")); 0256 return this->connection().asyncCall(callMessage, timeout); 0257 } 0258 0259 /** 0260 * Begins a call to the D-Bus method \c DisconnectProxy on the remote object. 0261 * 0262 * Turns off proxy if one is connected. 0263 * 0264 * Note that \a timeout is ignored as of now. It will be used once 0265 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0266 * 0267 * \param timeout The timeout in milliseconds. 0268 */ 0269 inline QDBusPendingReply<> DisconnectProxy(int timeout = -1) 0270 { 0271 if (!invalidationReason().isEmpty()) { 0272 return QDBusPendingReply<>(QDBusMessage::createError( 0273 invalidationReason(), 0274 invalidationMessage() 0275 )); 0276 } 0277 0278 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0279 this->staticInterfaceName(), QLatin1String("DisconnectProxy")); 0280 return this->connection().asyncCall(callMessage, timeout); 0281 } 0282 0283 /** 0284 * Begins a call to the D-Bus method \c SendMessage on the remote object. 0285 * 0286 * \htmlonly 0287 * <p> 0288 * The same as: 0289 * \endhtmlonly org.freedesktop.Telepathy.Channel.Interface.Messages.Sent \htmlonly 0290 * </p> 0291 * \endhtmlonly 0292 * 0293 * Note that \a timeout is ignored as of now. It will be used once 0294 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0295 * 0296 * \param timeout The timeout in milliseconds. 0297 */ 0298 inline QDBusPendingReply<QString> SendMessage(const Tp::MessagePartList& message, uint flags, int timeout = -1) 0299 { 0300 if (!invalidationReason().isEmpty()) { 0301 return QDBusPendingReply<QString>(QDBusMessage::createError( 0302 invalidationReason(), 0303 invalidationMessage() 0304 )); 0305 } 0306 0307 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0308 this->staticInterfaceName(), QLatin1String("SendMessage")); 0309 callMessage << QVariant::fromValue(message) << QVariant::fromValue(flags); 0310 return this->connection().asyncCall(callMessage, timeout); 0311 } 0312 0313 /** 0314 * Begins a call to the D-Bus method \c AcknowledgePendingMessages on the remote object. 0315 * 0316 * \htmlonly 0317 * <p> 0318 * The same as: 0319 * \endhtmlonly ChannelTypeTextInterface \htmlonly 0320 * </p> 0321 * \endhtmlonly 0322 * 0323 * Note that \a timeout is ignored as of now. It will be used once 0324 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0325 * 0326 * \param timeout The timeout in milliseconds. 0327 */ 0328 inline QDBusPendingReply<> AcknowledgePendingMessages(const Tp::UIntList& IDs, int timeout = -1) 0329 { 0330 if (!invalidationReason().isEmpty()) { 0331 return QDBusPendingReply<>(QDBusMessage::createError( 0332 invalidationReason(), 0333 invalidationMessage() 0334 )); 0335 } 0336 0337 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0338 this->staticInterfaceName(), QLatin1String("AcknowledgePendingMessages")); 0339 callMessage << QVariant::fromValue(IDs); 0340 return this->connection().asyncCall(callMessage, timeout); 0341 } 0342 0343 /** 0344 * Begins a call to the D-Bus method \c Initialize on the remote object. 0345 * 0346 * Start an OTR session for this channel if the remote end supports it has 0347 * well. 0348 * 0349 * Note that \a timeout is ignored as of now. It will be used once 0350 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0351 * 0352 * \param timeout The timeout in milliseconds. 0353 */ 0354 inline QDBusPendingReply<> Initialize(int timeout = -1) 0355 { 0356 if (!invalidationReason().isEmpty()) { 0357 return QDBusPendingReply<>(QDBusMessage::createError( 0358 invalidationReason(), 0359 invalidationMessage() 0360 )); 0361 } 0362 0363 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0364 this->staticInterfaceName(), QLatin1String("Initialize")); 0365 return this->connection().asyncCall(callMessage, timeout); 0366 } 0367 0368 /** 0369 * Begins a call to the D-Bus method \c Stop on the remote object. 0370 * 0371 * Stops the OTR session. 0372 * 0373 * Note that \a timeout is ignored as of now. It will be used once 0374 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0375 * 0376 * \param timeout The timeout in milliseconds. 0377 */ 0378 inline QDBusPendingReply<> Stop(int timeout = -1) 0379 { 0380 if (!invalidationReason().isEmpty()) { 0381 return QDBusPendingReply<>(QDBusMessage::createError( 0382 invalidationReason(), 0383 invalidationMessage() 0384 )); 0385 } 0386 0387 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0388 this->staticInterfaceName(), QLatin1String("Stop")); 0389 return this->connection().asyncCall(callMessage, timeout); 0390 } 0391 0392 /** 0393 * Begins a call to the D-Bus method \c TrustFingerprint on the remote object. 0394 * 0395 * Set whether or not the user trusts the given fingerprint. It has to be 0396 * the fingerprint the remote contact is currently using. 0397 * 0398 * Note that \a timeout is ignored as of now. It will be used once 0399 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0400 * 0401 * 0402 * \param fingerprint 0403 * 0404 * The fingerprint in format: '12345678 12345678 12345678 0405 * 12345678 12345678' 0406 * 0407 * \param trust 0408 * 0409 * %TRUE if trusted, %FALSE otherwise. 0410 * \param timeout The timeout in milliseconds. 0411 */ 0412 inline QDBusPendingReply<> TrustFingerprint(const QString& fingerprint, bool trust, int timeout = -1) 0413 { 0414 if (!invalidationReason().isEmpty()) { 0415 return QDBusPendingReply<>(QDBusMessage::createError( 0416 invalidationReason(), 0417 invalidationMessage() 0418 )); 0419 } 0420 0421 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0422 this->staticInterfaceName(), QLatin1String("TrustFingerprint")); 0423 callMessage << QVariant::fromValue(fingerprint) << QVariant::fromValue(trust); 0424 return this->connection().asyncCall(callMessage, timeout); 0425 } 0426 0427 /** 0428 * Begins a call to the D-Bus method \c StartPeerAuthentication on the remote object. 0429 * 0430 * \htmlonly 0431 * <p>This method starts peer authentication using the Socialist 0432 * Millionaire protocol.</p> 0433 * \endhtmlonly 0434 * 0435 * Note that \a timeout is ignored as of now. It will be used once 0436 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0437 * 0438 * 0439 * \param question 0440 * 0441 * The question to be used for peer authentication. It is used by the 0442 * remote peer as a hint for the shared secret. If an empty string is 0443 * passed only the shared secret will be used on the peer 0444 * authentication process. 0445 * 0446 * \param secret 0447 * 0448 * The shared secret to be used for peer authentication. If the 0449 * Question parameter is not empty, this should be the answer to it. 0450 * \param timeout The timeout in milliseconds. 0451 */ 0452 inline QDBusPendingReply<> StartPeerAuthentication(const QString& question, const QString& secret, int timeout = -1) 0453 { 0454 if (!invalidationReason().isEmpty()) { 0455 return QDBusPendingReply<>(QDBusMessage::createError( 0456 invalidationReason(), 0457 invalidationMessage() 0458 )); 0459 } 0460 0461 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0462 this->staticInterfaceName(), QLatin1String("StartPeerAuthentication")); 0463 callMessage << QVariant::fromValue(question) << QVariant::fromValue(secret); 0464 return this->connection().asyncCall(callMessage, timeout); 0465 } 0466 0467 /** 0468 * Begins a call to the D-Bus method \c RespondPeerAuthentication on the remote object. 0469 * 0470 * \htmlonly 0471 * <p>This method continues the peer authentication started by the remote 0472 * peer.</p> 0473 * \endhtmlonly 0474 * 0475 * Note that \a timeout is ignored as of now. It will be used once 0476 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0477 * 0478 * 0479 * \param secret 0480 * 0481 * The shared secret to be used for peer authentication. 0482 * \param timeout The timeout in milliseconds. 0483 */ 0484 inline QDBusPendingReply<> RespondPeerAuthentication(const QString& secret, int timeout = -1) 0485 { 0486 if (!invalidationReason().isEmpty()) { 0487 return QDBusPendingReply<>(QDBusMessage::createError( 0488 invalidationReason(), 0489 invalidationMessage() 0490 )); 0491 } 0492 0493 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0494 this->staticInterfaceName(), QLatin1String("RespondPeerAuthentication")); 0495 callMessage << QVariant::fromValue(secret); 0496 return this->connection().asyncCall(callMessage, timeout); 0497 } 0498 0499 /** 0500 * Begins a call to the D-Bus method \c AbortPeerAuthentication on the remote object. 0501 * 0502 * \htmlonly 0503 * <p>This method aborts the peer authentication process.</p> 0504 * \endhtmlonly 0505 * 0506 * Note that \a timeout is ignored as of now. It will be used once 0507 * http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed. 0508 * 0509 * \param timeout The timeout in milliseconds. 0510 */ 0511 inline QDBusPendingReply<> AbortPeerAuthentication(int timeout = -1) 0512 { 0513 if (!invalidationReason().isEmpty()) { 0514 return QDBusPendingReply<>(QDBusMessage::createError( 0515 invalidationReason(), 0516 invalidationMessage() 0517 )); 0518 } 0519 0520 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(), 0521 this->staticInterfaceName(), QLatin1String("AbortPeerAuthentication")); 0522 return this->connection().asyncCall(callMessage, timeout); 0523 } 0524 0525 Q_SIGNALS: 0526 /** 0527 * Represents the signal \c MessageSent on the remote object. 0528 * 0529 * \htmlonly 0530 * <p> 0531 * The same as: 0532 * \endhtmlonly ChannelInterfaceMessagesInterface \htmlonly 0533 * </p> 0534 * \endhtmlonly 0535 */ 0536 void MessageSent(const Tp::MessagePartList& content, uint flags, const QString& messageToken); 0537 0538 /** 0539 * Represents the signal \c MessageReceived on the remote object. 0540 * 0541 * \htmlonly 0542 * <p> 0543 * The same as: 0544 * \endhtmlonly ChannelInterfaceMessagesInterface \htmlonly 0545 * Plus: 0546 * <p>The OTR interface adds some additional keys to message headers. 0547 * Messages sent during an encrypted OTR session have an additional 0548 * 'otr-remote-fingerprint' header, whose string value is the 0549 * human-readable hex form of an OTR fingerprint:</p> 0550 * 0551 * <code> 0552 * { 0553 * 'message-type': Channel_Text_Message_Type_Normal, 0554 * 'message-sender': 42, # Contact_Handle of mercutio@example.com 0555 * 'otr-remote-fingerprint': '12345678 12345678 12345678 12345678 12345678', 0556 * }, 0557 * { 0558 * 'content-type': 'text/plain', 0559 * 'content': 'O, then, I see Queen Mab hath been with you.', 0560 * } 0561 * </code> 0562 * 0563 * <p>Logging infrastructure MAY use these headers to associate 0564 * conversations with OTR users in a secure way, or to avoid 0565 * logging OTR conversations at all.</p> 0566 * 0567 * <p>Messages generated internally by the OTR implementation have an 0568 * additional "otr-message-event" key in the header (0'th part) whose 0569 * value is the OtrlMessageEvent, and SHOULD be 0570 * of type Channel_Text_Message_Type_Notice. These messages do not have id 0571 * and should not be acknowledged:</p> 0572 * 0573 * <code> 0574 * { 0575 * 'message-type': Channel_Text_Message_Type_Notice, 0576 * 'message-sender': 42, # Contact_Handle of mercutio@example.com 0577 * 'otr-message-event': OTRL_MSGEVENT_RCVDMSG_UNRECOGNIZED, 0578 * 'otr-remote-fingerprint': '12345678 12345678 12345678 12345678 12345678', 0579 * }, 0580 * { 0581 * 'content-type': 'text/plain', 0582 * 'content': 'Unrecognized OTR message received from mercutio@example.com', 0583 * } 0584 * </code> 0585 * 0586 * <p>User interfaces that implement OTR MUST present these special 0587 * notices in a way that cannot be faked by the remote user 0588 * sending a crafted XMPP (or other protocol) notice.</p> 0589 * 0590 * <p>For OTRL_MSGEVENT_SETUP_ERROR or OTRL_MSGEVENT_RCVDMSG_GENERAL_ERR 0591 * events, the header SHOULD additionally contain an "otr-error" 0592 * key whose string value is a debug message.</p> 0593 * 0594 * <p>For OTRL_MSGEVENT_RCVDMSG_UNENCRYPTED events, the header 0595 * MUST additionally contain an "otr-unencrypted-message" key 0596 * whose string value is the unencrypted message.</p> 0597 * </p> 0598 * \endhtmlonly 0599 */ 0600 void MessageReceived(const Tp::MessagePartList& message); 0601 0602 /** 0603 * Represents the signal \c PendingMessagesRemoved on the remote object. 0604 * 0605 * \htmlonly 0606 * <p> 0607 * The same as: 0608 * \endhtmlonly ChannelInterfaceMessagesInterface \htmlonly 0609 * </p> 0610 * \endhtmlonly 0611 */ 0612 void PendingMessagesRemoved(const Tp::UIntList& messageIDs); 0613 0614 /** 0615 * Represents the signal \c PeerAuthenticationRequested on the remote object. 0616 * 0617 * Emitted when peer authentication has been requested by the remote peer. 0618 * 0619 * \param question 0620 * 0621 * The question the remote peer is using for peer authentication. If 0622 * an empty string is passed only the shared secret will be used on 0623 * the peer authentication process. 0624 */ 0625 void PeerAuthenticationRequested(const QString& question); 0626 0627 /** 0628 * Represents the signal \c PeerAuthenticationConcluded on the remote object. 0629 * 0630 * Emitted when the peer authentication process finishes normally. 0631 * 0632 * \param authenticated 0633 * 0634 * True if peer identity could be authenticated, false otherwise. 0635 */ 0636 void PeerAuthenticationConcluded(bool authenticated); 0637 0638 /** 0639 * Represents the signal \c PeerAuthenticationInProgress on the remote object. 0640 * 0641 * Emitted when the peer authentication process has entered next stage. 0642 */ 0643 void PeerAuthenticationInProgress(); 0644 0645 /** 0646 * Represents the signal \c PeerAuthenticationAborted on the remote object. 0647 * 0648 * Emitted when the peer authentication process has been aborted by the 0649 * remote peer. 0650 */ 0651 void PeerAuthenticationAborted(); 0652 0653 /** 0654 * Represents the signal \c PeerAuthenticationError on the remote object. 0655 * 0656 * Emitted when the peer authentication process has been aborted because a 0657 * protocol error has occured. 0658 */ 0659 void PeerAuthenticationError(); 0660 0661 /** 0662 * Represents the signal \c PeerAuthenticationCheated on the remote object. 0663 * 0664 * Emitted when the peer authentication process has been aborted because 0665 * cheating was discovered. 0666 */ 0667 void PeerAuthenticationCheated(); 0668 0669 /** 0670 * Represents the signal \c SessionRefreshed on the remote object. 0671 * 0672 * An AKE has been performed in an already established session. 0673 */ 0674 void SessionRefreshed(); 0675 0676 /** 0677 * Represents the signal \c TrustLevelChanged on the remote object. 0678 * 0679 * \htmlonly 0680 * OTR state of the connection has changed. 0681 * \endhtmlonly 0682 */ 0683 void TrustLevelChanged(uint trustLevel); 0684 0685 protected: 0686 void invalidate(Tp::DBusProxy *, const QString &, const QString &) override; 0687 }; 0688 } 0689 } 0690 Q_DECLARE_METATYPE(KTp::Client::ChannelProxyInterfaceOTRInterface*) 0691 #endif