23 #ifndef _TelepathyQt_contact_h_HEADER_GUARD_
24 #define _TelepathyQt_contact_h_HEADER_GUARD_
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
30 #include <TelepathyQt/Channel>
31 #include <TelepathyQt/Feature>
32 #include <TelepathyQt/Object>
33 #include <TelepathyQt/Types>
36 #include <QVariantMap>
42 class ContactCapabilities;
45 class PendingContactInfo;
46 class PendingOperation;
47 class PendingStringList;
49 class ReferencedHandles;
81 bool isValid()
const {
return mPriv.constData() != 0; }
91 friend struct Private;
97 ContactManagerPtr manager()
const;
113 bool isAvatarTokenKnown()
const;
116 void requestAvatarData();
135 bool isContactInfoKnown()
const;
143 bool isSubscriptionStateKnown()
const;
144 bool isSubscriptionRejected()
const;
146 bool isPublishStateKnown()
const;
147 bool isPublishCancelled()
const;
149 QString publishStateMessage()
const;
159 bool isBlocked()
const;
177 void aliasChanged(
const QString &alias);
179 void avatarTokenChanged(
const QString &avatarToken);
194 void blockStatusChanged(
bool blocked);
196 void addedToGroup(
const QString &group);
197 void removedFromGroup(
const QString &group);
199 void clientTypesChanged(
const QStringList &clientTypes);
209 const Features &requestedFeatures,
const QVariantMap &attributes);
211 virtual void augment(
const Features &requestedFeatures,
const QVariantMap &attributes);
214 static const Feature FeatureRosterGroups;
216 TP_QT_NO_EXPORT
void receiveAlias(
const QString &alias);
217 TP_QT_NO_EXPORT
void receiveAvatarToken(
const QString &avatarToken);
218 TP_QT_NO_EXPORT
void setAvatarToken(
const QString &token);
219 TP_QT_NO_EXPORT
void receiveAvatarData(
const AvatarData &);
220 TP_QT_NO_EXPORT
void receiveSimplePresence(
const SimplePresence &presence);
222 TP_QT_NO_EXPORT
void receiveLocation(
const QVariantMap &location);
226 TP_QT_NO_EXPORT
void receiveClientTypes(
const QStringList &clientTypes);
228 TP_QT_NO_EXPORT
static PresenceState subscriptionStateToPresenceState(uint subscriptionState);
231 TP_QT_NO_EXPORT
void setBlocked(
bool value);
233 TP_QT_NO_EXPORT
void setAddedToGroup(
const QString &group);
234 TP_QT_NO_EXPORT
void setRemovedFromGroup(
const QString &group);
240 friend struct Private;
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
static const Feature FeatureInfo
Definition: contact.h:61
Definition: abstract-adaptor.cpp:31
static const Feature FeatureAvatarToken
Definition: contact.h:59
The Contact::InfoFields class represents the information of a Telepathy contact.
Definition: contact.h:73
bool isValid() const
Definition: contact.h:81
The Connection class represents a Telepathy connection.
Definition: connection.h:62
The ContactManager class is responsible for managing contacts.
Definition: contact-manager.h:50
The Features class represents a list of Feature.
Definition: feature.h:61
The LocationInfo class represents the location of a Telepathy Contact.
Definition: location-info.h:40
static const Feature FeatureAvatarData
Definition: contact.h:58
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:2733
The Object class provides an object with property notification.
Definition: object.h:39
The ContactCapabilities class represents the capabilities of a Contact.
Definition: contact-capabilities.h:38
The Contact class represents a Telepathy contact.
Definition: contact.h:51
static const Feature FeatureSimplePresence
Definition: contact.h:63
static const Feature FeatureAlias
Definition: contact.h:57
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
SubscriptionState
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/constants.h:1789
The Presence class represents a Telepathy simple presence.
Definition: presence.h:36
static const Feature FeatureAddresses
Definition: contact.h:64
The AvatarData class represents a Telepathy avatar.
Definition: avatar.h:40
Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles contain...
Definition: referenced-handles.h:47
PresenceState
Definition: contact.h:67
static const Feature FeatureClientTypes
Definition: contact.h:65
static const Feature FeatureLocation
Definition: contact.h:62
The PendingStringList class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-string-list.h:37
The ContactFactory class is responsible for constructing Contact objects according to application-def...
Definition: contact-factory.h:44
static const Feature FeatureCapabilities
Definition: contact.h:60
The PendingContactInfo class represents the parameters of and the reply to an asynchronous contact in...
Definition: pending-contact-info.h:39