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 @@ -74,8 +74,14 @@ class ExternalAppHandler FAX = 3, PAGER = 4 }; + enum Availability { + UNDEFINED = -1, + UNAVAILABLE = 0, + AVAILABLE = 1 + }; + //calls the emailapplication with a number of attachments that need to be send bool mailAttachments( const QString& urls ); //calls the emailapplication and creates a mail with parameter emails as recipients @@ -92,8 +98,15 @@ class ExternalAppHandler //calls the faxapplication with the number bool callByFax( const QString& faxnumber ); + bool isEmailAppAvailable(); + bool isSMSAppAvailable(); + bool isPhoneAppAvailable(); + bool isFaxAppAvailable(); + bool isPagerAppAvailable(); + + //loadConfig clears the cache and checks again if the applications are available or not void loadConfig(); @@ -104,8 +117,14 @@ class ExternalAppHandler private: ExternalAppHandler(); QList<DefaultAppItem> mDefaultItems; + Availability mEmailAppAvailable; + Availability mPhoneAppAvailable; + Availability mFaxAppAvailable; + Availability mSMSAppAvailable; + Availability mPagerAppAvailable; + 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; |