Update of /cvsroot/mahogany/M/include/gui
In directory usw-pr-cvs1:/tmp/cvs-serv7436/include/gui
Modified Files:
wxComposeView.h
Log Message:
delete the draft message after the message is sent or postponed again
Index: wxComposeView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxComposeView.h,v
retrieving revision 1.75
retrieving revision 1.76
diff -b -u -2 -r1.75 -r1.76
--- wxComposeView.h 16 Mar 2002 23:38:47 -0000 1.75
+++ wxComposeView.h 17 Mar 2002 17:25:29 -0000 1.76
@@ -153,4 +153,12 @@
bool SaveAsDraft() const;
+ /**
+ Delete the draft of this message from the drafts folder, if any (i.e. it
+ is safe to call this function unconditionally)
+
+ @return true if the draft message was deleted, false otherwise
+ */
+ bool DeleteDraft();
+
/** Send the message.
@param schedule if TRUE, call calendar module to schedule sending
@@ -211,7 +219,4 @@
void ResetDirty();
- /// set the message encoding to be equal to the encoding of this msg
- void SetEncodingToSameAs(Message *msg);
-
// implement base class virtual
virtual wxComposeView *GetComposeView() { return this; }
@@ -254,4 +259,10 @@
void SetEncoding(wxFontEncoding encoding);
+ /// set the message encoding to be equal to the encoding of this msg
+ void SetEncodingToSameAs(Message *msg);
+
+ /// set the draft message we were started with
+ void SetDraft(Message *msg);
+
/// verify that the message can be sent
bool IsReadyToSend() const;
@@ -412,4 +423,7 @@
Message *m_OriginalMessage;
+ /// if we're continuing to edit a draft, the original draft message
+ Message *m_DraftMessage;
+
/// the template to use or an empty string
String m_template;
@@ -453,4 +467,7 @@
wxComposeView::MessageKind kind,
bool hide);
+
+ // it uses our m_DraftMessage
+ friend Composer *Composer::EditMessage(Profile *profile, Message *msg);
// wxWindows macros
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates