tdeimproxy.cpp
178 KIMProxy::KIMProxy( DCOPClient* dc ) : DCOPObject( "KIMProxyIface" ), TQObject(), d( new Private )
184 connect( d->dc, TQ_SIGNAL( applicationRemoved( const TQCString& ) ) , this, TQ_SLOT( unregisteredFromDCOP( const TQCString& ) ) );
185 connect( d->dc, TQ_SIGNAL( applicationRegistered( const TQCString& ) ) , this, TQ_SLOT( registeredToDCOP( const TQCString& ) ) );
219 m_initialized = true; // we should only do this once, as registeredToDCOP() will catch any new starts
220 // So there is no error from a failed query when using tdelibs 3.2, which don't have this servicetype
250 //kdDebug( 790 ) << " app name: " << (*offer)->name() << ", has instance " << *app << ", dcopService: " << dcopService << endl;
253 kdDebug( 790 ) << "App " << *app << ", dcopObjectId " << dcopObjectId << " found, using it for presence info." << endl;
290 kdDebug( 790 ) << "App: " << appId << ", dcopService: " << dcopService << " started, using it for presence info."<< endl;
331 //kdDebug( 790 ) << k_funcinfo << "uid: " << uid << " appId: " << appId << " presence " << presence << endl;
334 //kdDebug( 790 ) << "current best presence from : " << current.best().appId << " is: " << current.best().presence << endl;
384 //kdDebug( 790 ) << k_funcinfo << "returning a null TQPixmap because we were asked for an icon for a uid we know nothing about" << endl;
389 //kdDebug( 790 ) << k_funcinfo << "returning this: " << d->presence_icons[ ap.presence ] << endl;
515 void KIMProxy::sendFile(const TQString &uid, const KURL &sourceURL, const TQString &altFileName, uint fileSize )
565 // The app will notify itself to us using registeredToDCOP, so we don't need to record a stub for it here
568 int result = KDCOPServiceStarter::self()->findServiceFor( IM_SERVICE_TYPE, TQString::null, preferences, &error, &dcopService );
570 kdDebug( 790 ) << k_funcinfo << "error was: " << error << ", dcopService: " << dcopService << endl;
588 presence->insert( it.currentKey().ascii(), it.current()->presenceStatus( uid ) ); // m_im_client_stubs has qstring keys...
bool connectDCOPSignal(const TQCString &sender, const TQCString &senderObj, const TQCString &signal, const TQCString &slot, bool Volatile)
Provides access to instant messenger programs which implement KDE's instant messanger interface KIMIf...
Definition: tdeimproxy.h:108
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
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 locate(const TQString &contactId, const TQString &protocol)
Obtain the KABC UID corresponding to the given IM address.
Definition: tdeimproxy.cpp:543
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 readEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
void setGroup(const TQString &group)
TQString toString() const
kndbgstream & endl(kndbgstream &s)
kdbgstream kdWarning(int area=0)
kdbgstream kdDebug(int area=0)
const TDEShortcut & end()