From d236f80d21c2444debb11825ac475039309161e6 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Fri, 16 Apr 1999 00:36:52 +0000 Subject: [PATCH] add a few more attributes to nsMsgIncomingServer --- mailnews/base/public/nsIMsgIncomingServer.h | 9 ++++++++- mailnews/base/public/nsIMsgIncomingServer.idl | 6 ++++-- mailnews/base/util/nsMsgIncomingServer.cpp | 4 ++++ mailnews/base/util/nsMsgIncomingServer.h | 9 +++++++++ 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/mailnews/base/public/nsIMsgIncomingServer.h b/mailnews/base/public/nsIMsgIncomingServer.h index 223d9cdd2e3e..198a79898321 100644 --- a/mailnews/base/public/nsIMsgIncomingServer.h +++ b/mailnews/base/public/nsIMsgIncomingServer.h @@ -6,7 +6,6 @@ #define __gen_nsIMsgIncomingServer_h__ #include "nsISupports.h" /* interface nsISupports */ -#include "nsIPref.h" /* interface nsIPref */ #include "nsID.h" /* interface nsID */ #ifdef XPIDL_JS_STUBS @@ -41,10 +40,18 @@ class nsIMsgIncomingServer : public nsISupports { NS_IMETHOD GetUserName(char * *aUserName) = 0; NS_IMETHOD SetUserName(char * aUserName) = 0; + /* attribute boolean rememberPassword; */ + NS_IMETHOD GetRememberPassword(PRBool *aRememberPassword) = 0; + NS_IMETHOD SetRememberPassword(PRBool aRememberPassword) = 0; + /* attribute string password; */ NS_IMETHOD GetPassword(char * *aPassword) = 0; NS_IMETHOD SetPassword(char * aPassword) = 0; + /* attribute boolean downloadOnBiff; */ + NS_IMETHOD GetDownloadOnBiff(PRBool *aDownloadOnBiff) = 0; + NS_IMETHOD SetDownloadOnBiff(PRBool aDownloadOnBiff) = 0; + /* attribute boolean doBiff; */ NS_IMETHOD GetDoBiff(PRBool *aDoBiff) = 0; NS_IMETHOD SetDoBiff(PRBool aDoBiff) = 0; diff --git a/mailnews/base/public/nsIMsgIncomingServer.idl b/mailnews/base/public/nsIMsgIncomingServer.idl index cf973d5f9530..271a15c3c1ef 100644 --- a/mailnews/base/public/nsIMsgIncomingServer.idl +++ b/mailnews/base/public/nsIMsgIncomingServer.idl @@ -17,7 +17,6 @@ */ #include "nsISupports.idl" -#include "nsIPref.idl" /* Interface for incoming mail/news host */ @@ -29,8 +28,11 @@ interface nsIMsgIncomingServer : nsISupports { attribute string prettyName; attribute string hostName; attribute string userName; + attribute boolean rememberPassword; attribute string password; + + attribute boolean downloadOnBiff; attribute boolean doBiff; attribute long biffMinutes; - + }; diff --git a/mailnews/base/util/nsMsgIncomingServer.cpp b/mailnews/base/util/nsMsgIncomingServer.cpp index 4a791a144d2e..e560b7600557 100644 --- a/mailnews/base/util/nsMsgIncomingServer.cpp +++ b/mailnews/base/util/nsMsgIncomingServer.cpp @@ -226,3 +226,7 @@ NS_IMPL_SERVERPREF_STR(nsMsgIncomingServer, UserName, "userName"); NS_IMPL_SERVERPREF_STR(nsMsgIncomingServer, Password, "password"); NS_IMPL_SERVERPREF_BOOL(nsMsgIncomingServer, DoBiff, "check_new_mail"); NS_IMPL_SERVERPREF_INT(nsMsgIncomingServer, BiffMinutes, "check_time"); +NS_IMPL_SERVERPREF_BOOL(nsMsgIncomingServer, RememberPassword, "remember_password"); + +/* what was this called in 4.x? */ +NS_IMPL_SERVERPREF_BOOL(nsMsgIncomingServer, DownloadOnBiff, "download_on_biff"); diff --git a/mailnews/base/util/nsMsgIncomingServer.h b/mailnews/base/util/nsMsgIncomingServer.h index 3c9c1ed80b01..2fa5fd3d3618 100644 --- a/mailnews/base/util/nsMsgIncomingServer.h +++ b/mailnews/base/util/nsMsgIncomingServer.h @@ -17,6 +17,7 @@ */ #include "nsIMsgIncomingServer.h" +#include "nsIPref.h" /* * base class for nsIMsgIncomingServer - derive your class from here @@ -48,6 +49,10 @@ class nsMsgIncomingServer : public nsIMsgIncomingServer { NS_IMETHOD GetUserName(char * *aUserName); NS_IMETHOD SetUserName(char * aUserName); + /* attribute boolean rememberPassword; */ + NS_IMETHOD GetRememberPassword(PRBool *aRememberPassword); + NS_IMETHOD SetRememberPassword(PRBool aRememberPassword); + NS_IMETHOD GetPassword(char * *aPassword); NS_IMETHOD SetPassword(char * aPassword); @@ -59,6 +64,10 @@ class nsMsgIncomingServer : public nsIMsgIncomingServer { NS_IMETHOD GetBiffMinutes(PRInt32 *aBiffMinutes); NS_IMETHOD SetBiffMinutes(PRInt32 aBiffMinutes); + /* attribute boolean downloadOnBiff; */ + NS_IMETHOD GetDownloadOnBiff(PRBool *aDownloadOnBiff); + NS_IMETHOD SetDownloadOnBiff(PRBool aDownloadOnBiff); + private: nsIPref *m_prefs; char *m_serverKey;