Update of /cvsroot/mahogany/M/include/gui
In directory usw-pr-cvs1:/tmp/cvs-serv29688/include/gui

Modified Files:
        wxComposeView.h 
Log Message:
added autosaving composer windows

Index: wxComposeView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxComposeView.h,v
retrieving revision 1.76
retrieving revision 1.77
diff -b -u -2 -r1.76 -r1.77
--- wxComposeView.h     17 Mar 2002 17:25:29 -0000      1.76
+++ wxComposeView.h     18 Mar 2002 22:37:41 -0000      1.77
@@ -161,4 +161,10 @@
    bool DeleteDraft();
 
+   /**
+     Save a snapshot of the composer contents into a file to be able to restore
+     it later if the app crashes.
+   */
+   bool AutoSave();
+
    /** Send the message.
        @param schedule if TRUE, call calendar module to schedule sending
@@ -268,4 +274,7 @@
    bool IsReadyToSend() const;
 
+   /// has the message been modified since last save?
+   bool IsModified() const;
+
    /// insert a text file at the current cursor position
    bool InsertFileAsText(const String& filename,
@@ -283,8 +292,16 @@
      WriteToString()).
 
-     @return msg SendMessage object to be deleted by the caller
+     @return SendMessage object to be deleted by the caller
    */
    SendMessage *BuildMessage() const;
 
+   /**
+     Return the message to be sent as a draft: it simply adds a few additional
+     headers which we put in our draft messages and use in EditMessage() later.
+
+     @return SendMessage object to be deleted by the caller
+   */
+   SendMessage *BuildDraftMessage() const;
+
    /// Destructor
    ~wxComposeView();
@@ -352,7 +369,4 @@
    Profile *m_Profile;
 
-   /// the name of the class
-   String m_name;
-
    /// the initial from/reply-to address
    String m_from;
@@ -420,4 +434,7 @@
    bool m_sending;
 
+   /// Have we been modified since the last save?
+   bool m_isModified;
+
    /// If replying, this is the original message
    Message *m_OriginalMessage;
@@ -428,4 +445,7 @@
    /// the template to use or an empty string
    String m_template;
+
+   /// the name of the file we autosaved ourselves to (may be empty)
+   String m_filenameAutoSave;
 
    /// the (main) encoding (== charset) to use for the message


_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to