Update of /cvsroot/mahogany/M/include
In directory sc8-pr-cvs1:/tmp/cvs-serv31342/include
Modified Files:
MessageView.h
Log Message:
use separate temp profile for standalone message views to avoid modifying main folder
options while using them
Index: MessageView.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MessageView.h,v
retrieving revision 1.50
retrieving revision 1.51
diff -b -u -2 -r1.50 -r1.51
--- MessageView.h 19 Sep 2003 19:23:47 -0000 1.50
+++ MessageView.h 7 Oct 2003 22:48:45 -0000 1.51
@@ -65,10 +65,27 @@
MessageView();
- /// takes as argument the parent window for the message viewer one
- void Init(wxWindow *parent);
+ /// same arguments as in ctor(s)
+ void Init(wxWindow *parent, Profile *profile = NULL);
public:
- /// create a new MessageView
- static MessageView *Create(wxWindow *parent, FolderView *folderView = NULL);
+ /**
+ Create a new MessageView as part of a FolderView.
+
+ @param parent the parent window for the GUI control
+ @param folderView the associated folder view, must not be NULL
+ @return new MessageView object to be deleted by the caller or NULL
+ */
+ static MessageView *Create(wxWindow *parent, FolderView *folderView);
+
+ /**
+ Create a new standalone MessageView.
+
+ @param parent the parent window for the GUI control
+ @param profile our own (temp) profile, must not be NULL; note that we
+ do not take ownership of this pointer
+ @return new MessageView object to be deleted by the caller or NULL
+ */
+ static MessageView *CreateStandalone(wxWindow *parent, Profile *profile);
+
/// dtor
@@ -215,8 +232,21 @@
//@{
- /// get the profile to read settings from: DO NOT CALL DecRef() ON RESULT
+ /**
+ Get the profile to read settings from.
+
+ If we don't have any profile, this returns a pointer to the global one.
+ In any case, it must never return NULL pointer.
+
+ @return profile pointer, never NULL. DO NOT CALL DecRef() ON RESULT
+ */
Profile *GetProfile() const;
- /// get the folder we use: DO NOT CALL DecRef() ON RESULT
+ /**
+ Get the folder we use
+
+ Note that this may return NULL.
+
+ @return async mail folder or NULL. DO NOT CALL DecRef() ON RESULT
+ */
ASMailFolder *GetFolder() const { return m_asyncFolder; }
@@ -512,4 +542,10 @@
ASMailFolder *m_asyncFolder;
+ /// the obejct to which we delegate the menu command processing
+ MsgCmdProc *m_msgCmdProc;
+
+ /// our profile object (use GetProfile() instead of accessing directly!)
+ Profile *m_profile;
+
//@}
@@ -634,7 +670,4 @@
//@}
-
- /// the obejct to which we delegate the menu command processing
- MsgCmdProc *m_msgCmdProc;
friend class ProcessEvtHandler;
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates