summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/externalapphandler.cpp26
1 files changed, 14 insertions, 12 deletions
diff --git a/libkdepim/externalapphandler.cpp b/libkdepim/externalapphandler.cpp
index fa56ee9..99aee86 100644
--- a/libkdepim/externalapphandler.cpp
+++ b/libkdepim/externalapphandler.cpp
@@ -82,5 +82,5 @@ bool QCopTransferItem::sendMessageToTarget(const QString& uid, const QString& pa
QString sourceMessage = _sourceMessage + _sourceMessageParameters;
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", _targetChannel.latin1(), sourceMessage.latin1());
+ 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());
@@ -112,5 +112,5 @@ void QCopTransferItem::setSourceChannel(const QString& sourceChannel)
{
- if (_sourceChannel.isEmpty())
+ if ( !sourceChannel.isEmpty())
_sourceChannel = sourceChannel;
}
@@ -198,5 +198,5 @@ bool QCopMapTransferItem::sendMessageToSource(const QString& uid, const QMap<QSt
QString targetMessage = _targetMessage + _targetMessageParameters;
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1());
+ qDebug("2Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1());
qDebug("passing uid(%s) and map as parameter to QCopEnvelope", uid.latin1());
@@ -267,5 +267,5 @@ bool QCopListTransferItem::sendMessageToSource(const QString& uid, const QString
QString targetMessage = _targetMessage + _targetMessageParameters;
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1());
+ qDebug("3Using QCopEnvelope e(\"%s\",\"%s\")", _sourceChannel.latin1(), targetMessage.latin1());
qDebug("passing uid(%s) and list1, list2, list3 as parameter to QCopEnvelope", uid.latin1());
@@ -291,4 +291,5 @@ bool QCopListTransferItem::appMessage( const QCString& cmsg, const QByteArray& d
{
bool res = QCopTransferItem::appMessage( cmsg, data );
+ qDebug("1QCopListTransferItem- QCOP message received: %s ", cmsg.data() );
if (res == false)
@@ -296,5 +297,5 @@ bool QCopListTransferItem::appMessage( const QCString& cmsg, const QByteArray& d
QDataStream stream( data, IO_ReadOnly );
-// qDebug("QCopListTransferItem- QCOP message received: %s ", cmsg.data() );
+ qDebug("2QCopListTransferItem- QCOP message received: %s ", cmsg.data() );
//we are in the source and get an answer from the target
@@ -605,5 +606,5 @@ bool ExternalAppHandler::mailToMultipleContacts( const QString& emails, const QS
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message2.latin1());
+ 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());
@@ -662,5 +663,5 @@ bool ExternalAppHandler::mailToOneContact( const QString& name, const QString& e
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1());
+ 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());
@@ -739,5 +740,5 @@ bool ExternalAppHandler::callByPhone( const QString& phonenumber )
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1());
+ 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());
@@ -794,5 +795,5 @@ bool ExternalAppHandler::callBySMS( const QString& phonenumber )
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1());
+ 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());
@@ -849,5 +850,5 @@ bool ExternalAppHandler::callByPager( const QString& pagernumber )
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1());
+ 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());
@@ -904,5 +905,5 @@ bool ExternalAppHandler::callByFax( const QString& faxnumber )
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1());
+ 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());
@@ -959,5 +960,5 @@ bool ExternalAppHandler::callBySIP( const QString& sipnumber )
- qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1());
+ 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());
@@ -1065,4 +1066,5 @@ bool ExternalAppHandler::requestNameEmailUidListFromKAPI(const QString& sourceCh
bool ExternalAppHandler::returnNameEmailUidListFromKAPI(const QString& sourceChannel, const QString& sessionuid, const QStringList& list1, const QStringList& list2, const QStringList& list3)
{
+
mNameEmailUidListFromKAPITransfer->setSourceChannel(sourceChannel);
return mNameEmailUidListFromKAPITransfer->sendMessageToSource(sessionuid, list1, list2, list3);