kmail
callback.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef CALLBACK_H
00034 #define CALLBACK_H
00035
00036 #include <qstring.h>
00037
00038 class KMMessage;
00039 class KMReaderWin;
00040
00041 #include <kdepimmacros.h>
00042
00043
00044 #include <libkcal/attendee.h>
00045
00046
00047 namespace KMail {
00048
00055 class KDE_EXPORT Callback {
00056 public:
00057 Callback( KMMessage* msg, KMReaderWin* readerWin );
00058
00060 KMMessage* getMsg() const { return mMsg; }
00061
00065 bool mailICal( const QString &to, const QString &iCal,
00066 const QString &subject, const QString &status,
00067 bool delMessage = true ) const;
00068
00070 QString receiver() const;
00071
00073 QString sender() const;
00074
00076 void updateReaderWindow() const;
00077
00079 void closeIfSecondaryWindow() const;
00080
00081 bool askForComment( KCal::Attendee::PartStat status ) const;
00082 bool deleteInvitationAfterReply() const;
00083 bool exchangeCompatibleInvitations() const;
00084 bool outlookCompatibleInvitationReplyComments() const;
00085 bool outlookCompatibleInvitationComparisons() const;
00086
00087 private:
00088 QString askForTransport( bool nullIdentity ) const;
00089
00090 KMMessage* mMsg;
00091 KMReaderWin* mReaderWin;
00092 mutable QString mReceiver;
00093 mutable bool mReceiverSet;
00094 };
00095
00096 }
00097
00098 #endif
00099
|