summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/externalapphandler.h18
-rw-r--r--libkdepim/kcmconfigs/kdepimconfigwidget.cpp15
2 files changed, 21 insertions, 12 deletions
diff --git a/libkdepim/externalapphandler.h b/libkdepim/externalapphandler.h
index efcdd89..3cf9e06 100644
--- a/libkdepim/externalapphandler.h
+++ b/libkdepim/externalapphandler.h
@@ -81,11 +81,17 @@ class ExternalAppHandler
AVAILABLE = 1
};
- //calls the emailapplication with a number of attachments that need to be send
- bool mailAttachments( const QString& urls );
+ //calls the emailapplication with a number of attachments that need to be send.
+ //either parameter can be left empty.
+ bool mailToMultipleContacts( const QString& recipients, const QString& attachmenturls );
- //calls the emailapplication and creates a mail with parameter emails as recipients
- bool mailToContacts( const QString& emails );
+ //calls the emailapplication and creates a mail with parameter emailadress as recipients
+ bool mailToOneContact( const QString& name, const QString& emailadress );
+
+ //calls the emailapplication and creates a mail with parameter as recipients
+ // parameters format is
+ // NAME <EMAIL>:SUBJECT
+ bool mailToOneContact( const QString& adressline );
//calls the phoneapplication with the number
bool callByPhone( const QString& phonenumber );
@@ -127,8 +133,8 @@ class ExternalAppHandler
void addDefaultAppItem(Types type, int id, const QString& label, const QString& channel, const QString& message, const QString& parameters, const QString& message2, const QString& parameters2);
- QString& translateMessage(QString& message, const QString& emails) const;
- void passParameter(QCopEnvelope* e, const QString& parameters, const QString& param1) const;
+ QString& translateMessage(QString& message, const QString& param1, const QString& param2) const;
+ void passParameters(QCopEnvelope* e, const QString& parameters, const QString& param1, const QString& param2) const;
static ExternalAppHandler *sInstance;
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp
index c8b94db..4f4cc6a 100644
--- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp
+++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp
@@ -141,20 +141,23 @@ KDEPIMConfigWidget::KDEPIMConfigWidget( QWidget *parent, const char *name )
mParameters->setReadOnly(true);
boxLayout->addWidget( mParameters, 4, 1 );
+ lab = new QLabel( i18n("HINT: Delimiter=; Name=%1,Email=%2"), mExternalAppGroupBox);
+ boxLayout->addMultiCellWidget( lab, 5, 5, 0, 1 );
+
lab = new QLabel( i18n("extra Message:"), mExternalAppGroupBox);
- boxLayout->addWidget( lab, 5, 0 );
+ boxLayout->addWidget( lab, 6, 0 );
mMessage2 = new QLineEdit(mExternalAppGroupBox);
mMessage2->setReadOnly(true);
- boxLayout->addWidget( mMessage2 , 6, 0);
+ boxLayout->addWidget( mMessage2 , 7, 0);
lab = new QLabel( i18n("extra Parameters:"), mExternalAppGroupBox);
- boxLayout->addWidget( lab, 5, 1 );
+ boxLayout->addWidget( lab, 6, 1 );
mParameters2 = new QLineEdit(mExternalAppGroupBox);
mParameters2->setReadOnly(true);
- boxLayout->addWidget( mParameters2, 6, 1 );
+ boxLayout->addWidget( mParameters2, 7, 1 );
- lab = new QLabel( i18n("HINT: Delimiter=; Data=%1 "), mExternalAppGroupBox);
- boxLayout->addMultiCellWidget( lab, 7, 7, 0, 1 );
+ lab = new QLabel( i18n("HINT: Emails=%1,Attachments=%2"), mExternalAppGroupBox);
+ boxLayout->addMultiCellWidget( lab, 8, 8, 0, 1 );
connect( mChannel, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) );