From e148045e90eb2ac12bb6ba426052606d5ac38c40 Mon Sep 17 00:00:00 2001 From: 0xd34df00d <0xd34df00d@gmail.com> Date: Sun, 22 Dec 2019 19:46:13 -0500 Subject: Add a .clang-format somewhat close to the current style --- src/client/QXmppInvokable.h | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'src/client/QXmppInvokable.h') 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 &args = QList() ); + QVariant dispatch(const QByteArray &method, const QList &args = QList()); - /** + /** * Utility method to convert a QList to a list of types for type * checking. */ - static QList paramTypes( const QList ¶ms ); + static QList paramTypes(const QList ¶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 m_methodHash; - QReadWriteLock m_lock; + void buildMethodHash(); + QHash m_methodHash; + QReadWriteLock m_lock; }; - #endif -- cgit v1.2.3