tdeimproxy.h
46typedef TQMap<TQCString, int> AppPresence; // appId->presence; contains all applications' ideas of a user's presence
47typedef TQDict<AppPresence> PresenceMap; // uid->AppPresence; contains a AppPresences for all users
KIMIface_stub * stubForProtocol(const TQString &protocol)
Get the app stub for this protocol.
Definition tdeimproxy.cpp:624
void sigContactPresenceChanged(const TQString &uid)
Indicates that the specified IM-contact's presence changed.
TQPixmap presenceIcon(const TQString &uid)
Obtain the icon representing the IM presence for the specified contact.
Definition tdeimproxy.cpp:373
TQStringList onlineContacts()
Obtain a list of IM-contacts that are currently online.
Definition tdeimproxy.cpp:415
bool canReceiveFiles(const TQString &uid)
Indicate if a given contact can receive files.
Definition tdeimproxy.cpp:459
void unregisteredFromDCOP(const TQCString &appId)
Updates the proxy's data after an application unregistered with DCOP.
Definition tdeimproxy.cpp:301
void sigPresenceInfoExpired()
Indicates that presence information obtained earlier on might not be valid any longer.
void chatWithContact(const TQString &uid)
Start a chat session with the specified contact.
Definition tdeimproxy.cpp:489
TQStringList allContacts()
Obtain a list of IM-contacts known to IM-applications.
Definition tdeimproxy.cpp:394
int presenceNumeric(const TQString &uid)
Obtain the IM presence as a number for the specified contact.
Definition tdeimproxy.cpp:346
bool isPresent(const TQString &uid)
Confirm if a given contact is known to the proxy.
Definition tdeimproxy.cpp:442
void messageContact(const TQString &uid, const TQString &message)
Send a single message to the specified contact.
Definition tdeimproxy.cpp:502
TQStringList fileTransferContacts()
Obtain a list of IM-contacts who may receive file transfers.
Definition tdeimproxy.cpp:427
TQString displayName(const TQString &uid)
Obtain the proxy's idea of the contact's display name.
Definition tdeimproxy.cpp:447
bool imAppsAvailable()
Checks if there are any compatible instant messaging applications available.
Definition tdeimproxy.cpp:553
bool canRespond(const TQString &uid)
Indicate if a given contact will be able to respond.
Definition tdeimproxy.cpp:469
bool updatePresence(const TQString &uid, const TQCString &appId, int presence)
Update our records with the given data.
void registeredToDCOP(const TQCString &appId)
Updates the proxy's data after a new application registered with DCOP.
Definition tdeimproxy.cpp:266
void contactPresenceChanged(TQString uid, TQCString appId, int presence)
Just exists to let the IDL compiler make the DCOP signal for this.
Definition tdeimproxy.cpp:328
TQStringList reachableContacts()
Obtain a list of IM-contacts that are currently reachable.
Definition tdeimproxy.cpp:400
void pollAll(const TQString &uid)
Bootstrap our presence data by polling all known apps.
Definition tdeimproxy.cpp:576
TQString context(const TQString &uid)
Obtain the given contact's current context (home, work, or any).
Definition tdeimproxy.cpp:479
KIMIface_stub * stubForUid(const TQString &uid)
Get the app stub best able to reach this uid.
Definition tdeimproxy.cpp:616
void sendFile(const TQString &uid, const KURL &sourceURL, const TQString &altFileName=TQString::null, uint fileSize=0)
Send a file to the contact.
Definition tdeimproxy.cpp:515
bool addContact(const TQString &contactId, const TQString &protocol)
Add a new contact given its protocol specific identifier.
Definition tdeimproxy.cpp:533
static KIMProxy * instance(DCOPClient *client)
Obtain an instance of KIMProxy.
Definition tdeimproxy.cpp:166
void pollApp(const TQCString &appId)
Bootstrap our presence data for a newly registered app.
Definition tdeimproxy.cpp:594
TQString preferredApp()
Get the name of the user's IM application of choice.
Definition tdeimproxy.cpp:644
TQString presenceString(const TQString &uid)
Obtain the IM presence as a i18ned string for the specified contact.
Definition tdeimproxy.cpp:358
TQString locate(const char *type, const TQString &filename, const TDEInstance *instance=TDEGlobal::instance())
Trinity API Reference