summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2004-08-10 19:35:18 (UTC)
committer zautrix <zautrix>2004-08-10 19:35:18 (UTC)
commit9f73ddc03d2b02934906193cf8db5ff0813fce0b (patch) (unidiff)
tree6b6ea1a76481c677381419064c9a2d23e850db51
parentdc9010997d770229dbee6b023f41ea74e0809027 (diff)
downloadkdepimpi-9f73ddc03d2b02934906193cf8db5ff0813fce0b.zip
kdepimpi-9f73ddc03d2b02934906193cf8db5ff0813fce0b.tar.gz
kdepimpi-9f73ddc03d2b02934906193cf8db5ff0813fce0b.tar.bz2
Made externalapphandler compile on desktop
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile2
-rw-r--r--libkdepim/externalapphandler.cpp36
2 files changed, 22 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index ac1d5b7..2049dde 100644
--- a/Makefile
+++ b/Makefile
@@ -2,3 +2,3 @@
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
diff --git a/libkdepim/externalapphandler.cpp b/libkdepim/externalapphandler.cpp
index 6f812d0..0128cf7 100644
--- a/libkdepim/externalapphandler.cpp
+++ b/libkdepim/externalapphandler.cpp
@@ -33,8 +33,10 @@ $Id$
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
@@ -170,3 +172,4 @@ bool ExternalAppHandler::mailAttachments( const QString& urls )
170{ 172{
171#ifndef QT_NO_COP 173
174#ifndef DESKTOP_VERSION
172 QString channel; 175 QString channel;
@@ -200,2 +203,3 @@ bool ExternalAppHandler::mailAttachments( const QString& urls )
200 203
204
201 QCopEnvelope e(channel.latin1(), message2.latin1()); 205 QCopEnvelope e(channel.latin1(), message2.latin1());
@@ -206,4 +210,5 @@ bool ExternalAppHandler::mailAttachments( const QString& urls )
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
@@ -218,3 +223,3 @@ bool ExternalAppHandler::mailToContacts( const QString& emails )
218{ 223{
219#ifndef QT_NO_COP 224#ifndef DESKTOP_VERSION
220 QString channel; 225 QString channel;
@@ -259,3 +264,3 @@ bool ExternalAppHandler::mailToContacts( const QString& emails )
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
@@ -270,3 +275,3 @@ bool ExternalAppHandler::callByPhone( const QString& phonenumber )
270{ 275{
271#ifndef QT_NO_COP 276#ifndef DESKTOP_VERSION
272 QString channel; 277 QString channel;
@@ -311,3 +316,3 @@ bool ExternalAppHandler::callByPhone( const QString& phonenumber )
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
@@ -321,3 +326,3 @@ bool ExternalAppHandler::callBySMS( const QString& phonenumber )
321{ 326{
322#ifndef QT_NO_COP 327#ifndef DESKTOP_VERSION
323 QString channel; 328 QString channel;
@@ -362,3 +367,3 @@ bool ExternalAppHandler::callBySMS( const QString& phonenumber )
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
@@ -372,3 +377,3 @@ bool ExternalAppHandler::callByPager( const QString& pagernumber )
372{ 377{
373#ifndef QT_NO_COP 378#ifndef DESKTOP_VERSION
374 QString channel; 379 QString channel;
@@ -413,3 +418,3 @@ bool ExternalAppHandler::callByPager( const QString& pagernumber )
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
@@ -423,3 +428,3 @@ bool ExternalAppHandler::callByFax( const QString& faxnumber )
423{ 428{
424#ifndef QT_NO_COP 429#ifndef DESKTOP_VERSION
425 QString channel; 430 QString channel;
@@ -464,3 +469,3 @@ bool ExternalAppHandler::callByFax( const QString& faxnumber )
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
@@ -483,2 +488,3 @@ void ExternalAppHandler::passParameter(QCopEnvelope* e, const QString& parameter
483{ 488{
489#ifndef DESKTOP_VERSION
484 QMap<QString, QString> valmap; 490 QMap<QString, QString> valmap;
@@ -520,3 +526,3 @@ void ExternalAppHandler::passParameter(QCopEnvelope* e, const QString& parameter
520 526
521 527#endif
522 528