Diffstat (limited to 'libkdepim/externalapphandler.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libkdepim/externalapphandler.cpp | 37 |
1 files changed, 34 insertions, 3 deletions
diff --git a/libkdepim/externalapphandler.cpp b/libkdepim/externalapphandler.cpp index 07bdff2..779b20e 100644 --- a/libkdepim/externalapphandler.cpp +++ b/libkdepim/externalapphandler.cpp @@ -50,2 +50,5 @@ $Id$ +//uncomment line to get debug output +//#define DEBUG_EXT_APP_HANDLER + /********************************************************************************* @@ -82,5 +85,6 @@ bool QCopTransferItem::sendMessageToTarget(const QString& uid, const QString& pa QString sourceMessage = _sourceMessage + _sourceMessageParameters; - +#ifdef DEBUG_EXT_APP_HANDLER qDebug("1Using QCopEnvelope e(\"%s\",\"%s\")", _targetChannel.latin1(), sourceMessage.latin1()); qDebug("passing sourcechannel(%s), uid(%s), param1(%s), param2(%s), param3(%s) as parameter to QCopEnvelope", _sourceChannel.latin1(), uid.latin1(), param1.latin1(), param2.latin1(), param3.latin1()); +#endif @@ -199,4 +203,6 @@ bool QCopMapTransferItem::sendMessageToSource(const QString& uid, const QMap<QSt +#ifdef DEBUG_EXT_APP_HANDLER qDebug("2Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1()); qDebug("passing uid(%s) and map as parameter to QCopEnvelope", uid.latin1()); +#endif @@ -268,2 +274,3 @@ bool QCopListTransferItem::sendMessageToSource(const QString& uid, const QString +#ifdef DEBUG_EXT_APP_HANDLER qDebug("3Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1()); @@ -274,2 +281,3 @@ bool QCopListTransferItem::sendMessageToSource(const QString& uid, const QString qDebug("listentry list3: %s",list3[i].latin1()); +#endif @@ -296,3 +304,5 @@ bool QCopListTransferItem::appMessage( const QCString& cmsg, const QByteArray& d bool res = QCopTransferItem::appMessage( cmsg, data ); +#ifdef DEBUG_EXT_APP_HANDLER qDebug("1QCopListTransferItem- QCOP message received: %s ", cmsg.data() ); +#endif @@ -302,3 +312,5 @@ bool QCopListTransferItem::appMessage( const QCString& cmsg, const QByteArray& d +#ifdef DEBUG_EXT_APP_HANDLER qDebug("2QCopListTransferItem- QCOP message received: %s ", cmsg.data() ); +#endif @@ -315,3 +327,5 @@ bool QCopListTransferItem::appMessage( const QCString& cmsg, const QByteArray& d +#ifdef DEBUG_EXT_APP_HANDLER qDebug("3QCopListTransferItem- QCOP message received: %s ", cmsg.data() ); +#endif @@ -438,4 +452,7 @@ void ExternalAppHandler::loadConfig() //sipclients - addDefaultAppItem(ExternalAppHandler::SIP, KPimGlobalPrefs::NONE_SIC, "No sip client installed", undefined, undefined, undefined, undefined, undefined); - addDefaultAppItem(ExternalAppHandler::SIP, KPimGlobalPrefs::OTHER_SIC, "Other sip client", undefined, undefined, undefined, undefined, undefined); + addDefaultAppItem(ExternalAppHandler::SIP, KPimGlobalPrefs::NONE_SIC, "No SIP client installed", undefined, undefined, undefined, undefined, undefined); + addDefaultAppItem(ExternalAppHandler::SIP, KPimGlobalPrefs::OTHER_SIC, "Other SIP client", undefined, undefined, undefined, undefined, undefined); + if (( QFile::exists( qtopiapath + "/bin/kppi" )) || + ( QFile::exists( opiepath + "/bin/kppi" ))) + addDefaultAppItem(ExternalAppHandler::SIP, KPimGlobalPrefs::KPPI_SIC, "KP/Pi SIP client", "QPE/Application/kppi", "-ring:%1", "", undefined, undefined); @@ -637,4 +654,6 @@ bool ExternalAppHandler::mailToMultipleContacts( const QString& emails, const QS +#ifdef DEBUG_EXT_APP_HANDLER qDebug("4Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message2.latin1()); qDebug("passing emailadresses(%s), attachmenturls(%s) as parameters in the form %s to QCopEnvelope", emails.latin1() , urls.latin1(), parameters2.latin1()); +#endif @@ -694,4 +713,6 @@ bool ExternalAppHandler::mailToOneContact( const QString& name, const QString& e +#ifdef DEBUG_EXT_APP_HANDLER qDebug("5Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); qDebug("passing name(%s), emailadresses(%s) as parameters in the form %s to QCopEnvelope", name.latin1(), emailadress.latin1(), parameters.latin1()); +#endif @@ -771,4 +792,6 @@ bool ExternalAppHandler::callByPhone( const QString& phonenumber ) +#ifdef DEBUG_EXT_APP_HANDLER qDebug("6Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); qDebug("passing phonenumber(%s) as parameter in the form %s to QCopEnvelope", phonenumber.latin1(), parameters.latin1()); +#endif @@ -826,4 +849,6 @@ bool ExternalAppHandler::callBySMS( const QString& phonenumber ) +#ifdef DEBUG_EXT_APP_HANDLER qDebug("7Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); qDebug("passing phonenumber(%s) as parameter in the form %s to QCopEnvelope", phonenumber.latin1(), parameters.latin1()); +#endif @@ -881,4 +906,6 @@ bool ExternalAppHandler::callByPager( const QString& pagernumber ) +#ifdef DEBUG_EXT_APP_HANDLER qDebug("8Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); qDebug("passing pagernumber(%s) as parameter in the form %s to QCopEnvelope", pagernumber.latin1(), parameters.latin1()); +#endif @@ -936,4 +963,6 @@ bool ExternalAppHandler::callByFax( const QString& faxnumber ) +#ifdef DEBUG_EXT_APP_HANDLER qDebug("9Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); qDebug("passing faxnumber(%s) as parameter in the form %s to QCopEnvelope", faxnumber.latin1(), parameters.latin1()); +#endif @@ -991,4 +1020,6 @@ bool ExternalAppHandler::callBySIP( const QString& sipnumber ) +#ifdef DEBUG_EXT_APP_HANDLER qDebug("10Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); qDebug("passing sipnumber(%s) as parameter in the form %s to QCopEnvelope", sipnumber.latin1(), parameters.latin1()); +#endif |