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;
    92         QSharedDataPointer<Private> mPriv;
    97     ContactManagerPtr manager() 
const;
   108     QString alias() 
const;
   110     QMap<QString, QString> vcardAddresses() 
const;
   111     QStringList uris() 
const;
   113     bool isAvatarTokenKnown() 
const;
   114     QString avatarToken() 
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;
   151     PendingOperation *requestPresenceSubscription(
const QString &message = QString());
   152     PendingOperation *removePresenceSubscription(
const QString &message = QString());
   153     PendingOperation *authorizePresencePublication(
const QString &message = QString());
   154     PendingOperation *removePresencePublication(
const QString &message = QString());
   159     bool isBlocked() 
const;
   169     QStringList groups() 
const;
   173     QStringList clientTypes() 
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);
   224     TP_QT_NO_EXPORT 
void receiveAddresses(
const QMap<QString, QString> &addresses,
   225             const QStringList &uris);
   226     TP_QT_NO_EXPORT 
void receiveClientTypes(
const QStringList &clientTypes);
   228     TP_QT_NO_EXPORT 
static PresenceState subscriptionStateToPresenceState(uint subscriptionState);
   230     TP_QT_NO_EXPORT 
void setPublishState(
SubscriptionState state, 
const QString &message = QString());
   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 ContactManager class is responsible for managing contacts.
Definition: contact-manager.h:50
PresenceState
Definition: contact.h:67
static const Feature FeatureAddresses
Definition: contact.h:64
static const Feature FeatureAvatarData
Definition: contact.h:58
static const Feature FeatureAlias
Definition: contact.h:57
QList< ContactInfoField > ContactInfoFieldList
Definition: build/TelepathyQt/_gen/types.h:1213
static const Feature FeatureCapabilities
Definition: contact.h:60
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
The PendingContactInfo class represents the parameters of and the reply to an asynchronous contact in...
Definition: pending-contact-info.h:39
static const Feature FeatureClientTypes
Definition: contact.h:65
The Contact::InfoFields class represents the information of a Telepathy contact.
Definition: contact.h:73
Helper container for safe management of handle lifetimes. Every handle in a ReferencedHandles contain...
Definition: referenced-handles.h:47
static const Feature FeatureSimplePresence
Definition: contact.h:63
The AvatarData class represents a Telepathy avatar.
Definition: avatar.h:40
The Connection class represents a Telepathy connection.
Definition: connection.h:61
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
SubscriptionState
Definition: build/TelepathyQt/_gen/constants.h:1789
The LocationInfo class represents the location of a Telepathy Contact.
Definition: location-info.h:40
The ContactCapabilities class represents the capabilities of a Contact.
Definition: contact-capabilities.h:38
static const Feature FeatureInfo
Definition: contact.h:61
bool isValid() const
Definition: contact.h:81
The Features class represents a list of Feature.
Definition: feature.h:61
The Contact class represents a Telepathy contact.
Definition: contact.h:51
The Presence class represents a Telepathy simple presence.
Definition: presence.h:36
Definition: build/TelepathyQt/_gen/types.h:2776
The Object class provides an object with property notification.
Definition: object.h:39
Definition: abstract-adaptor.cpp:31
static const Feature FeatureAvatarToken
Definition: contact.h:59
The ContactFactory class is responsible for constructing Contact objects according to application-def...
Definition: contact-factory.h:44
QList< RequestableChannelClass > RequestableChannelClassList
Definition: build/TelepathyQt/_gen/types.h:2664
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45