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

Modified Files:
        MFolder.h 
Log Message:
added MFolder::SetServer(), MFolder_obj::Get/Set()

Index: MFolder.h
===================================================================
RCS file: /cvsroot/mahogany/M/include/MFolder.h,v
retrieving revision 1.53
retrieving revision 1.54
diff -b -u -2 -r1.53 -r1.54
--- MFolder.h   8 Sep 2002 19:23:07 -0000       1.53
+++ MFolder.h   8 Oct 2002 21:27:19 -0000       1.54
@@ -146,4 +146,7 @@
    virtual String GetServer() const = 0;
 
+      /// set the server for the folder
+   virtual void SetServer(const String& server) = 0;
+
       /// get the login for the folder:
    virtual String GetLogin() const = 0;
@@ -322,4 +325,15 @@
    // backwards compatibility)
    operator MFolder *() const { return m_folder; }
+
+   // get the pointer we store
+   MFolder *Get() const { return m_folder; }
+
+   // replace the pointer we store with another one, taking ownership of it
+   void Set(MFolder *folder)
+   {
+      SafeDecRef(m_folder);
+
+      m_folder = folder;
+   }
 
    // explicitly test if object is valid



-------------------------------------------------------
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

Reply via email to