Update of /cvsroot/mahogany/M/include/gui
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv28524/include/gui

Modified Files:
        wxComposeView.h 
Log Message:
don't ask whether to convert the message to another encoding when we're 
autosaving it in the background as this could result in accumulation of many 
message boxes; don't ask this question again for the same message at all if the 
user answered it affirmatively already

Index: wxComposeView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/gui/wxComposeView.h,v
retrieving revision 1.111
retrieving revision 1.112
diff -b -u -2 -r1.111 -r1.112
--- wxComposeView.h     8 Apr 2006 19:06:13 -0000       1.111
+++ wxComposeView.h     24 Jun 2006 01:27:45 -0000      1.112
@@ -85,6 +85,8 @@
    };
 
-   // a message kind - combined with the mode this determines the template
-   // InitText() will use
+   /**
+      Message kind:combined with the mode this determines the template
+      InitText() will use
+    */
    enum MessageKind
    {
@@ -95,4 +97,17 @@
 
    /**
+      Common flags used in some functions.
+    */
+   enum
+   {
+      /// Just the absence of Interactive flag
+      NonInteractive = 0,
+
+      /// If this flag is specified, we can ask questions to the user
+      Interactive = 1
+   };
+
+
+   /**
      Set the template to use for this message. Should be called before
      InitText(), if at all.
@@ -386,7 +401,8 @@
      WriteToString()).
 
+     @param flags by default contains Interactive flag
      @return SendMessage object to be deleted by the caller
    */
-   SendMessage *BuildMessage() const;
+   SendMessage *BuildMessage(int flags = Interactive) const;
 
    /**
@@ -394,7 +410,8 @@
      headers which we put in our draft messages and use in EditMessage() later.
 
+     @param flags by default contains Interactive flag
      @return SendMessage object to be deleted by the caller
    */
-   SendMessage *BuildDraftMessage() const;
+   SendMessage *BuildDraftMessage(int flags = Interactive) const;
 
 
@@ -517,4 +534,7 @@
    bool m_isModified;
 
+   /// Is it ok to send this message in an encoding different from original?
+   mutable bool m_okToConvertOnSend;
+
    /// If replying, this is the original message (may be NULL)
    Message *m_OriginalMessage;


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to