From aa8b077499653b6ebf2d78136c75c801e6f99c29 Mon Sep 17 00:00:00 2001 From: David A Roberts Date: Sat, 23 Apr 2016 12:54:21 +1000 Subject: Room: Q_INVOKABLE --- room.h | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/room.h b/room.h index e5e357ee..c4993f7a 100644 --- a/room.h +++ b/room.h @@ -40,30 +40,30 @@ namespace QMatrixClient Room(Connection* connection, QString id); virtual ~Room(); - QString id() const; - QList messageEvents() const; - QString name() const; - QStringList aliases() const; - QString canonicalAlias() const; - QString displayName() const; - QString topic() const; - JoinState joinState() const; - QList usersTyping() const; + Q_INVOKABLE QString id() const; + Q_INVOKABLE QList 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 usersTyping() const; - QList users() const; + Q_INVOKABLE QList 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(); -- cgit v1.2.3