-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | libkdepim/externalapphandler.cpp | 36 |
2 files changed, 22 insertions, 16 deletions
@@ -1,5 +1,5 @@ | |||
1 | ############################################################################# | 1 | ############################################################################# |
2 | # Makefile for building: kopi-desktop | 2 | # Makefile for building: kopi-desktop |
3 | # Generated by qmake (1.07a) (Qt 3.3.3) on: Mon Aug 9 13:18:13 2004 | 3 | # Generated by qmake (1.07a) (Qt 3.3.3) on: Tue Aug 10 18:20:15 2004 |
4 | # Project: kopi-desktop.pro | 4 | # Project: kopi-desktop.pro |
5 | # Template: subdirs | 5 | # Template: subdirs |
diff --git a/libkdepim/externalapphandler.cpp b/libkdepim/externalapphandler.cpp index 6f812d0..0128cf7 100644 --- a/libkdepim/externalapphandler.cpp +++ b/libkdepim/externalapphandler.cpp | |||
@@ -32,10 +32,12 @@ $Id$ | |||
32 | #include <qfile.h> | 32 | #include <qfile.h> |
33 | #include <qmap.h> | 33 | #include <qmap.h> |
34 | #include <qregexp.h> | ||
34 | 35 | ||
35 | 36 | #ifndef DESKTOP_VERSION | |
36 | #include <qtopia/qcopenvelope_qws.h> | 37 | #include <qtopia/qcopenvelope_qws.h> |
37 | 38 | #endif | |
38 | 39 | ||
39 | #include <kstaticdeleter.h> | 40 | #include <kstaticdeleter.h> |
41 | #include <kmessagebox.h> | ||
40 | 42 | ||
41 | 43 | ||
@@ -169,5 +171,6 @@ DefaultAppItem* ExternalAppHandler::getDefaultItem(Types type, int clientid) | |||
169 | bool ExternalAppHandler::mailAttachments( const QString& urls ) | 171 | bool ExternalAppHandler::mailAttachments( const QString& urls ) |
170 | { | 172 | { |
171 | #ifndef QT_NO_COP | 173 | |
174 | #ifndef DESKTOP_VERSION | ||
172 | QString channel; | 175 | QString channel; |
173 | QString message2; | 176 | QString message2; |
@@ -199,4 +202,5 @@ bool ExternalAppHandler::mailAttachments( const QString& urls ) | |||
199 | qDebug("passing attachmenturls:(%s) as parameter in the form %s to QCopEnvelope", urls.latin1(), parameters2.latin1()); | 202 | qDebug("passing attachmenturls:(%s) as parameter in the form %s to QCopEnvelope", urls.latin1(), parameters2.latin1()); |
200 | 203 | ||
204 | |||
201 | QCopEnvelope e(channel.latin1(), message2.latin1()); | 205 | QCopEnvelope e(channel.latin1(), message2.latin1()); |
202 | //US we need no names in the To field. The emailadresses are enough | 206 | //US we need no names in the To field. The emailadresses are enough |
@@ -205,6 +209,7 @@ bool ExternalAppHandler::mailAttachments( const QString& urls ) | |||
205 | 209 | ||
206 | 210 | ||
211 | |||
207 | #else | 212 | #else |
208 | KMessageBox::sorry( this, i18n( "This version does not support the sending of emails." ) ); | 213 | KMessageBox::sorry( 0, i18n( "This version does not support the sending of emails." ) ); |
209 | #endif | 214 | #endif |
210 | 215 | ||
@@ -217,5 +222,5 @@ bool ExternalAppHandler::mailAttachments( const QString& urls ) | |||
217 | bool ExternalAppHandler::mailToContacts( const QString& emails ) | 222 | bool ExternalAppHandler::mailToContacts( const QString& emails ) |
218 | { | 223 | { |
219 | #ifndef QT_NO_COP | 224 | #ifndef DESKTOP_VERSION |
220 | QString channel; | 225 | QString channel; |
221 | QString message; | 226 | QString message; |
@@ -258,5 +263,5 @@ bool ExternalAppHandler::mailToContacts( const QString& emails ) | |||
258 | 263 | ||
259 | #else | 264 | #else |
260 | KMessageBox::sorry( this, i18n( "This version does not support the sending of emails." ) ); | 265 | KMessageBox::sorry( 0, i18n( "This version does not support the sending of emails." ) ); |
261 | #endif | 266 | #endif |
262 | 267 | ||
@@ -269,5 +274,5 @@ bool ExternalAppHandler::mailToContacts( const QString& emails ) | |||
269 | bool ExternalAppHandler::callByPhone( const QString& phonenumber ) | 274 | bool ExternalAppHandler::callByPhone( const QString& phonenumber ) |
270 | { | 275 | { |
271 | #ifndef QT_NO_COP | 276 | #ifndef DESKTOP_VERSION |
272 | QString channel; | 277 | QString channel; |
273 | QString message; | 278 | QString message; |
@@ -310,5 +315,5 @@ bool ExternalAppHandler::callByPhone( const QString& phonenumber ) | |||
310 | 315 | ||
311 | #else | 316 | #else |
312 | KMessageBox::sorry( this, i18n( "This version does not support phonecalls." ) ); | 317 | KMessageBox::sorry( 0, i18n( "This version does not support phonecalls." ) ); |
313 | #endif | 318 | #endif |
314 | 319 | ||
@@ -320,5 +325,5 @@ bool ExternalAppHandler::callByPhone( const QString& phonenumber ) | |||
320 | bool ExternalAppHandler::callBySMS( const QString& phonenumber ) | 325 | bool ExternalAppHandler::callBySMS( const QString& phonenumber ) |
321 | { | 326 | { |
322 | #ifndef QT_NO_COP | 327 | #ifndef DESKTOP_VERSION |
323 | QString channel; | 328 | QString channel; |
324 | QString message; | 329 | QString message; |
@@ -361,5 +366,5 @@ bool ExternalAppHandler::callBySMS( const QString& phonenumber ) | |||
361 | 366 | ||
362 | #else | 367 | #else |
363 | KMessageBox::sorry( this, i18n( "This version does not support the sending of sms." ) ); | 368 | KMessageBox::sorry( 0, i18n( "This version does not support the sending of sms." ) ); |
364 | #endif | 369 | #endif |
365 | 370 | ||
@@ -371,5 +376,5 @@ bool ExternalAppHandler::callBySMS( const QString& phonenumber ) | |||
371 | bool ExternalAppHandler::callByPager( const QString& pagernumber ) | 376 | bool ExternalAppHandler::callByPager( const QString& pagernumber ) |
372 | { | 377 | { |
373 | #ifndef QT_NO_COP | 378 | #ifndef DESKTOP_VERSION |
374 | QString channel; | 379 | QString channel; |
375 | QString message; | 380 | QString message; |
@@ -412,5 +417,5 @@ bool ExternalAppHandler::callByPager( const QString& pagernumber ) | |||
412 | 417 | ||
413 | #else | 418 | #else |
414 | KMessageBox::sorry( this, i18n( "This version does not support paging." ) ); | 419 | KMessageBox::sorry( 0, i18n( "This version does not support paging." ) ); |
415 | #endif | 420 | #endif |
416 | 421 | ||
@@ -422,5 +427,5 @@ bool ExternalAppHandler::callByPager( const QString& pagernumber ) | |||
422 | bool ExternalAppHandler::callByFax( const QString& faxnumber ) | 427 | bool ExternalAppHandler::callByFax( const QString& faxnumber ) |
423 | { | 428 | { |
424 | #ifndef QT_NO_COP | 429 | #ifndef DESKTOP_VERSION |
425 | QString channel; | 430 | QString channel; |
426 | QString message; | 431 | QString message; |
@@ -463,5 +468,5 @@ bool ExternalAppHandler::callByFax( const QString& faxnumber ) | |||
463 | 468 | ||
464 | #else | 469 | #else |
465 | KMessageBox::sorry( this, i18n( "This version does not support the sending of faxes." ) ); | 470 | KMessageBox::sorry( 0, i18n( "This version does not support the sending of faxes." ) ); |
466 | #endif | 471 | #endif |
467 | 472 | ||
@@ -482,4 +487,5 @@ QString& ExternalAppHandler::translateMessage(QString& message, const QString& p | |||
482 | void ExternalAppHandler::passParameter(QCopEnvelope* e, const QString& parameters, const QString& param1) const | 487 | void ExternalAppHandler::passParameter(QCopEnvelope* e, const QString& parameters, const QString& param1) const |
483 | { | 488 | { |
489 | #ifndef DESKTOP_VERSION | ||
484 | QMap<QString, QString> valmap; | 490 | QMap<QString, QString> valmap; |
485 | bool useValMap = false; | 491 | bool useValMap = false; |
@@ -519,5 +525,5 @@ void ExternalAppHandler::passParameter(QCopEnvelope* e, const QString& parameter | |||
519 | (*e) << valmap; | 525 | (*e) << valmap; |
520 | 526 | ||
521 | 527 | #endif | |
522 | 528 | ||
523 | } | 529 | } |