38 #ifndef operaprofilemigrator___h___
39 #define operaprofilemigrator___h___
42 #include "nsIBinaryInputStream.h"
43 #include "nsIBrowserProfileMigrator.h"
44 #include "nsIObserverService.h"
45 #include "nsISupportsArray.h"
46 #include "nsStringAPI.h"
48 #include "nsINavHistoryService.h"
50 class nsICookieManager2;
51 class nsILineInputStream;
56 class nsINavBookmarksService;
60 public nsINavHistoryBatchCallback
63 NS_DECL_NSIBROWSERPROFILEMIGRATOR
64 NS_DECL_NSINAVHISTORYBATCHCALLBACK
101 nsresult
ParseColor(nsINIParser &aParser,
const char* aSectionName,
105 nsresult
GetInteger(nsINIParser &aParser,
const char* aSectionName,
106 const char* aKeyName, PRInt32* aResult);
131 PRInt64 aToolbarFolder);
135 nsINavBookmarksService* aBMS);
136 #if defined(XP_WIN) || (defined(XP_UNIX) && !defined(XP_MACOSX))
137 nsresult CopySmartKeywords(nsINavBookmarksService* aBMS,
138 nsIStringBundle* aBundle,
139 PRInt64 aParentFolder);
140 #endif // defined(XP_WIN) || (defined(XP_UNIX) && !defined(XP_MACOSX))
145 nsCOMPtr<nsILocalFile> mOperaProfile;
146 nsCOMPtr<nsISupportsArray> mProfiles;
147 nsCOMPtr<nsIObserverService> mObserverService;
198 nsresult
AddCookie(nsICookieManager2* aManager);
201 nsCOMPtr<nsIBinaryInputStream> mStream;
203 nsTArray<char*> mDomainStack;
204 nsTArray<char*> mPathStack;
213 PRUint32 mAppVersion;
214 PRUint32 mFileVersion;
215 PRUint16 mTagTypeLength;
216 PRUint16 mPayloadTypeLength;
219 PRUint8 mCurrHandlingInfo;
static nsresult SetCookieLifetime(void *aTransform, nsIPrefBranch *aBranch)
nsresult CopyCookies(PRBool aReplace)
static nsresult SetWString(void *aTransform, nsIPrefBranch *aBranch)
nsresult(* prefConverter)(void *, nsIPrefBranch *)
nsresult CopyUserContentSheet(nsINIParser &aParser)
nsresult CopyPreferences(PRBool aReplace)
void SynthesizePath(char **aResult)
static nsresult SetCookieBehavior(void *aTransform, nsIPrefBranch *aBranch)
nsresult CopyBookmarks(PRBool aReplace)
void ClearToolbarFolder(nsINavBookmarksService *aBookmarksService, PRInt64 aToolbarFolder)
nsresult CopyHistory(PRBool aReplace)
static nsresult SetInt(void *aTransform, nsIPrefBranch *aBranch)
nsresult ParseBookmarksFolder(nsILineInputStream *aStream, PRInt64 aFolder, PRInt64 aToolbar, nsINavBookmarksService *aBMS)
nsresult AddCookie(nsICookieManager2 *aManager)
static nsresult SetString(void *aTransform, nsIPrefBranch *aBranch)
void GetOperaProfile(const PRUnichar *aProfile, nsILocalFile **aFile)
virtual ~nsOperaProfileMigrator()
nsresult ParseColor(nsINIParser &aParser, const char *aSectionName, char **aResult)
void SynthesizeDomain(char **aResult)
const nsIPermissionManager
static nsresult SetFile(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetImageBehavior(void *aTransform, nsIPrefBranch *aBranch)
virtual ~nsOperaCookieMigrator()
nsresult AddCookieOverride(nsIPermissionManager *aManager)
nsresult GetInteger(nsINIParser &aParser, const char *aSectionName, const char *aKeyName, PRInt32 *aResult)
nsresult CopyHistoryBatched(PRBool aReplace)
nsresult CopyProxySettings(nsINIParser &aParser, nsIPrefBranch *aBranch)
static nsresult SetBool(void *aTransform, nsIPrefBranch *aBranch)
nsresult CopyBookmarksBatched(PRBool aReplace)
NS_DECL_NSIBROWSERPROFILEMIGRATOR NS_DECL_NSINAVHISTORYBATCHCALLBACK NS_DECL_ISUPPORTS nsOperaProfileMigrator()