15 #ifndef __KMAIL_VACATION_H__
16 #define __KMAIL_VACATION_H__
24 template < typename T> class TQValueList;
32 typedef TQValueList<AddrSpec> AddrSpecList;
38 class Vacation : public TQObject {
42 Vacation( TQObject * parent=0, bool checkOnly = false, const char * name=0 );
45 bool isUsable() const { return !mUrl.isEmpty(); }
47 static TQString defaultMessageText();
48 static int defaultNotificationInterval();
49 static TQStringList defaultMailAliases();
50 static bool defaultSendForSpam();
51 static TQString defaultDomainName();
54 static TQString composeScript( const TQString & messageText,
55 int notificationInterval,
56 const KMime::Types::AddrSpecList & aliases,
57 bool sendForSpam, const TQString & excludeDomain );
58 static bool parseScript( const TQString & script, TQString & messageText,
59 int & notificationInterval, TQStringList & aliases,
60 bool & sendForSpam, TQString & domainName );
62 void handlePutResult( KMail::SieveJob * job, bool success, bool );
66 void result( bool success );
68 void scriptActive( bool active );
71 void slotDialogDefaults();
72 void slotGetResult( KMail::SieveJob * job, bool success,
73 const TQString & script, bool active );
75 void slotDialogCancel();
76 void slotPutActiveResult( KMail::SieveJob *, bool );
77 void slotPutInactiveResult( KMail::SieveJob *, bool );
80 KMail::SieveJob * mSieveJob;
83 KMail::VacationDialog * mDialog;
|