#include <TelepathyQt4/Prototype/Contact.h>
Use implicit sharing instead of expolicit sharig!
Contact::Contact | ( | const uint & | handle, | |
const QString & | name, | |||
ContactTypes | type, | |||
Telepathy::Client::ConnectionInterface * | connectionInterface, | |||
TpPrototype::ContactManager * | contactManager | |||
) | [protected] |
Contstuctor. This object is never created directly. Use ContactManager to create or request a contact.
Contact::~Contact | ( | ) | [protected] |
TpPrototype::AvatarManager::Avatar Contact::avatar | ( | ) | const |
Get Avatar for this contact. This function does not return valid information after the avatar was not requested by avatarForContactList()
Referenced by TpPrototype::AvatarManager::slotAvatarRetrieved(), and TpPrototype::AvatarManager::slotAvatarUpdated().
Telepathy::ContactCapabilityList Contact::capabilities | ( | ) | const |
Referenced by TpPrototype::CapabilitiesManager::slotCapabilitiesChanged().
ChatChannel * Contact::chatChannel | ( | ) |
Get chat channel for this contact. This function provides the chat channel object for this contact. It contains all information to do a text chat
Referenced by TpPrototype::ContactManager::openTextChannel().
TpPrototype::ContactManager * Contact::contactManager | ( | ) |
Get the contact manager where this object is stored.
Telepathy::Client::ConnectionInterface * Contact::interface | ( | ) | [protected] |
D-BUS interface. This protected access to the D-BUS interface can be used to extend this class with special features.
bool Contact::isPresenceStateAvailable | ( | ) |
Returns whether there is any presence information available. This functionreturns false if there is no valid presence information available.
bool Contact::isValid | ( | ) | const |
Validity. Do not access any method if this function returns false.
Referenced by TpPrototype::ContactManager::slotMembersChanged().
QString Contact::name | ( | ) | const |
Returns the name of the contact.
Referenced by TpPrototype::PresenceManager::slotPresencesChanged().
Telepathy::SimplePresence TpPrototype::Contact::presence | ( | ) | [inline] |
Returns the presence information of this contact. This presence information is automatically updated after the presence information was requested for the first time (PresenceManager::presencesForContacts()).
Note: Use isPresenceStateAvailable() to check whether the returned presence is valid!
QString Contact::presenceMessage | ( | ) |
QString Contact::presenceStatus | ( | ) |
uint Contact::presenceType | ( | ) |
void Contact::setAvatar | ( | const TpPrototype::AvatarManager::Avatar & | avatar | ) | [protected] |
Set the avatar. This avatar is set by the AvatarManager.
Referenced by TpPrototype::AvatarManager::slotAvatarRetrieved().
void Contact::setCapabilities | ( | const Telepathy::ContactCapabilityList & | capabilityList | ) | [protected] |
Referenced by TpPrototype::CapabilitiesManager::capabilitiesForContactList(), and TpPrototype::CapabilitiesManager::slotCapabilitiesChanged().
void Contact::setPresenceMessage | ( | QString | _presenceMessage | ) | [protected] |
Referenced by TpPrototype::PresenceManager::slotPresencesChanged().
void Contact::setPresenceStatus | ( | QString | _presenceStatus | ) | [protected] |
Referenced by TpPrototype::PresenceManager::slotPresencesChanged().
void Contact::setPresenceType | ( | uint | _presenceType | ) | [protected] |
Referenced by TpPrototype::PresenceManager::slotPresencesChanged().
void Contact::setType | ( | ContactTypes | type | ) |
Set type.
type | The new type |
Referenced by TpPrototype::ContactManager::slotDeniedMembersChanged().
TpPrototype::StreamedMediaChannel * Contact::streamedMediaChannel | ( | ) |
Get channel for media streaming. This function returns the media streaming object for this contact. It contains all information and functions for VoIP and Video Over IP communication.
Referenced by TpPrototype::ContactManager::openStreamedMediaChannel().
uint Contact::telepathyHandle | ( | ) | const |
Returns the telepathy internal handle.
Referenced by TpPrototype::ContactManager::authorizeContact(), TpPrototype::AvatarManager::avatarForContactList(), TpPrototype::ContactManager::blockContact(), TpPrototype::CapabilitiesManager::capabilitiesForContactList(), TpPrototype::ContactManager::removeContact(), TpPrototype::AvatarManager::slotAvatarRetrieved(), TpPrototype::AvatarManager::slotAvatarUpdated(), TpPrototype::CapabilitiesManager::slotCapabilitiesChanged(), TpPrototype::PresenceManager::slotPresencesChanged(), and TpPrototype::ContactManager::unblockContact().
uint Contact::telepathyHandleType | ( | ) | const |
Returns the telepathy internal handle type.
References Telepathy::HandleTypeContact.
Contact::ContactTypes Contact::type | ( | ) | const |
Returns the contact type.
Referenced by TpPrototype::PresenceManager::slotPresencesChanged().
friend class AvatarManager [friend] |
friend class CapabilitiesManager [friend] |
friend class ContactManager [friend] |
friend class PresenceManager [friend] |