TelepathyGLib.RoomList¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r |
|
||
r/w/co |
The server associated with the channel |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fired when something goes wrong while listing the channels; see error for details. |
|
Fired each time a room is found during the listing process. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class TelepathyGLib.RoomList(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Data structure representing a
TelepathyGLib.RoomList.Added in version 0.19.0.
- classmethod new_async(account, server, callback, *user_data)¶
- Parameters:
account (
TelepathyGLib.Account) – aTelepathyGLib.Accountfor the room listingserver (
str) – the DNS name of the server whose rooms should listedcallback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the initialization is finisheduser_data (
objectorNone) – data to pass to the callback function
Added in version 0.19.0.
- classmethod new_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – theGio.AsyncResultfrom the callback- Raises:
- Returns:
a new
TelepathyGLib.RoomListobject, orNonein case of error.- Return type:
Added in version 0.19.0.
- get_account()¶
- Returns:
the value of
TelepathyGLib.RoomList:accountproperty- Return type:
Return the
TelepathyGLib.RoomList:accountpropertyAdded in version 0.19.0.
- get_server()¶
- Returns:
the value of
TelepathyGLib.RoomList:serverproperty- Return type:
Return the
TelepathyGLib.RoomList:serverpropertyAdded in version 0.19.0.
- is_listing()¶
- Returns:
the value of
TelepathyGLib.RoomList:listingproperty- Return type:
Return the
TelepathyGLib.RoomList:listingpropertyAdded in version 0.19.0.
- start()¶
Start listing rooms using self. Use the
TelepathyGLib.RoomList::got-roomssignal to get the rooms found. Errors will be reported using theTelepathyGLib.RoomList::failedsignal.Added in version 0.19.0.
Signal Details¶
- TelepathyGLib.RoomList.signals.failed(room_list, error)¶
- Signal Name:
failed- Flags:
- Parameters:
room_list (
TelepathyGLib.RoomList) – The object which received the signalerror (
GLib.Error) – aGLib.Errorindicating the reason of the error
Fired when something goes wrong while listing the channels; see error for details.
Added in version 0.19.0.
- TelepathyGLib.RoomList.signals.got_room(room_list, room)¶
- Signal Name:
got-room- Flags:
- Parameters:
room_list (
TelepathyGLib.RoomList) – The object which received the signalroom (
TelepathyGLib.RoomInfo) – aTelepathyGLib.RoomInfo
Fired each time a room is found during the listing process. User should take his own reference on room if he plans to continue using it once the signal callback has returned.
Added in version 0.19.0.
Property Details¶
- TelepathyGLib.RoomList.props.account¶
- Name:
account- Type:
- Default Value:
- Flags:
The
TelepathyGLib.Accountto use for the room listing.Added in version 0.19.0.