QXmpp Version: 1.10.3
Loading...
Searching...
No Matches
QXmppEntityTimeManager Class Reference

The QXmppEntityTimeManager class provided the functionality to get the local time of an entity as defined by XEP-0202: Entity Time. More...

#include <QXmppEntityTimeManager.h>

Inheritance diagram for QXmppEntityTimeManager:
QXmppClientExtension QXmppLoggable

Public Types

using EntityTimeResult = std::variant<QXmppEntityTimeIq, QXmppError>

Signals

void timeReceived (const QXmppEntityTimeIq &)
 This signal is emitted when a time response is received. It's not emitted when the QFuture-based request is used.
Signals inherited from QXmppLoggable
void setGauge (const QString &gauge, double value)
 Sets the given gauge to value.
void logMessage (QXmppLogger::MessageType type, const QString &msg)
 This signal is emitted to send logging messages.
void updateCounter (const QString &counter, qint64 amount=1)
 Updates the given counter by amount.

Public Member Functions

QString requestTime (const QString &jid)
QXmppTask< EntityTimeResultrequestEntityTime (const QString &jid)
Public Member Functions inherited from QXmppClientExtension
 QXmppClientExtension ()
virtual QStringList discoveryFeatures () const
virtual QList< QXmppDiscoveryIq::IdentitydiscoveryIdentities () const
virtual bool handleStanza (const QDomElement &stanza)
 You need to implement this method to process incoming XMPP stanzas.
virtual bool handleStanza (const QDomElement &stanza, const std::optional< QXmppE2eeMetadata > &e2eeMetadata)
 You need to implement this method to process incoming XMPP stanzas.
Public Member Functions inherited from QXmppLoggable
 QXmppLoggable (QObject *parent=nullptr)

Additional Inherited Members

Protected Member Functions inherited from QXmppClientExtension
QXmppClientclient () const
virtual void setClient (QXmppClient *client)
virtual void onRegistered (QXmppClient *client)
virtual void onUnregistered (QXmppClient *client)
void injectIq (const QDomElement &element, const std::optional< QXmppE2eeMetadata > &e2eeMetadata)
bool injectMessage (QXmppMessage &&message)
Protected Member Functions inherited from QXmppLoggable
void debug (const QString &message)
void info (const QString &message)
void warning (const QString &message)
void logReceived (const QString &message)
void logSent (const QString &message)

Detailed Description

The QXmppEntityTimeManager class provided the functionality to get the local time of an entity as defined by XEP-0202: Entity Time.

Member Typedef Documentation

◆ EntityTimeResult

Contains the requested entity time or the returned error in case of a failure.

Since
QXmpp 1.5

Member Function Documentation

◆ requestEntityTime()

auto QXmppEntityTimeManager::requestEntityTime ( const QString & jid)

Requests the time from an XMPP entity and reports it via a QFuture.

The timeReceived() signal is not emitted.

Parameters
jid
Warning
THIS API IS NOT FINALIZED YET!
Since
QXmpp 1.5

◆ requestTime()

QString QXmppEntityTimeManager::requestTime ( const QString & jid)

Request the time from an XMPP entity.

The result is emitted on the timeReceived() signal.

Parameters
jid

The documentation for this class was generated from the following files: