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.New 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
New 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:
New in version 0.19.0.
- get_account()¶
- Returns:
the value of
TelepathyGLib.RoomList:accountproperty- Return type:
Return the
TelepathyGLib.RoomList:accountpropertyNew in version 0.19.0.
- get_server()¶
- Returns:
the value of
TelepathyGLib.RoomList:serverproperty- Return type:
Return the
TelepathyGLib.RoomList:serverpropertyNew in version 0.19.0.
- is_listing()¶
- Returns:
the value of
TelepathyGLib.RoomList:listingproperty- Return type:
Return the
TelepathyGLib.RoomList:listingpropertyNew 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.New 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.
New 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.
New 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.New in version 0.19.0.