nsOperaProfileMigrator Class Reference

#include <nsOperaProfileMigrator.h>

Inheritance diagram for nsOperaProfileMigrator:
[legend]
Collaboration diagram for nsOperaProfileMigrator:
[legend]

Classes

struct  PrefTransform
 

Public Types

enum  PrefType { STRING, INT, BOOL, COLOR }
 
typedef nsresult(* prefConverter )(void *, nsIPrefBranch *)
 

Public Member Functions

NS_DECL_NSIBROWSERPROFILEMIGRATOR
NS_DECL_NSINAVHISTORYBATCHCALLBACK
NS_DECL_ISUPPORTS 
nsOperaProfileMigrator ()
 
virtual ~nsOperaProfileMigrator ()
 
- Public Member Functions inherited from nsIBrowserProfileMigrator
void migrate (in unsigned short aItems, in nsIProfileStartup aStartup, in wstring aProfile)
 
unsigned short getMigrateData (in wstring aProfile, in boolean aDoingStartup)
 

Static Public Member Functions

static nsresult SetFile (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetCookieBehavior (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetCookieLifetime (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetImageBehavior (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetBool (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetWString (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetInt (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetString (void *aTransform, nsIPrefBranch *aBranch)
 

Protected Member Functions

nsresult CopyPreferences (PRBool aReplace)
 
nsresult ParseColor (nsINIParser &aParser, const char *aSectionName, char **aResult)
 
nsresult CopyUserContentSheet (nsINIParser &aParser)
 
nsresult CopyProxySettings (nsINIParser &aParser, nsIPrefBranch *aBranch)
 
nsresult GetInteger (nsINIParser &aParser, const char *aSectionName, const char *aKeyName, PRInt32 *aResult)
 
nsresult CopyCookies (PRBool aReplace)
 
nsresult CopyHistory (PRBool aReplace)
 
nsresult CopyHistoryBatched (PRBool aReplace)
 
nsresult CopyBookmarks (PRBool aReplace)
 
nsresult CopyBookmarksBatched (PRBool aReplace)
 
void ClearToolbarFolder (nsINavBookmarksService *aBookmarksService, PRInt64 aToolbarFolder)
 
nsresult ParseBookmarksFolder (nsILineInputStream *aStream, PRInt64 aFolder, PRInt64 aToolbar, nsINavBookmarksService *aBMS)
 
void GetOperaProfile (const PRUnichar *aProfile, nsILocalFile **aFile)
 

Additional Inherited Members

- Public Attributes inherited from nsIBrowserProfileMigrator
const unsigned short ALL = 0x0000
 
const unsigned short SETTINGS = 0x0001
 
const unsigned short COOKIES = 0x0002
 
const unsigned short HISTORY = 0x0004
 
const unsigned short FORMDATA = 0x0008
 
const unsigned short PASSWORDS = 0x0010
 
const unsigned short BOOKMARKS = 0x0020
 
const unsigned short OTHERDATA = 0x0040
 
readonly attribute boolean sourceExists
 
readonly attribute boolean sourceHasMultipleProfiles
 
readonly attribute nsISupportsArray sourceProfiles
 
readonly attribute AUTF8String sourceHomePageURL
 

Detailed Description

Definition at line 59 of file nsOperaProfileMigrator.h.

Member Typedef Documentation

typedef nsresult(* nsOperaProfileMigrator::prefConverter)(void *, nsIPrefBranch *)

Definition at line 74 of file nsOperaProfileMigrator.h.

Member Enumeration Documentation

Enumerator
STRING 
INT 
BOOL 
COLOR 

Definition at line 72 of file nsOperaProfileMigrator.h.

Constructor & Destructor Documentation

nsOperaProfileMigrator::nsOperaProfileMigrator ( )

Definition at line 107 of file nsOperaProfileMigrator.cpp.

nsOperaProfileMigrator::~nsOperaProfileMigrator ( )
virtual

Definition at line 112 of file nsOperaProfileMigrator.cpp.

Member Function Documentation

void nsOperaProfileMigrator::ClearToolbarFolder ( nsINavBookmarksService *  aBookmarksService,
PRInt64  aToolbarFolder 
)
protected
nsresult nsOperaProfileMigrator::CopyBookmarks ( PRBool  aReplace)
protected

Migrate bookmarks to Places. This will end up calling CopyBookmarksBatched helper, that provides batch support. Batching allows for better performances and integrity.

Parameters
aReplaceIndicates if we should replace current bookmarks or append to them. When appending we will usually default to bookmarks menu.

Definition at line 1084 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::CopyBookmarksBatched ( PRBool  aReplace)
protected

Definition at line 1106 of file nsOperaProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsOperaProfileMigrator::CopyCookies ( PRBool  aReplace)
protected

Definition at line 616 of file nsOperaProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsOperaProfileMigrator::CopyHistory ( PRBool  aReplace)
protected

Migrate history to Places. This will end up calling CopyHistoryBatched helper, that provides batch support. Batching allows for better performances and integrity.

Parameters
aReplaceIndicates if we should replace current history or append to it.

Definition at line 1000 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::CopyHistoryBatched ( PRBool  aReplace)
protected

Definition at line 1022 of file nsOperaProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsOperaProfileMigrator::CopyPreferences ( PRBool  aReplace)
protected

Definition at line 402 of file nsOperaProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsOperaProfileMigrator::CopyProxySettings ( nsINIParser &  aParser,
nsIPrefBranch aBranch 
)
protected

Definition at line 483 of file nsOperaProfileMigrator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult nsOperaProfileMigrator::CopyUserContentSheet ( nsINIParser &  aParser)
protected

Definition at line 582 of file nsOperaProfileMigrator.cpp.

Here is the caller graph for this function:

nsresult nsOperaProfileMigrator::GetInteger ( nsINIParser &  aParser,
const char *  aSectionName,
const char *  aKeyName,
PRInt32 *  aResult 
)
protected

Definition at line 542 of file nsOperaProfileMigrator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void nsOperaProfileMigrator::GetOperaProfile ( const PRUnichar *  aProfile,
nsILocalFile **  aFile 
)
protected

Definition at line 1438 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::ParseBookmarksFolder ( nsILineInputStream *  aStream,
PRInt64  aFolder,
PRInt64  aToolbar,
nsINavBookmarksService *  aBMS 
)
protected

Definition at line 1340 of file nsOperaProfileMigrator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult nsOperaProfileMigrator::ParseColor ( nsINIParser &  aParser,
const char *  aSectionName,
char **  aResult 
)
protected

Definition at line 560 of file nsOperaProfileMigrator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult nsOperaProfileMigrator::SetBool ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 371 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::SetCookieBehavior ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 349 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::SetCookieLifetime ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 357 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::SetFile ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 340 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::SetImageBehavior ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 364 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::SetInt ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 388 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::SetString ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 395 of file nsOperaProfileMigrator.cpp.

nsresult nsOperaProfileMigrator::SetWString ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 378 of file nsOperaProfileMigrator.cpp.


The documentation for this class was generated from the following files: