Interfaces
kimproxy.h
Go to the documentation of this file.
44typedef QMap<QString, int> AppPresence; // appId->presence; contains all applications' ideas of a user's presence
45typedef QHash<QString, AppPresence*> PresenceMap; // uid->AppPresence; contains a AppPresences for all users
203 void sendFile(const QString &uid, const QString &sourceURL, const QString &altFileName = QString(), uint fileSize = 0);
QString context(const QString &uid)
Get the supplied addressee's current context (home, work, or any).
Definition kimproxy.cpp:465
QString locate(const QString &contactId, const QString &protocol)
Get the KABC uid corresponding to the supplied IM address Protocols should be.
Definition kimproxy.cpp:530
QStringList onlineContacts()
Obtain a list of KDE address book entries who are currently online.
Definition kimproxy.cpp:400
QStringList fileTransferContacts()
Obtain a list of KDE address book entries who may receive file transfers.
Definition kimproxy.cpp:412
void sigPresenceInfoExpired()
Indicates that the sources of presence information have changed so any previously supplied presence i...
bool canRespond(const QString &uid)
Some media are unidirectional (eg, sending SMS via a web interface).
Definition kimproxy.cpp:455
void contactPresenceChanged(const QString &uid, const QString &appId, int presence)
Just exists to let the idl compiler make the D-Bus signal for this.
Definition kimproxy.cpp:312
bool initialize()
Get the proxy ready to connect Discover any running preferred IM clients and set up stubs for it.
Definition kimproxy.cpp:215
bool isPresent(const QString &uid)
Confirm if a given KABC uid is known to KIMProxy.
Definition kimproxy.cpp:428
void messageContact(const QString &uid, const QString &message)
Send a single message to the specified addressee Any response will be handled by the IM client as a n...
Definition kimproxy.cpp:488
int presenceNumeric(const QString &uid)
Obtain the IM presence as a number (see KIMIface) for the specified addressee.
Definition kimproxy.cpp:330
QString displayName(const QString &uid)
Obtain the IM app's idea of the contact's display name Useful if KABC lookups may be too slow.
Definition kimproxy.cpp:433
bool imAppsAvailable()
Are there any compatible instant messaging apps installed?
Definition kimproxy.cpp:540
bool addContact(const QString &contactId, const QString &protocol)
Add a contact to the contact list.
Definition kimproxy.cpp:520
OrgKdeKIMInterface * stubForUid(const QString &uid)
Get the app stub best able to reach this uid.
Definition kimproxy.cpp:610
QStringList allContacts()
Obtain a list of IM-contactable entries in the KDE address book.
Definition kimproxy.cpp:378
void chatWithContact(const QString &uid)
Start a chat session with the specified addressee.
Definition kimproxy.cpp:475
void pollAll(const QString &uid)
Bootstrap our presence data by polling all known apps.
Definition kimproxy.cpp:566
bool canReceiveFiles(const QString &uid)
Indicate if a given uid can receive files.
Definition kimproxy.cpp:445
QString presenceString(const QString &uid)
Obtain the IM presence as a i18ned string for the specified addressee.
Definition kimproxy.cpp:342
QPixmap presenceIcon(const QString &uid)
Obtain the icon representing IM presence for the specified addressee.
Definition kimproxy.cpp:357
void sendFile(const QString &uid, const QString &sourceURL, const QString &altFileName=QString(), uint fileSize=0)
Send the file to the contact.
Definition kimproxy.cpp:501
bool updatePresence(const QString &uid, const QString &appId, int presence)
Update our records with the given data.
void sigContactPresenceChanged(const QString &uid)
Indicates that the specified UID's presence changed.
void pollApp(const QString &appId)
Bootstrap our presence data for a newly registered app.
Definition kimproxy.cpp:585
OrgKdeKIMInterface * stubForProtocol(const QString &protocol)
Get the app stub for this protocol.
Definition kimproxy.cpp:618
QStringList reachableContacts()
Obtain a list of KDE address book entries who are currently reachable.
Definition kimproxy.cpp:384
QMap< QString, int > AppPresence
FIXME: remove for KDE4, binary compatibility again.
Definition kimproxy.h:44
QMap< QString, ContactPresenceListCurrent > PresenceStringMap
FIXME: remove presenceMap and call this presenceMap in KDE4.
Definition kimproxy.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.