From 2666ac52add8d79e34a04a64e4d5f092dd3d3d7e Mon Sep 17 00:00:00 2001 From: ulf69 Date: Tue, 10 Aug 2004 19:37:46 +0000 Subject: added methods to check if a certain application is available --- (limited to 'libkdepim/externalapphandler.h') diff --git a/libkdepim/externalapphandler.h b/libkdepim/externalapphandler.h index 3ecf1b1..efcdd89 100644 --- a/libkdepim/externalapphandler.h +++ b/libkdepim/externalapphandler.h @@ -75,6 +75,12 @@ class ExternalAppHandler 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 ); @@ -93,6 +99,13 @@ 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(); @@ -105,6 +118,12 @@ class ExternalAppHandler ExternalAppHandler(); QList 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); -- cgit v0.9.0.2