diff options
Diffstat (limited to 'src/client/QXmppInvokable.h')
| -rw-r--r-- | src/client/QXmppInvokable.h | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/src/client/QXmppInvokable.h b/src/client/QXmppInvokable.h index fbb52978..bd69cd74 100644 --- a/src/client/QXmppInvokable.h +++ b/src/client/QXmppInvokable.h @@ -39,41 +39,40 @@ This is the base class for all objects that will be invokable via RPC. All publ */ class QXMPP_EXPORT QXmppInvokable : public QObject { - Q_OBJECT + Q_OBJECT public: - QXmppInvokable( QObject *parent = nullptr ); + QXmppInvokable(QObject *parent = nullptr); - ~QXmppInvokable() override; + ~QXmppInvokable() override; - /** + /** * Execute a method on an object. with a set of arguments. This method is reentrant, and the method * that is invoked will be done in a thread safe manner. It should be noted that while this method * is threadsafe and reentrant the side affects of the methods invoked may not be. */ - QVariant dispatch( const QByteArray &method, const QList<QVariant> &args = QList<QVariant>() ); + QVariant dispatch(const QByteArray &method, const QList<QVariant> &args = QList<QVariant>()); - /** + /** * Utility method to convert a QList<QVariant> to a list of types for type * checking. */ - static QList<QByteArray> paramTypes( const QList<QVariant> ¶ms ); + static QList<QByteArray> paramTypes(const QList<QVariant> ¶ms); - /** + /** * Reimplement this method to return a true if the invoking JID is allowed to execute the method. */ - virtual bool isAuthorized( const QString &jid ) const = 0; + virtual bool isAuthorized(const QString &jid) const = 0; public slots: - /** + /** * This provides a list of interfaces for introspection of the presented interface. */ - QStringList interfaces() const; + QStringList interfaces() const; private: - void buildMethodHash(); - QHash<QByteArray,int> m_methodHash; - QReadWriteLock m_lock; + void buildMethodHash(); + QHash<QByteArray, int> m_methodHash; + QReadWriteLock m_lock; }; - #endif |
