mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-07 07:47:30 +09:00
Issue #1258 - Part 1: Import mailnews, ldap, and mork from comm-esr52.9.1
This commit is contained in:
parent
23e0d82436
commit
e400f4130a
1564 changed files with 510348 additions and 0 deletions
85
mailnews/base/src/nsMsgOfflineManager.h
Normal file
85
mailnews/base/src/nsMsgOfflineManager.h
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#ifndef nsMsgOfflineManager_h__
|
||||
#define nsMsgOfflineManager_h__
|
||||
|
||||
#include "nscore.h"
|
||||
#include "nsIMsgOfflineManager.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsIObserver.h"
|
||||
#include "nsWeakReference.h"
|
||||
#include "nsIUrlListener.h"
|
||||
#include "nsIMsgWindow.h"
|
||||
#include "nsIMsgSendLaterListener.h"
|
||||
#include "nsIStringBundle.h"
|
||||
|
||||
class nsMsgOfflineManager
|
||||
: public nsIMsgOfflineManager,
|
||||
public nsIObserver,
|
||||
public nsSupportsWeakReference,
|
||||
public nsIMsgSendLaterListener,
|
||||
public nsIUrlListener
|
||||
{
|
||||
public:
|
||||
|
||||
nsMsgOfflineManager();
|
||||
|
||||
NS_DECL_THREADSAFE_ISUPPORTS
|
||||
|
||||
/* nsIMsgOfflineManager methods */
|
||||
|
||||
NS_DECL_NSIMSGOFFLINEMANAGER
|
||||
NS_DECL_NSIOBSERVER
|
||||
NS_DECL_NSIURLLISTENER
|
||||
NS_DECL_NSIMSGSENDLATERLISTENER
|
||||
|
||||
typedef enum
|
||||
{
|
||||
eStarting = 0,
|
||||
eSynchronizingOfflineImapChanges = 1,
|
||||
eDownloadingNews = 2,
|
||||
eDownloadingMail = 3,
|
||||
eSendingUnsent = 4,
|
||||
eDone = 5,
|
||||
eNoState = 6 // we're not doing anything
|
||||
} offlineManagerState;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
eGoingOnline = 0,
|
||||
eDownloadingForOffline = 1,
|
||||
eNoOp = 2 // no operation in progress
|
||||
} offlineManagerOperation;
|
||||
|
||||
private:
|
||||
virtual ~nsMsgOfflineManager();
|
||||
|
||||
nsresult AdvanceToNextState(nsresult exitStatus);
|
||||
nsresult SynchronizeOfflineImapChanges();
|
||||
nsresult StopRunning(nsresult exitStatus);
|
||||
nsresult SendUnsentMessages();
|
||||
nsresult DownloadOfflineNewsgroups();
|
||||
nsresult DownloadMail();
|
||||
|
||||
nsresult SetOnlineState(bool online);
|
||||
nsresult ShowStatus(const char *statusMsgName);
|
||||
|
||||
bool m_inProgress;
|
||||
bool m_sendUnsentMessages;
|
||||
bool m_downloadNews;
|
||||
bool m_downloadMail;
|
||||
bool m_playbackOfflineImapOps;
|
||||
bool m_goOfflineWhenDone;
|
||||
offlineManagerState m_curState;
|
||||
offlineManagerOperation m_curOperation;
|
||||
nsCOMPtr <nsIMsgWindow> m_window;
|
||||
nsCOMPtr <nsIMsgStatusFeedback> m_statusFeedback;
|
||||
nsCOMPtr<nsIStringBundle> mStringBundle;
|
||||
nsCOMPtr<nsISupports> mOfflineImapSync;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue