Diffstat (limited to 'libkdepim/externalapphandler.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/externalapphandler.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libkdepim/externalapphandler.h b/libkdepim/externalapphandler.h index 3ecf1b1..efcdd89 100644 --- a/libkdepim/externalapphandler.h +++ b/libkdepim/externalapphandler.h | |||
@@ -76,4 +76,10 @@ class ExternalAppHandler | |||
76 | }; | 76 | }; |
77 | 77 | ||
78 | enum Availability { | ||
79 | UNDEFINED = -1, | ||
80 | UNAVAILABLE = 0, | ||
81 | AVAILABLE = 1 | ||
82 | }; | ||
83 | |||
78 | //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 |
79 | bool mailAttachments( const QString& urls ); | 85 | bool mailAttachments( const QString& urls ); |
@@ -94,4 +100,11 @@ class ExternalAppHandler | |||
94 | bool callByFax( const QString& faxnumber ); | 100 | bool callByFax( const QString& faxnumber ); |
95 | 101 | ||
102 | bool isEmailAppAvailable(); | ||
103 | bool isSMSAppAvailable(); | ||
104 | bool isPhoneAppAvailable(); | ||
105 | bool isFaxAppAvailable(); | ||
106 | bool isPagerAppAvailable(); | ||
107 | |||
108 | |||
96 | 109 | ||
97 | //loadConfig clears the cache and checks again if the applications are available or not | 110 | //loadConfig clears the cache and checks again if the applications are available or not |
@@ -106,4 +119,10 @@ class ExternalAppHandler | |||
106 | QList<DefaultAppItem> mDefaultItems; | 119 | QList<DefaultAppItem> mDefaultItems; |
107 | 120 | ||
121 | Availability mEmailAppAvailable; | ||
122 | Availability mPhoneAppAvailable; | ||
123 | Availability mFaxAppAvailable; | ||
124 | Availability mSMSAppAvailable; | ||
125 | Availability mPagerAppAvailable; | ||
126 | |||
108 | 127 | ||
109 | void addDefaultAppItem(Types type, int id, const QString& label, const QString& channel, const QString& message, const QString& parameters, const QString& message2, const QString& parameters2); | 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); |