Home · Modules · All Classes · All Namespaces |
#include <TelepathyQt/Channel>
Public Slots | |
QDBusPendingReply | AddMembers (const Tp::UIntList &contacts, const QString &message, int timeout=-1) |
QDBusPendingReply< Tp::UIntList, Tp::UIntList, Tp::UIntList > | GetAllMembers (int timeout=-1) |
QDBusPendingReply< uint > | GetGroupFlags (int timeout=-1) |
QDBusPendingReply< Tp::UIntList > | GetHandleOwners (const Tp::UIntList &handles, int timeout=-1) |
QDBusPendingReply< Tp::UIntList > | GetLocalPendingMembers (int timeout=-1) |
QDBusPendingReply< Tp::LocalPendingInfoList > | GetLocalPendingMembersWithInfo (int timeout=-1) |
QDBusPendingReply< Tp::UIntList > | GetMembers (int timeout=-1) |
QDBusPendingReply< Tp::UIntList > | GetRemotePendingMembers (int timeout=-1) |
QDBusPendingReply< uint > | GetSelfHandle (int timeout=-1) |
QDBusPendingReply | RemoveMembers (const Tp::UIntList &contacts, const QString &message, int timeout=-1) |
QDBusPendingReply | RemoveMembersWithReason (const Tp::UIntList &contacts, const QString &message, uint reason, int timeout=-1) |
Signals | |
void | HandleOwnersChanged (const Tp::HandleOwnerMap &added, const Tp::UIntList &removed) |
void | HandleOwnersChangedDetailed (const Tp::HandleOwnerMap &added, const Tp::UIntList &removed, const Tp::HandleIdentifierMap &identifiers) |
void | SelfHandleChanged (uint selfHandle) |
void | SelfContactChanged (uint selfHandle, const QString &selfID) |
void | GroupFlagsChanged (uint added, uint removed) |
void | MembersChanged (const QString &message, const Tp::UIntList &added, const Tp::UIntList &removed, const Tp::UIntList &localPending, const Tp::UIntList &remotePending, uint actor, uint reason) |
void | MembersChangedDetailed (const Tp::UIntList &added, const Tp::UIntList &removed, const Tp::UIntList &localPending, const Tp::UIntList &remotePending, const QVariantMap &details) |
![]() | |
void | propertiesChanged (const QVariantMap &changedProperties, const QStringList &invalidatedProperties) |
Static Public Member Functions | |
static QLatin1String | staticInterfaceName () |
Protected Member Functions | |
virtual void | invalidate (Tp::DBusProxy *, const QString &, const QString &) |
![]() | |
AbstractInterface (DBusProxy *proxy, const QLatin1String &interface) | |
AbstractInterface (const QString &busName, const QString &path, const QLatin1String &interface, const QDBusConnection &connection, QObject *parent) | |
PendingVariant * | internalRequestProperty (const QString &name) const |
PendingOperation * | internalSetProperty (const QString &name, const QVariant &newValue) |
PendingVariantMap * | internalRequestAllProperties () const |
Additional Inherited Members | |
![]() |
Proxy class providing a 1:1 mapping of the D-Bus interface "org.freedesktop.Telepathy.Channel.Interface.Group".
Tp::Client::ChannelInterfaceGroupInterface::ChannelInterfaceGroupInterface | ( | const QString & | busName, |
const QString & | objectPath, | ||
QObject * | parent = 0 |
||
) |
Creates a ChannelInterfaceGroupInterface associated with the given object on the session bus.
busName | Name of the service the object is on. |
objectPath | Path to the object on the service. |
parent | Passed to the parent class constructor. |
Tp::Client::ChannelInterfaceGroupInterface::ChannelInterfaceGroupInterface | ( | const QDBusConnection & | connection, |
const QString & | busName, | ||
const QString & | objectPath, | ||
QObject * | parent = 0 |
||
) |
Creates a ChannelInterfaceGroupInterface associated with the given object on the given bus.
connection | The bus via which the object can be reached. |
busName | Name of the service the object is on. |
objectPath | Path to the object on the service. |
parent | Passed to the parent class constructor. |
Tp::Client::ChannelInterfaceGroupInterface::ChannelInterfaceGroupInterface | ( | Tp::DBusProxy * | proxy | ) |
Creates a ChannelInterfaceGroupInterface associated with the same object as the given proxy.
proxy | The proxy to use. It will also be the QObject::parent() for this object. |
|
explicit |
Creates a ChannelInterfaceGroupInterface associated with the same object as the given proxy. Additionally, the created proxy will have the same parent as the given proxy.
mainInterface | The proxy to use. |
Tp::Client::ChannelInterfaceGroupInterface::ChannelInterfaceGroupInterface | ( | const Tp::Client::ChannelInterface & | mainInterface, |
QObject * | parent | ||
) |
Creates a ChannelInterfaceGroupInterface associated with the same object as the given proxy. However, a different parent object can be specified.
mainInterface | The proxy to use. |
parent | Passed to the parent class constructor. |
|
inlinestatic |
Returns the name of the interface "org.freedesktop.Telepathy.Channel.Interface.Group", which this class represents.
|
inline |
Asynchronous getter for the remote object property GroupFlags
of type uint
.
An integer representing the bitwise-OR of flags on this channel. The user interface can use this to present information about which operations are currently valid. Change notification is via the GroupFlagsChanged signal.
|
inline |
Asynchronous getter for the remote object property HandleOwners
of type Tp::HandleOwnerMap
.
A map from channel-specific handles to their owners, including at least all of the channel-specific handles in this channel's members, local-pending or remote-pending sets as keys. Any handle not in the keys of this mapping is not channel-specific in this channel. Handles which are channel-specific, but for which the owner is unknown, MUST appear in this mapping with 0 as owner. Change notification is via the HandleOwnersChanged signal.
|
inline |
Asynchronous getter for the remote object property LocalPendingMembers
of type Tp::LocalPendingInfoList
.
An array of structs containing handles representing contacts requesting channel membership and awaiting local approval with AddMembers.
|
inline |
Asynchronous getter for the remote object property Members
of type Tp::UIntList
.
The members of this channel.
|
inline |
Asynchronous getter for the remote object property RemotePendingMembers
of type Tp::UIntList
.
An array of handles representing contacts who have been invited to the channel and are awaiting remote approval.
|
inline |
Asynchronous getter for the remote object property SelfHandle
of type uint
.
The handle for the user on this channel (which can also be a local or remote pending member), or 0 if the user is not a member at all (which is likely to be the case, for instance, on ContactList channels). Note that this is different from the result of Connection.GetSelfHandle on some protocols, so the value of this handle should always be used with the methods of this interface.
|
inline |
Asynchronous getter for the remote object property MemberIdentifiers
of type Tp::HandleIdentifierMap
.
The string identifiers for handles mentioned in this channel, to give clients the minimal information necessary to create contacts without waiting for round-trips. Connection managers MUST include at least the identifiers for SelfHandle, Members, LocalPendingMembers (and their actors if any), RemotePendingMembers and HandleOwners.
|
inline |
Request all of the DBus properties on the interface.
|
inlineslot |
Begins a call to the D-Bus method AddMembers
on the remote object.
Invite all the given contacts into the channel, or accept requests for channel membership for contacts on the pending local list.
A message may be provided along with the request, which will be sent to the server if supported. See the CHANNEL_GROUP_FLAG_MESSAGE_ADD and CHANNEL_GROUP_FLAG_MESSAGE_ACCEPT GroupFlags to see in which cases this message should be provided.
Attempting to add contacts who are already members is allowed; connection managers must silently accept this, without error.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
contacts | An array of contact handles to invite to the channel |
message | A string message, which can be blank if desired |
timeout | The timeout in milliseconds. |
|
inlineslot |
Begins a call to the D-Bus method GetAllMembers
on the remote object.
Returns arrays of all current, local and remote pending channel members.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
timeout | The timeout in milliseconds. |
array of handles of current members
array of handles of local pending members
array of handles of remote pending members
|
inlineslot |
Begins a call to the D-Bus method GetGroupFlags
on the remote object.
Returns the value of the GroupFlags property.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
timeout | The timeout in milliseconds. |
The value of the GroupFlags property
|
inlineslot |
Begins a call to the D-Bus method GetHandleOwners
on the remote object.
If the CHANNEL_GROUP_FLAG_CHANNEL_SPECIFIC_HANDLES flag is set on the channel, then the handles of the group members are specific to this channel, and are not meaningful in a connection-wide context such as contact lists. This method allows you to find the owner of the handle if it can be discovered in this channel, or 0 if the owner is not available.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
handles | A list of integer handles representing members of the channel |
timeout | The timeout in milliseconds. |
An array of integer handles representing the owner handles of the given room members, in the same order, or 0 if the owner is not available
|
inlineslot |
Begins a call to the D-Bus method GetLocalPendingMembers
on the remote object.
Returns the To_Be_Added handle (only) for each structure in the LocalPendingMembers property.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
timeout | The timeout in milliseconds. |
|
inlineslot |
Begins a call to the D-Bus method GetLocalPendingMembersWithInfo
on the remote object.
Returns the LocalPendingMembers property.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
timeout | The timeout in milliseconds. |
An array of structs containing: A handle representing the contact requesting channel membership A handle representing the contact making the request, or 0 if unknown The reason for the request: one of the values of Channel_Group_Change_Reason A string message containing the reason for the request if any (or blank if none)
|
inlineslot |
Begins a call to the D-Bus method GetMembers
on the remote object.
Returns the Members property.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
timeout | The timeout in milliseconds. |
|
inlineslot |
Begins a call to the D-Bus method GetRemotePendingMembers
on the remote object.
Returns an array of handles representing contacts who have been invited to the channel and are awaiting remote approval.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
timeout | The timeout in milliseconds. |
|
inlineslot |
Begins a call to the D-Bus method GetSelfHandle
on the remote object.
Returns the value of the SelfHandle property.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
timeout | The timeout in milliseconds. |
|
inlineslot |
Begins a call to the D-Bus method RemoveMembers
on the remote object.
Requests the removal of contacts from a channel, reject their request for channel membership on the pending local list, or rescind their invitation on the pending remote list.
If the SelfHandle is in a Group, it can be removed via this method, in order to leave the group gracefully. This is the recommended way to leave a chatroom, close or reject a ChannelTypeStreamedMediaInterface call, and so on.
Accordingly, connection managers SHOULD support doing this, regardless of the value of GroupFlags . If doing so fails with PermissionDenied, this is considered to a bug in the connection manager, but clients MUST recover by falling back to closing the channel with the ChannelInterface::Close() method.
Removing any contact from the local pending list is always allowed. Removing contacts other than the SelfHandle from the channel's members is allowed if and only if Channel_Group_Flag_Can_Remove is in the GroupFlags , while removing contacts other than the SelfHandle from the remote pending list is allowed if and only if Channel_Group_Flag_Can_Rescind is in the GroupFlags .
A message may be provided along with the request, which will be sent to the server if supported. See the Channel_Group_Flag_Message_Remove, Channel_Group_Flag_Message_Depart, Channel_Group_Flag_Message_Reject and Channel_Group_Flag_Message_Rescind GroupFlags to see in which cases this message should be provided.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
contacts | An array of contact handles to remove from the channel |
message | A string message, which can be blank if desired |
timeout | The timeout in milliseconds. |
|
inlineslot |
Begins a call to the D-Bus method RemoveMembersWithReason
on the remote object.
As RemoveMembers, but a reason code may be provided where appropriate. The reason code may be ignored if the underlying protocol is unable to represent the given reason.
Note that timeout is ignored as of now. It will be used once http://bugreports.qt.nokia.com/browse/QTBUG-11775 is fixed.
contacts | An array of contact handles to remove from the channel |
message | A string message, which can be blank if desired |
reason | A reason for the change |
timeout | The timeout in milliseconds. |
|
signal |
Represents the signal HandleOwnersChanged
on the remote object.
Emitted whenever the HandleOwners property changes.
added | A map from channel-specific handles to their owners, in which the keys include all the handles that were added to the keys of the HandleOwners property, and all the handles in that property whose owner has changed |
removed | The channel-specific handles that were removed from the keys of the HandleOwners property, as a result of the contact leaving this group in a previous MembersChanged signal |
|
signal |
Represents the signal HandleOwnersChangedDetailed
on the remote object.
Emitted whenever the HandleOwners property changes. Clients can assume this signal is emitted by the Connection Manager if the MemberIdentifiers property exists
added | A map from channel-specific handles to their owners, in which the keys include all the handles that were added to the keys of the HandleOwners property, and all the handles in that property whose owner has changed |
removed | The channel-specific handles that were removed from the keys of the HandleOwners property, as a result of the contact leaving this group in a previous MembersChanged signal |
identifiers | The string identifiers for handles mentioned in this signal, to give clients the minimal information necessary to create contacts without waiting for round-trips. Connection managers MUST include at least the identifiers for all handles in the Added map, and MAY include those from Removed array. |
|
signal |
Represents the signal SelfHandleChanged
on the remote object.
Emitted whenever the SelfHandle property changes.
selfHandle | The new value of the SelfHandle property. |
|
signal |
Represents the signal SelfContactChanged
on the remote object.
Emitted whenever the SelfHandle property changes. Clients can assume this signal is emitted by the Connection Manager if the MemberIdentifiers property exists.
selfHandle | The new value of the SelfHandle property. |
selfID | The new value of the SelfHandle property's identifier. |
|
signal |
Represents the signal GroupFlagsChanged
on the remote object.
Emitted when the flags as returned by GetGroupFlags are changed. The user interface should be updated as appropriate.
added | A bitwise OR of the flags which have been set |
removed | A bitwise OR of the flags which have been cleared |
|
signal |
Represents the signal MembersChanged
on the remote object.
Emitted when contacts join any of the three lists (members, local pending or remote pending) or when they leave any of the three lists. There may also be a message from the server regarding this change, which may be displayed to the user if desired.
All channel-specific handles that are mentioned in this signal MUST be represented in the value of the HandleOwners property. In practice, this will mean that HandleOwnersChanged() is emitted before emitting a MembersChanged signal in which channel-specific handles are added, but that it is emitted after emitting a MembersChanged signal in which channel-specific handles are removed.
See ChannelTypeStreamedMediaInterface for an overview of how group state changes are used to indicate the progress of a call.
message | A string message from the server, or blank if not |
added | A list of members added to the channel |
removed | A list of members removed from the channel |
localPending | A list of members who are pending local approval |
remotePending | A list of members who are pending remote approval |
actor | The contact handle of the person who made the change, or 0 if not known |
reason | A reason for the change |
|
signal |
Represents the signal MembersChangedDetailed
on the remote object.
Emitted when contacts join any of the three lists (members, local pending or remote pending) or when they leave any of the three lists. This signal provides a superset of the information provided by MembersChanged() ; if the channel's GroupFlags contains Members_Changed_Detailed, then clients may listen exclusively to this signal in preference to that signal.
All channel-specific handles that are mentioned in this signal MUST be represented in the value of the HandleOwners property. In practice, this will mean that HandleOwnersChanged() is emitted before emitting a MembersChangedDetailed signal in which channel-specific handles are added, but that it is emitted after emitting a MembersChangedDetailed signal in which channel-specific handles are removed.
See ChannelTypeStreamedMediaInterface for an overview of how group state changes are used to indicate the progress of a call.
added | A list of members added to the channel |
removed | A list of members removed from the channel |
localPending | A list of members who are pending local approval |
remotePending | A list of members who are pending remote approval |
details | \htmlonly <p>Information about the change, which may include the following well-known keys:</p> <dl> <dt>actor (u — <tp:type>Contact_Handle</tp:type>)</dt> <dd>The contact handle of the person who made the change; 0 or omitted if unknown or not applicable.</dd> <dt>change-reason (u — <tp:type>Channel_Group_Change_Reason</tp:type>)</dt> <dd>A reason for the change.</dd> <dt>contact-ids (a{us} — <tp:type>Handle_Identifier_Map</tp:type>)</dt> <dd> <p>The string identifiers for handles mentioned in this signal, to give clients the minimal information necessary to react to the event without waiting for round-trips. Connection managers SHOULD include the identifiers for members added to the group and for the actor (if any); they MAY omit the identifiers for handles which have been removed from the group.</p> <div class="rationale"> <p>On IRC, an event such as a netsplit could cause the vast majority of a channel to leave. Given that clients should already know the identifiers of a channel's members, including potentially hundreds of strings in the netsplit signal is unnecessary.</p> </div> <p>Clients MUST NOT assume that the presence or absence of a handle in this mapping is meaningful. This mapping is merely an optimization for round-trip reduction, and connection managers MAY add additional handles, omit some handles, or omit the mapping completely.</p> </dd> <dt>message (s)</dt> <dd>A string message from the server regarding the change</dd> <dt>error (s — <tp:type>DBus_Error_Name</tp:type>)</dt> <dd>A (possibly implementation-specific) DBus error describing the change, providing more specific information than the <tp:type>Channel_Group_Change_Reason</tp:type> enum allows. This MUST only be present if it is strictly more informative than 'change-reason'; if present, 'change-reason' MUST be set to the closest available reason. <div class="rationale"> A SIP connection manager might want to signal "402 Payment required" as something more specific than Error or Permission_Denied so that a SIP-aware UI could handle it specially; including a namespaced error permits this to be done without <tp:type>Channel_Group_Change_Reason</tp:type> being extended to encompass every error any CM ever wants to report. </div> </dd> <dt>debug-message (s)</dt> <dd>Debugging information on the change. SHOULD NOT be shown to users in normal circumstances.</dd> </dl> \endhtmlonly |
|
protectedvirtual |
Reimplemented from Tp::AbstractInterface.
TelepathyQt 0.9.8 |
Generated by
![]() |