author | ulf69 <ulf69> | 2004-08-13 16:52:31 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-13 16:52:31 (UTC) |
commit | 0e46d151bca931ff5c69a637d91cfcc381094e0b (patch) (side-by-side diff) | |
tree | 8a821a892aaa3035a17b843ab5dbead0353398e5 /libkdepim/externalapphandler.cpp | |
parent | 2de1d7732f0f44895b353bb61520f725ede484ea (diff) | |
download | kdepimpi-0e46d151bca931ff5c69a637d91cfcc381094e0b.zip kdepimpi-0e46d151bca931ff5c69a637d91cfcc381094e0b.tar.gz kdepimpi-0e46d151bca931ff5c69a637d91cfcc381094e0b.tar.bz2 |
fixed a bug. I passed the QString parameters as latin1 representation, which was not correct.
Diffstat (limited to 'libkdepim/externalapphandler.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libkdepim/externalapphandler.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/libkdepim/externalapphandler.cpp b/libkdepim/externalapphandler.cpp index 1093abf..35638b1 100644 --- a/libkdepim/externalapphandler.cpp +++ b/libkdepim/externalapphandler.cpp @@ -296,17 +296,17 @@ bool ExternalAppHandler::mailToMultipleContacts( const QString& emails, const QS parameters2 = dai->_parameters2; } //first check if one of the mailers need the emails right in the message. message2 = translateMessage(message2, emails, urls); qDebug("Using 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()); + qDebug("passing emailadresses(%s), attachmenturls(%s) as parameters in the form %s to QCopEnvelope", emails.latin1() , urls.latin1(), parameters2.latin1()); QCopEnvelope e(channel.latin1(), message2.latin1()); //US we need no names in the To field. The emailadresses are enough passParameters(&e, parameters2, emails, urls); @@ -353,17 +353,17 @@ bool ExternalAppHandler::mailToOneContact( const QString& name, const QString& e } //first check if one of the mailers need the emails right in the message. message = translateMessage(message, name, emailadress); qDebug("Using 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()); + qDebug("passing name(%s), emailadresses(%s) as parameters in the form %s to QCopEnvelope", name.latin1(), emailadress.latin1(), parameters.latin1()); QCopEnvelope e(channel.latin1(), message.latin1()); //US we need no names in the To field. The emailadresses are enough passParameters(&e, parameters, name, emailadress); #else @@ -429,17 +429,17 @@ bool ExternalAppHandler::callByPhone( const QString& phonenumber ) } //first check if one of the mailers need the emails right in the message. message = translateMessage(message, phonenumber, ""); qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); - qDebug("passing phonenumber:(%s) as parameter in the form %s to QCopEnvelope", phonenumber.latin1(), parameters.latin1()); + qDebug("passing phonenumber(%s) as parameter in the form %s to QCopEnvelope", phonenumber.latin1(), parameters.latin1()); QCopEnvelope e(channel.latin1(), message.latin1()); //US we need no names in the To field. The emailadresses are enough passParameters(&e, parameters, phonenumber, ""); #else @@ -484,17 +484,17 @@ bool ExternalAppHandler::callBySMS( const QString& phonenumber ) } //first check if one of the mailers need the emails right in the message. message = translateMessage(message, phonenumber, ""); qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); - qDebug("passing phonenumber:(%s) as parameter in the form %s to QCopEnvelope", phonenumber.latin1(), parameters.latin1()); + qDebug("passing phonenumber(%s) as parameter in the form %s to QCopEnvelope", phonenumber.latin1(), parameters.latin1()); QCopEnvelope e(channel.latin1(), message.latin1()); //US we need no names in the To field. The emailadresses are enough passParameters(&e, parameters, phonenumber, ""); #else @@ -539,17 +539,17 @@ bool ExternalAppHandler::callByPager( const QString& pagernumber ) } //first check if one of the mailers need the emails right in the message. message = translateMessage(message, pagernumber, ""); qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); - qDebug("passing pagernumber:(%s) as parameter in the form %s to QCopEnvelope", pagernumber.latin1(), parameters.latin1()); + qDebug("passing pagernumber(%s) as parameter in the form %s to QCopEnvelope", pagernumber.latin1(), parameters.latin1()); QCopEnvelope e(channel.latin1(), message.latin1()); //US we need no names in the To field. The emailadresses are enough passParameters(&e, parameters, pagernumber, ""); #else @@ -594,17 +594,17 @@ bool ExternalAppHandler::callByFax( const QString& faxnumber ) } //first check if one of the mailers need the emails right in the message. message = translateMessage(message, faxnumber, ""); qDebug("Using QCopEnvelope e(\"%s\",\"%s\")", channel.latin1(), message.latin1()); - qDebug("passing faxnumber:(%s) as parameter in the form %s to QCopEnvelope", faxnumber.latin1(), parameters.latin1()); + qDebug("passing faxnumber(%s) as parameter in the form %s to QCopEnvelope", faxnumber.latin1(), parameters.latin1()); QCopEnvelope e(channel.latin1(), message.latin1()); //US we need no names in the To field. The emailadresses are enough passParameters(&e, parameters, faxnumber, ""); #else @@ -660,17 +660,18 @@ void ExternalAppHandler::passParameters(QCopEnvelope* e, const QString& paramete value = value.replace( QRegExp("%1"), param1 ); value = value.replace( QRegExp("%2"), param2 ); valmap.insert(key, value); useValMap = true; } else { - (*e) << key.latin1(); + // qDebug("pass parameter << %s", key.latin1()); + (*e) << key; } } if (useValMap == true) (*e) << valmap; #endif |