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.Account
for the room listingserver (
str
) – the DNS name of the server whose rooms should listedcallback (
Gio.AsyncReadyCallback
orNone
) – aGio.AsyncReadyCallback
to call when the initialization is finisheduser_data (
object
orNone
) – data to pass to the callback function
New in version 0.19.0.
- classmethod new_finish(result)¶
- Parameters:
result (
Gio.AsyncResult
) – theGio.AsyncResult
from the callback- Raises:
- Returns:
a new
TelepathyGLib.RoomList
object, orNone
in case of error.- Return type:
New in version 0.19.0.
- get_account()¶
- Returns:
the value of
TelepathyGLib.RoomList
:account
property- Return type:
Return the
TelepathyGLib.RoomList
:account
propertyNew in version 0.19.0.
- get_server()¶
- Returns:
the value of
TelepathyGLib.RoomList
:server
property- Return type:
Return the
TelepathyGLib.RoomList
:server
propertyNew in version 0.19.0.
- is_listing()¶
- Returns:
the value of
TelepathyGLib.RoomList
:listing
property- Return type:
Return the
TelepathyGLib.RoomList
:listing
propertyNew in version 0.19.0.
- start()¶
Start listing rooms using self. Use the
TelepathyGLib.RoomList
::got-rooms
signal to get the rooms found. Errors will be reported using theTelepathyGLib.RoomList
::failed
signal.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.Error
indicating 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.Account
to use for the room listing.New in version 0.19.0.