blob: 6ca0d7fcb445841db9bd74f49bb1d90679891681 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* -*- 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 profilemigratorbase___h___
#define profilemigratorbase___h___
#include "nsIFile.h"
#include "nsIObserverService.h"
#include "nsITimer.h"
#include "nsIImportGeneric.h"
#include "nsIImportModule.h"
#include "nsIMsgAccount.h"
class nsProfileMigratorBase {
public:
nsProfileMigratorBase();
virtual ~nsProfileMigratorBase();
virtual nsresult ContinueImport() = 0;
protected:
nsresult ImportSettings(nsIImportModule* aImportModule);
nsresult ImportAddressBook(nsIImportModule* aImportModule);
nsresult ImportMailData(nsIImportModule* aImportModule);
nsresult ImportFilters(nsIImportModule* aImportModule);
nsresult FinishCopyingAddressBookData();
nsresult FinishCopyingMailFolders();
nsCOMPtr<nsIObserverService> mObserverService;
nsCOMPtr<nsITimer> mFileIOTimer;
nsCOMPtr<nsIImportGeneric> mGenericImporter;
nsCOMPtr<nsIImportModule> mImportModule;
nsCOMPtr<nsIMsgAccount>
mLocalFolderAccount; // needed for nsIImportSettings::Import
bool mProcessingMailFolders; // we are either asynchronously parsing address
// books or mail folders
};
#endif
|