diff options
author | David A Roberts <d@vidr.cc> | 2016-04-23 12:54:21 +1000 |
---|---|---|
committer | David A Roberts <d@vidr.cc> | 2016-04-23 12:54:21 +1000 |
commit | aa8b077499653b6ebf2d78136c75c801e6f99c29 (patch) | |
tree | 3c7e575cd64aea4fdcbd78a936f1913532105fb4 | |
parent | deda947801d536dba9b59370867f205fe8aabaa8 (diff) | |
download | libquotient-aa8b077499653b6ebf2d78136c75c801e6f99c29.tar.gz libquotient-aa8b077499653b6ebf2d78136c75c801e6f99c29.zip |
Room: Q_INVOKABLE
-rw-r--r-- | room.h | 40 |
1 files changed, 20 insertions, 20 deletions
@@ -40,30 +40,30 @@ namespace QMatrixClient Room(Connection* connection, QString id); virtual ~Room(); - QString id() const; - QList<Event*> messageEvents() const; - QString name() const; - QStringList aliases() const; - QString canonicalAlias() const; - QString displayName() const; - QString topic() const; - JoinState joinState() const; - QList<User*> usersTyping() const; + Q_INVOKABLE QString id() const; + Q_INVOKABLE QList<Event*> messageEvents() const; + Q_INVOKABLE QString name() const; + Q_INVOKABLE QStringList aliases() const; + Q_INVOKABLE QString canonicalAlias() const; + Q_INVOKABLE QString displayName() const; + Q_INVOKABLE QString topic() const; + Q_INVOKABLE JoinState joinState() const; + Q_INVOKABLE QList<User*> usersTyping() const; - QList<User*> users() const; + Q_INVOKABLE QList<User*> users() const; - void addMessage( Event* event ); - void addInitialState( State* state ); - void updateData( const SyncRoomData& data ); - void setJoinState( JoinState state ); + Q_INVOKABLE void addMessage( Event* event ); + Q_INVOKABLE void addInitialState( State* state ); + Q_INVOKABLE void updateData( const SyncRoomData& data ); + Q_INVOKABLE void setJoinState( JoinState state ); - void markMessageAsRead( Event* event ); - QString lastReadEvent(User* user); + Q_INVOKABLE void markMessageAsRead( Event* event ); + Q_INVOKABLE QString lastReadEvent(User* user); - int notificationCount() const; - void resetNotificationCount(); - int highlightCount() const; - void resetHighlightCount(); + Q_INVOKABLE int notificationCount() const; + Q_INVOKABLE void resetNotificationCount(); + Q_INVOKABLE int highlightCount() const; + Q_INVOKABLE void resetHighlightCount(); public slots: void getPreviousContent(); |