Update of /cvsroot/mahogany/M/src/classes
In directory usw-pr-cvs1:/tmp/cvs-serv28820/src/classes
Modified Files:
MFolder.cpp
Log Message:
added Set/GetFileMboxFormat
Index: MFolder.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/classes/MFolder.cpp,v
retrieving revision 1.87
retrieving revision 1.88
diff -b -u -2 -r1.87 -r1.88
--- MFolder.cpp 8 Oct 2002 21:27:30 -0000 1.87
+++ MFolder.cpp 11 Oct 2002 20:03:51 -0000 1.88
@@ -56,4 +56,5 @@
extern const MOption MP_FOLDER_CLASS;
extern const MOption MP_FOLDER_COMMENT;
+extern const MOption MP_FOLDER_FILE_DRIVER;
extern const MOption MP_FOLDER_FILTERS;
extern const MOption MP_FOLDER_ICON;
@@ -107,4 +108,6 @@
m_flags = 0;
+ m_format = FileMbox_Max;
+
m_profile = profile ? profile : mApplication->GetProfile();
m_profile->IncRef();
@@ -147,4 +150,10 @@
{ m_login = login; m_password = password; }
+ virtual void SetFileMboxFormat(FileMailboxFormat format)
+ {
+ m_format = format;
+ }
+ virtual FileMailboxFormat GetFileMboxFormat() const { return m_format; }
+
virtual String GetName() const { return m_fullname.AfterLast('/'); }
virtual wxString GetFullName() const { return m_fullname; }
@@ -198,4 +207,6 @@
int m_flags;
+ FileMailboxFormat m_format;
+
Profile *m_profile;
};
@@ -249,4 +260,7 @@
virtual void SetAuthInfo(const String& login, const String& password);
+ virtual void SetFileMboxFormat(FileMailboxFormat format);
+ virtual FileMailboxFormat GetFileMboxFormat() const;
+
virtual String GetName() const;
virtual wxString GetFullName() const { return m_folderName; }
@@ -753,4 +767,14 @@
m_profile->writeEntry(MP_FOLDER_LOGIN, login);
m_profile->writeEntry(MP_FOLDER_PASSWORD, strutil_encrypt(password));
+}
+
+void MFolderFromProfile::SetFileMboxFormat(FileMailboxFormat format)
+{
+ m_profile->writeEntry(MP_FOLDER_FILE_DRIVER, format);
+}
+
+FileMailboxFormat MFolderFromProfile::GetFileMboxFormat() const
+{
+ return (FileMailboxFormat)(long)READ_CONFIG(m_profile, MP_FOLDER_FILE_DRIVER);
}
-------------------------------------------------------
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