#include <mw/messagingbus/session.h>
class MessagingBus::Session : public QObject |
Public Member Enumerations | |
---|---|
enum | State { Offline, Connecting, Online, Authenticated } |
enum | StateError { None, EnablerNotFound, NotAllowed, CertificateInvalid, ..., EnablerExpired } |
Public Member Functions | |
---|---|
Session() | |
~Session() | |
void | cancelMessageSending(QList< RequestId >) |
RequestId | channelAffiliations(const QString &) |
RequestId | channelConfiguration(const QString &) |
RequestId | channelSubscribers(const QString &) |
RequestId | createChannel(const QString &, const ChannelConfiguration *) |
RequestId | deleteChannel(const QString &) |
RequestId | discoverChannels(const QString &) |
void | getAccountInformation() |
void | getApplicationSettings() |
void | markConsumed(const QStringList &) |
RequestId | modifyChannelAffiliations(const ChannelAffiliations *) |
void | registerApplication() |
RequestId | sendMessage(const PointToPointMessage *) |
RequestId | sendMessage(const ChannelMessage *) |
bool | sendReceipt(const Message *) |
void | setApplicationSettings(const ApplicationSettings *) |
SessionState | state() |
RequestId | subscribeChannel(const QString &) |
RequestId | subscribedChannels() |
void | unregisterApplication() |
RequestId | unsubscribeChannel(const QString &) |
QString | version() |
Public Signals | |
---|---|
void | accountInformationReceived(MessagingBus::AccountInformation) |
void | applicationSettingsReceived(MessagingBus::ApplicationSettings) |
void | authenticationRequired(MessagingBus::Authenticator &) |
void | channelAffiliationsModified(MessagingBus::Acknowledgement) |
void | channelAffiliationsReceived(MessagingBus::ChannelAffiliations, MessagingBus::Acknowledgement) |
void | channelConfigurationReceived(MessagingBus::ChannelConfiguration, MessagingBus::Acknowledgement) |
void | channelCreated(QString, MessagingBus::Acknowledgement) |
void | channelDeleted(QString, MessagingBus::Acknowledgement) |
void | channelMessageSent(MessagingBus::Acknowledgement) |
void | channelSubscribed(QString, MessagingBus::Acknowledgement) |
void | channelSubscribersReceived(QString, QList< MessagingBus::Subscriber >, MessagingBus::Acknowledgement) |
void | channelUnsubscribed(QString, MessagingBus::Acknowledgement) |
void | discoveredChannelsReceived(QList< MessagingBus::Channel >, MessagingBus::Acknowledgement) |
void | messageSendingCancelled(QList< MessagingBus::RequestId >) |
void | pointToPointMessageSent(MessagingBus::Acknowledgement) |
void | receiptReceived(MessagingBus::Receipt) |
void | received(const MessagingBus::PointToPointMessage) |
void | stateChanged(MessagingBus::SessionState) |
void | subscribedChannelsReceived(QStringList, MessagingBus::Acknowledgement) |
void | subscriptionChanged(QString, MessagingBus::Subscription, bool) |
Inherited Attributes | |
---|---|
QObject::d_ptr | |
QObject::objectName | |
QObject::staticQtMetaObject |
Inherited Functions | |
---|---|
QObject::QObject(QObjectPrivate &,QObject *) | |
QObject::blockSignals(bool) | |
QObject::childEvent(QChildEvent *) | |
QObject::children()const | |
QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType) | |
QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType) | |
QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const | |
QObject::connectNotify(const char *) | |
QObject::customEvent(QEvent *) | |
QObject::deleteLater | |
QObject::destroyed | |
QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &) | |
QObject::disconnect(const QObject *,const char *) | |
QObject::disconnect(const QObject *,const char *,const QObject *,const char *) | |
QObject::disconnect(const char *,const QObject *,const char *) | |
QObject::disconnectNotify(const char *) | |
QObject::dumpObjectInfo() | |
QObject::dumpObjectTree() | |
QObject::dynamicPropertyNames()const | |
QObject::event(QEvent *) | |
QObject::eventFilter(QObject *,QEvent *) | |
QObject::findChild(const QString &)const | |
QObject::findChildren(const QRegExp &)const | |
QObject::findChildren(const QString &)const | |
QObject::inherits(const char *)const | |
QObject::installEventFilter(QObject *) | |
QObject::isWidgetType()const | |
QObject::killTimer(int) | |
QObject::moveToThread(QThread *) | |
QObject::objectName()const | |
QObject::parent()const | |
QObject::property(const char *)const | |
QObject::receivers(const char *)const | |
QObject::registerUserData() | |
QObject::removeEventFilter(QObject *) | |
QObject::sender()const | |
QObject::senderSignalIndex()const | |
QObject::setObjectName(const QString &) | |
QObject::setParent(QObject *) | |
QObject::setProperty(const char *,const QVariant &) | |
QObject::setUserData(uint,QObjectUserData *) | |
QObject::signalsBlocked()const | |
QObject::startTimer(int) | |
QObject::thread()const | |
QObject::timerEvent(QTimerEvent *) | |
QObject::userData(uint)const | |
QObject::~QObject() |
Enumerator | Value | Description |
---|---|---|
Offline | 0 | |
Connecting | 1 | |
Online | 2 | |
Authenticated | 3 |
Enumerator | Value | Description |
---|---|---|
None | 0 | |
EnablerNotFound | 1 | |
NotAllowed | 2 | |
CertificateInvalid | 3 | |
CertificateConflict | 4 | |
CertificateExpired | 5 | |
NoNetwork | 6 | |
MissingCredentials | 7 | |
SecurityCheckFailed | 8 | |
DisabledByUser | 9 | |
EnablerExpired | 10 |
Session | ( | ) |
~Session | ( | ) |
void | accountInformationReceived | ( | MessagingBus::AccountInformation | information | ) | [signal] |
void | applicationSettingsReceived | ( | MessagingBus::ApplicationSettings | settings | ) | [signal] |
void | authenticationRequired | ( | MessagingBus::Authenticator & | certificate | ) | [signal] |
void | cancelMessageSending | ( | QList< RequestId > | ids | ) |
RequestId | channelAffiliations | ( | const QString & | path | ) |
void | channelAffiliationsModified | ( | MessagingBus::Acknowledgement | ack | ) | [signal] |
void | channelAffiliationsReceived | ( | MessagingBus::ChannelAffiliations | affiliations, |
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
RequestId | channelConfiguration | ( | const QString & | path | ) |
void | channelConfigurationReceived | ( | MessagingBus::ChannelConfiguration | configuration, |
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
void | channelCreated | ( | QString | name, |
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
void | channelDeleted | ( | QString | name, |
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
void | channelMessageSent | ( | MessagingBus::Acknowledgement | ack | ) | [signal] |
void | channelSubscribed | ( | QString | path, |
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
RequestId | channelSubscribers | ( | const QString & | path | ) |
void | channelSubscribersReceived | ( | QString | path, |
QList< MessagingBus::Subscriber > | subscribers, | |||
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
void | channelUnsubscribed | ( | QString | path, |
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
RequestId | createChannel | ( | const QString & | name, |
const ChannelConfiguration * | conf = 0 | |||
) |
RequestId | deleteChannel | ( | const QString & | name | ) |
RequestId | discoverChannels | ( | const QString & | path = "" | ) |
void | discoveredChannelsReceived | ( | QList< MessagingBus::Channel > | channels, |
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
void | getAccountInformation | ( | ) |
void | getApplicationSettings | ( | ) |
void | markConsumed | ( | const QStringList & | messageIds | ) |
void | messageSendingCancelled | ( | QList< MessagingBus::RequestId > | cancelledMessages | ) | [signal] |
RequestId | modifyChannelAffiliations | ( | const ChannelAffiliations * | affiliations | ) |
void | pointToPointMessageSent | ( | MessagingBus::Acknowledgement | ack | ) | [signal] |
void | receiptReceived | ( | MessagingBus::Receipt | receipt | ) | [signal] |
void | received | ( | const MessagingBus::PointToPointMessage | message | ) | [signal] |
void | registerApplication | ( | ) |
RequestId | sendMessage | ( | const PointToPointMessage * | message | ) |
RequestId | sendMessage | ( | const ChannelMessage * | message | ) |
bool | sendReceipt | ( | const Message * | message | ) |
void | setApplicationSettings | ( | const ApplicationSettings * | settings | ) |
SessionState | state | ( | ) |
void | stateChanged | ( | MessagingBus::SessionState | state | ) | [signal] |
RequestId | subscribeChannel | ( | const QString & | path | ) |
RequestId | subscribedChannels | ( | ) |
void | subscribedChannelsReceived | ( | QStringList | paths, |
MessagingBus::Acknowledgement | ack | |||
) | [signal] |
void | subscriptionChanged | ( | QString | path, |
MessagingBus::Subscription | subscription, | |||
bool | channelDeleted | |||
) | [signal] |