29 #include <tqptrdict.h>
30 #include <tqstringlist.h>
33 #define IM_SERVICE_TYPE "DCOP/InstantMessenger"
34 #define IM_CLIENT_PREFERENCES_FILE "default_components"
35 #define IM_CLIENT_PREFERENCES_SECTION "InstantMessenger"
36 #define IM_CLIENT_PREFERENCES_ENTRY "imClient"
38 #include "tdeimproxyiface.h"
43 class ContactPresenceListCurrent;
46 typedef TQMap<TQCString, int> AppPresence;
47 typedef TQDict<AppPresence> PresenceMap;
49 typedef TQMap<TQString, ContactPresenceListCurrent> PresenceStringMap;
107 class TDEIMPROXY_EXPORT
KIMProxy :
public TQObject,
virtual public KIMProxyIface
112 template<
class>
friend class KStaticDeleter;
166 TQStringList allContacts();
182 TQStringList reachableContacts();
202 TQStringList onlineContacts();
224 TQStringList fileTransferContacts();
244 bool isPresent(
const TQString& uid );
266 TQString displayName(
const TQString& uid );
307 int presenceNumeric(
const TQString& uid );
343 TQString presenceString(
const TQString& uid );
372 TQPixmap presenceIcon(
const TQString& uid );
389 bool canReceiveFiles(
const TQString & uid );
414 bool canRespond(
const TQString & uid );
432 TQString locate(
const TQString & contactId,
const TQString & protocol );
454 TQString context(
const TQString & uid );
467 void chatWithContact(
const TQString& uid );
484 void messageContact(
const TQString& uid,
const TQString& message );
503 void sendFile(
const TQString &uid,
const KURL &sourceURL,
504 const TQString &altFileName = TQString::null, uint fileSize = 0);
519 bool addContact(
const TQString &contactId,
const TQString &protocol );
533 bool imAppsAvailable();
540 bool startPreferredApp();
545 void contactPresenceChanged( TQString uid, TQCString appId,
int presence );
560 void registeredToDCOP(
const TQCString& appId );
579 void unregisteredFromDCOP(
const TQCString& appId );
605 void pollApp(
const TQCString & appId );
609 void pollAll(
const TQString &uid );
614 bool updatePresence(
const TQString &uid,
const TQCString &appId,
int presence );
619 TQString preferredApp();
624 KIMIface_stub * stubForUid(
const TQString &uid );
630 KIMIface_stub * stubForProtocol(
const TQString &protocol );
635 TQDict<KIMIface_stub> m_im_client_stubs;
638 PresenceMap m_presence_map;
642 TQPtrDict<int> m_client_presence_strings;
644 bool m_apps_available;
Provides access to instant messenger programs which implement KDE's instant messanger interface KIMIf...
void sigContactPresenceChanged(const TQString &uid)
Indicates that the specified IM-contact's presence changed.
void sigPresenceInfoExpired()
Indicates that presence information obtained earlier on might not be valid any longer.
bool updatePresence(const TQString &uid, const TQCString &appId, int presence)
Update our records with the given data.