Diffstat (limited to 'libkdepim/externalapphandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/externalapphandler.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/libkdepim/externalapphandler.h b/libkdepim/externalapphandler.h index efcdd89..3cf9e06 100644 --- a/libkdepim/externalapphandler.h +++ b/libkdepim/externalapphandler.h | |||
@@ -76,21 +76,27 @@ class ExternalAppHandler | |||
76 | }; | 76 | }; |
77 | 77 | ||
78 | enum Availability { | 78 | enum Availability { |
79 | UNDEFINED = -1, | 79 | UNDEFINED = -1, |
80 | UNAVAILABLE = 0, | 80 | UNAVAILABLE = 0, |
81 | AVAILABLE = 1 | 81 | AVAILABLE = 1 |
82 | }; | 82 | }; |
83 | 83 | ||
84 | //calls the emailapplication with a number of attachments that need to be send | 84 | //calls the emailapplication with a number of attachments that need to be send. |
85 | bool mailAttachments( const QString& urls ); | 85 | //either parameter can be left empty. |
86 | bool mailToMultipleContacts( const QString& recipients, const QString& attachmenturls ); | ||
86 | 87 | ||
87 | //calls the emailapplication and creates a mail with parameter emails as recipients | 88 | //calls the emailapplication and creates a mail with parameter emailadress as recipients |
88 | bool mailToContacts( const QString& emails ); | 89 | bool mailToOneContact( const QString& name, const QString& emailadress ); |
90 | |||
91 | //calls the emailapplication and creates a mail with parameter as recipients | ||
92 | // parameters format is | ||
93 | // NAME <EMAIL>:SUBJECT | ||
94 | bool mailToOneContact( const QString& adressline ); | ||
89 | 95 | ||
90 | //calls the phoneapplication with the number | 96 | //calls the phoneapplication with the number |
91 | bool callByPhone( const QString& phonenumber ); | 97 | bool callByPhone( const QString& phonenumber ); |
92 | 98 | ||
93 | //calls the smsapplication with the number | 99 | //calls the smsapplication with the number |
94 | bool callBySMS( const QString& phonenumber ); | 100 | bool callBySMS( const QString& phonenumber ); |
95 | 101 | ||
96 | //calls the pagerapplication with the number | 102 | //calls the pagerapplication with the number |
@@ -122,18 +128,18 @@ class ExternalAppHandler | |||
122 | Availability mPhoneAppAvailable; | 128 | Availability mPhoneAppAvailable; |
123 | Availability mFaxAppAvailable; | 129 | Availability mFaxAppAvailable; |
124 | Availability mSMSAppAvailable; | 130 | Availability mSMSAppAvailable; |
125 | Availability mPagerAppAvailable; | 131 | Availability mPagerAppAvailable; |
126 | 132 | ||
127 | 133 | ||
128 | void addDefaultAppItem(Types type, int id, const QString& label, const QString& channel, const QString& message, const QString& parameters, const QString& message2, const QString& parameters2); | 134 | void addDefaultAppItem(Types type, int id, const QString& label, const QString& channel, const QString& message, const QString& parameters, const QString& message2, const QString& parameters2); |
129 | 135 | ||
130 | QString& translateMessage(QString& message, const QString& emails) const; | 136 | QString& translateMessage(QString& message, const QString& param1, const QString& param2) const; |
131 | void passParameter(QCopEnvelope* e, const QString& parameters, const QString& param1) const; | 137 | void passParameters(QCopEnvelope* e, const QString& parameters, const QString& param1, const QString& param2) const; |
132 | 138 | ||
133 | 139 | ||
134 | static ExternalAppHandler *sInstance; | 140 | static ExternalAppHandler *sInstance; |
135 | 141 | ||
136 | 142 | ||
137 | }; | 143 | }; |
138 | 144 | ||
139 | #endif | 145 | #endif |