Bug 1787679 - Remove some unused members from pop interfaces. r=rnons
Differential Revision: https://phabricator.services.mozilla.com/D155804
This commit is contained in:
Родитель
ced1c9d38f
Коммит
8643b6d0d9
|
@ -19,11 +19,9 @@ interface nsIPop3IncomingServer : nsISupports {
|
||||||
attribute unsigned long pop3CapabilityFlags;
|
attribute unsigned long pop3CapabilityFlags;
|
||||||
attribute boolean deleteByAgeFromServer;
|
attribute boolean deleteByAgeFromServer;
|
||||||
attribute long numDaysToLeaveOnServer;
|
attribute long numDaysToLeaveOnServer;
|
||||||
attribute nsIPop3Protocol runningProtocol;
|
|
||||||
// client adds uidls to mark one by one, then calls markMessages
|
// client adds uidls to mark one by one, then calls markMessages
|
||||||
void addUidlToMark(in string aUidl, in int32_t newStatus);
|
void addUidlToMark(in string aUidl, in int32_t newStatus);
|
||||||
void markMessages();
|
void markMessages();
|
||||||
attribute boolean authenticated;
|
|
||||||
/* account to which this server defers storage, for global inbox */
|
/* account to which this server defers storage, for global inbox */
|
||||||
attribute ACString deferredToAccount;
|
attribute ACString deferredToAccount;
|
||||||
// whether get new mail in deferredToAccount gets
|
// whether get new mail in deferredToAccount gets
|
||||||
|
|
|
@ -12,8 +12,6 @@ interface nsIURI;
|
||||||
[scriptable, uuid(ceabfc6b-f139-4c25-890f-efb7c3069d40)]
|
[scriptable, uuid(ceabfc6b-f139-4c25-890f-efb7c3069d40)]
|
||||||
interface nsIPop3Sink : nsISupports {
|
interface nsIPop3Sink : nsISupports {
|
||||||
|
|
||||||
attribute boolean userAuthenticated;
|
|
||||||
attribute AUTF8String mailAccountURL;
|
|
||||||
attribute boolean buildMessageUri;
|
attribute boolean buildMessageUri;
|
||||||
attribute AUTF8String messageUri;
|
attribute AUTF8String messageUri;
|
||||||
attribute AUTF8String baseMessageUri;
|
attribute AUTF8String baseMessageUri;
|
||||||
|
@ -26,14 +24,10 @@ interface nsIPop3Sink : nsISupports {
|
||||||
void abortMailDelivery(in nsIPop3Protocol protocol);
|
void abortMailDelivery(in nsIPop3Protocol protocol);
|
||||||
|
|
||||||
void incorporateBegin(in string uidlString, in unsigned long flags);
|
void incorporateBegin(in string uidlString, in unsigned long flags);
|
||||||
|
|
||||||
void incorporateWrite(in string block, in long length);
|
void incorporateWrite(in string block, in long length);
|
||||||
|
|
||||||
void incorporateComplete(in nsIMsgWindow aMsgWindow, in int32_t aSize);
|
void incorporateComplete(in nsIMsgWindow aMsgWindow, in int32_t aSize);
|
||||||
void incorporateAbort(in boolean uidlDownload);
|
void incorporateAbort(in boolean uidlDownload);
|
||||||
|
|
||||||
void biffGetNewMail();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tell the pop3sink how many messages we're going to download.
|
* Tell the pop3sink how many messages we're going to download.
|
||||||
*
|
*
|
||||||
|
@ -43,8 +37,6 @@ interface nsIPop3Sink : nsISupports {
|
||||||
|
|
||||||
void setBiffStateAndUpdateFE(in unsigned long biffState, in long numNewMessages, in boolean notify);
|
void setBiffStateAndUpdateFE(in unsigned long biffState, in long numNewMessages, in boolean notify);
|
||||||
|
|
||||||
void setSenderAuthedFlag(in boolean authed);
|
|
||||||
|
|
||||||
attribute nsIPop3IncomingServer popServer;
|
attribute nsIPop3IncomingServer popServer;
|
||||||
attribute nsIMsgFolder folder;
|
attribute nsIMsgFolder folder;
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,7 +45,6 @@ mozilla::LazyLogModule POP3LOGMODULE("POP3");
|
||||||
NS_IMPL_ISUPPORTS(nsPop3Sink, nsIPop3Sink)
|
NS_IMPL_ISUPPORTS(nsPop3Sink, nsIPop3Sink)
|
||||||
|
|
||||||
nsPop3Sink::nsPop3Sink() {
|
nsPop3Sink::nsPop3Sink() {
|
||||||
m_authed = false;
|
|
||||||
m_biffState = 0;
|
m_biffState = 0;
|
||||||
m_numNewMessages = 0;
|
m_numNewMessages = 0;
|
||||||
m_numNewMessagesInFolder = 0;
|
m_numNewMessagesInFolder = 0;
|
||||||
|
@ -62,31 +61,6 @@ nsPop3Sink::~nsPop3Sink() {
|
||||||
ReleaseFolderLock();
|
ReleaseFolderLock();
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult nsPop3Sink::SetUserAuthenticated(bool authed) {
|
|
||||||
m_authed = authed;
|
|
||||||
m_popServer->SetAuthenticated(authed);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
nsresult nsPop3Sink::GetUserAuthenticated(bool* authed) {
|
|
||||||
return m_popServer->GetAuthenticated(authed);
|
|
||||||
}
|
|
||||||
|
|
||||||
nsresult nsPop3Sink::SetSenderAuthedFlag(bool authed) {
|
|
||||||
m_authed = authed;
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
nsresult nsPop3Sink::SetMailAccountURL(const nsACString& urlString) {
|
|
||||||
m_accountUrl.Assign(urlString);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
nsresult nsPop3Sink::GetMailAccountURL(nsACString& urlString) {
|
|
||||||
urlString.Assign(m_accountUrl);
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
partialRecord::partialRecord() : m_msgDBHdr(nullptr) {}
|
partialRecord::partialRecord() : m_msgDBHdr(nullptr) {}
|
||||||
|
|
||||||
partialRecord::~partialRecord() {}
|
partialRecord::~partialRecord() {}
|
||||||
|
@ -673,13 +647,6 @@ nsPop3Sink::IncorporateAbort(bool uidlDownload) {
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult nsPop3Sink::BiffGetNewMail() {
|
|
||||||
#ifdef DEBUG
|
|
||||||
printf("Biff get new mail.\n");
|
|
||||||
#endif
|
|
||||||
return NS_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
nsresult nsPop3Sink::SetBiffStateAndUpdateFE(uint32_t aBiffState,
|
nsresult nsPop3Sink::SetBiffStateAndUpdateFE(uint32_t aBiffState,
|
||||||
int32_t numNewMessages,
|
int32_t numNewMessages,
|
||||||
bool notify) {
|
bool notify) {
|
||||||
|
|
|
@ -44,8 +44,6 @@ class nsPop3Sink : public nsIPop3Sink {
|
||||||
nsresult WriteLineToMailbox(const nsACString& buffer);
|
nsresult WriteLineToMailbox(const nsACString& buffer);
|
||||||
nsresult ReleaseFolderLock();
|
nsresult ReleaseFolderLock();
|
||||||
|
|
||||||
bool m_authed;
|
|
||||||
nsCString m_accountUrl;
|
|
||||||
uint32_t m_biffState;
|
uint32_t m_biffState;
|
||||||
int32_t m_numNewMessages;
|
int32_t m_numNewMessages;
|
||||||
int32_t m_numNewMessagesInFolder;
|
int32_t m_numNewMessagesInFolder;
|
||||||
|
|
|
@ -75,11 +75,7 @@ function checkBusy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the server hasn't quite finished, just delay a little longer.
|
// If the server hasn't quite finished, just delay a little longer.
|
||||||
if (
|
if (incomingServer.serverBusy) {
|
||||||
incomingServer.serverBusy ||
|
|
||||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
|
||||||
incomingServer.runningProtocol)
|
|
||||||
) {
|
|
||||||
do_timeout(20, checkBusy);
|
do_timeout(20, checkBusy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -117,11 +117,7 @@ function checkBusy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the server hasn't quite finished, just delay a little longer.
|
// If the server hasn't quite finished, just delay a little longer.
|
||||||
if (
|
if (incomingServer.serverBusy) {
|
||||||
incomingServer.serverBusy ||
|
|
||||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
|
||||||
incomingServer.runningProtocol)
|
|
||||||
) {
|
|
||||||
do_timeout(20, checkBusy);
|
do_timeout(20, checkBusy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,11 +106,7 @@ function checkBusy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the server hasn't quite finished, just delay a little longer.
|
// If the server hasn't quite finished, just delay a little longer.
|
||||||
if (
|
if (incomingServer.serverBusy) {
|
||||||
incomingServer.serverBusy ||
|
|
||||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
|
||||||
incomingServer.runningProtocol)
|
|
||||||
) {
|
|
||||||
do_timeout(20, checkBusy);
|
do_timeout(20, checkBusy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,11 +81,7 @@ function checkBusy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the server hasn't quite finished, just delay a little longer.
|
// If the server hasn't quite finished, just delay a little longer.
|
||||||
if (
|
if (incomingServer.serverBusy) {
|
||||||
incomingServer.serverBusy ||
|
|
||||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
|
||||||
incomingServer.runningProtocol)
|
|
||||||
) {
|
|
||||||
do_timeout(20, checkBusy);
|
do_timeout(20, checkBusy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,11 +76,7 @@ function checkBusy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the server hasn't quite finished, just delay a little longer.
|
// If the server hasn't quite finished, just delay a little longer.
|
||||||
if (
|
if (incomingServer.serverBusy) {
|
||||||
incomingServer.serverBusy ||
|
|
||||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
|
||||||
incomingServer.runningProtocol)
|
|
||||||
) {
|
|
||||||
do_timeout(20, checkBusy);
|
do_timeout(20, checkBusy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,11 +78,7 @@ function checkBusy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the server hasn't quite finished, just delay a little longer.
|
// If the server hasn't quite finished, just delay a little longer.
|
||||||
if (
|
if (incomingServer.serverBusy) {
|
||||||
incomingServer.serverBusy ||
|
|
||||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
|
||||||
incomingServer.runningProtocol)
|
|
||||||
) {
|
|
||||||
do_timeout(20, checkBusy);
|
do_timeout(20, checkBusy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,11 +42,7 @@ var urlListener = {
|
||||||
|
|
||||||
function checkBusy() {
|
function checkBusy() {
|
||||||
// If the server hasn't quite finished, just delay a little longer.
|
// If the server hasn't quite finished, just delay a little longer.
|
||||||
if (
|
if (incomingServer.serverBusy) {
|
||||||
incomingServer.serverBusy ||
|
|
||||||
(incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
|
||||||
incomingServer.runningProtocol)
|
|
||||||
) {
|
|
||||||
do_timeout(20, checkBusy);
|
do_timeout(20, checkBusy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,11 +176,7 @@ POP3Pump.prototype._checkBusy = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the server hasn't quite finished, just delay a little longer.
|
// If the server hasn't quite finished, just delay a little longer.
|
||||||
if (
|
if (this._incomingServer.serverBusy) {
|
||||||
this._incomingServer.serverBusy ||
|
|
||||||
(this._incomingServer instanceof Ci.nsIPop3IncomingServer &&
|
|
||||||
this._incomingServer.runningProtocol)
|
|
||||||
) {
|
|
||||||
do_timeout(20, _checkPumpBusy);
|
do_timeout(20, _checkPumpBusy);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче