diff options
| author | 0xd34df00d <0xd34df00d@gmail.com> | 2019-12-22 19:46:13 -0500 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2019-12-23 19:04:55 +0100 |
| commit | e148045e90eb2ac12bb6ba426052606d5ac38c40 (patch) | |
| tree | 3ceedcc9997d4c25ec8b14bafecd5faad8cb4ed1 /src/client/QXmppInvokable.h | |
| parent | ee218192f6c25eba0c8f041ca2e53b7222881aa0 (diff) | |
| download | qxmpp-e148045e90eb2ac12bb6ba426052606d5ac38c40.tar.gz | |
Add a .clang-format somewhat close to the current style
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 |
