зеркало из https://github.com/mozilla/gecko-dev.git
add a few more attributes to nsMsgIncomingServer
This commit is contained in:
Родитель
d0a1771955
Коммит
d236f80d21
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
||||
};
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче