CM.Room
Description: Reference for CM.Room

### Class

# CMRoom

#### Description [src]

    final class CM.Room : GObject.Object
    {
      /* No available fields */
    }

A Matrix room. This class provides access to properties of the room including a list of events maintained as a `GListModel`.

#### Ancestors

- GObject

#### Instance methods

###### cm_room_accept_invite_async

No description available.

###### cm_room_accept_invite_finish

No description available.

###### cm_room_enable_encryption_async

Enable encryption for `self`. You can’t disable encryption once enabled. Also, it’s a noop if `self` has already enabled encryption. The `callback` shall run in any case.

###### cm_room_enable_encryption_finish

Finish the call to cm_room_enable_encryption_async().

###### cm_room_get_avatar_async

No description available.

###### cm_room_get_avatar_finish

Finishes an asynchronous operation started with `cm_room_get_avatar_async()`.

###### cm_room_get_event_async

No description available.

###### cm_room_get_event_finish

Finishes an asynchronous operation started with `cm_room_get_event_async()`.

###### cm_room_get_event_sync

Get a single event.

###### cm_room_get_events_list

Get a list model of currently known room events.

###### cm_room_get_id

Get the matrix room id.

###### cm_room_get_joined_members

Get the currently joined members of a room.

###### cm_room_get_name

Get the matrix room name. Can be `NULL` if the room name is not set, or the name is not yet loaded.

###### cm_room_get_past_name

Get the matrix room name set before the current one. The past name is set only if the room is a direct room and current room name is empty (in the case where `cm_room_get_name()` shall return “Empty room”).

###### cm_room_get_topic

Get matrix room’s topic.

since: 0.0.2

###### cm_room_get_unread_notification_counts

No description available.

###### cm_room_is_encrypted

Get if the matrix room `self` is encrypted or not.

###### cm_room_leave_async

No description available.

###### cm_room_leave_finish

No description available.

###### cm_room_load_past_events_async

Get the next batch of past events from the database. If the room wasn’t ever synced from the server, do that first. A batch is currently 30 events.

###### cm_room_load_past_events_finish

Finishes an asynchronous operation started with `cm_room_load_past_events_async()`.

###### cm_room_load_past_events_sync

Load past events.

since: 0.0.2

###### cm_room_reject_invite_async

No description available.

###### cm_room_reject_invite_finish

No description available.

###### cm_room_self_has_power_for_event

No description available.

###### cm_room_send_file_async

Send a file.

###### cm_room_send_file_finish

No description available.

###### cm_room_send_text_async

Send `text` as a text message to the room `self`. If the room is encrypted, the text shall be encrypted and sent.

###### cm_room_send_text_finish

Finish the call to cm_room_send_text_async().

###### cm_room_set_read_marker_async

No description available.

###### cm_room_set_read_marker_finish

No description available.

###### cm_room_set_typing_notice_async

Set/Unset if the self user is typing or not. The typing set is timeout after 4 seconds.

###### cm_room_set_typing_notice_finish

Finish the call to cm_room_set_typing_notice_async().

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### CM.Room:encrypted

No description available.

###### CM.Room:name

No description available.

###### CM.Room:unread-count

The number of unread notifications in this room.

since: 0.0.2

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct CMRoomClass {
      GObjectClass parent_class;

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  No description available.