nsSafariProfileMigrator Class Reference

#include <nsSafariProfileMigrator.h>

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

Classes

struct  PrefTransform
 

Public Types

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

Public Member Functions

NS_DECL_NSIBROWSERPROFILEMIGRATOR
NS_DECL_NSINAVHISTORYBATCHCALLBACK
NS_DECL_ISUPPORTS 
nsSafariProfileMigrator ()
 
virtual ~nsSafariProfileMigrator ()
 
- 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 SetBool (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetBoolInverted (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetString (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetInt (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetDefaultEncoding (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetDownloadFolder (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetDownloadHandlers (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetDownloadRetention (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetDisplayImages (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetFontName (void *aTransform, nsIPrefBranch *aBranch)
 
static nsresult SetFontSize (void *aTransform, nsIPrefBranch *aBranch)
 
static void CleanResource (nsIRDFDataSource *aDataSource, nsIRDFResource *aResource)
 

Protected Member Functions

nsresult CopyPreferences (PRBool aReplace)
 
nsresult CopyCookies (PRBool aReplace)
 
nsresult CopyHistory (PRBool aReplace)
 
nsresult CopyHistoryBatched (PRBool aReplace)
 
nsresult CopyBookmarks (PRBool aReplace)
 
nsresult CopyBookmarksBatched (PRBool aReplace)
 
nsresult ParseBookmarksFolder (CFArrayRef aChildren, PRInt64 aParentFolder, nsINavBookmarksService *aBookmarksService, PRBool aIsAtRootLevel)
 
nsresult CopyFormData (PRBool aReplace)
 
nsresult CopyOtherData (PRBool aReplace)
 
nsresult ProfileHasContentStyleSheet (PRBool *outExists)
 
nsresult GetSafariUserStyleSheet (nsILocalFile **aResult)
 

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 52 of file nsSafariProfileMigrator.h.

Member Typedef Documentation

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

Definition at line 65 of file nsSafariProfileMigrator.h.

Member Enumeration Documentation

Enumerator
STRING 
INT 
BOOL 

Definition at line 63 of file nsSafariProfileMigrator.h.

Constructor & Destructor Documentation

nsSafariProfileMigrator::nsSafariProfileMigrator ( )

Definition at line 85 of file nsSafariProfileMigrator.cpp.

nsSafariProfileMigrator::~nsSafariProfileMigrator ( )
virtual

Definition at line 90 of file nsSafariProfileMigrator.cpp.

Member Function Documentation

void nsSafariProfileMigrator::CleanResource ( nsIRDFDataSource *  aDataSource,
nsIRDFResource *  aResource 
)
static

Definition at line 576 of file nsSafariProfileMigrator.cpp.

Here is the caller graph for this function:

nsresult nsSafariProfileMigrator::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 919 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::CopyBookmarksBatched ( PRBool  aReplace)
protected

Definition at line 941 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsSafariProfileMigrator::CopyCookies ( PRBool  aReplace)
protected

Definition at line 765 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsSafariProfileMigrator::CopyFormData ( PRBool  aReplace)
protected

Definition at line 1134 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsSafariProfileMigrator::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 841 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::CopyHistoryBatched ( PRBool  aReplace)
protected

Definition at line 863 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsSafariProfileMigrator::CopyOtherData ( PRBool  aReplace)
protected

Definition at line 1240 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsSafariProfileMigrator::CopyPreferences ( PRBool  aReplace)
protected

Definition at line 666 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsSafariProfileMigrator::GetSafariUserStyleSheet ( nsILocalFile **  aResult)
protected

Definition at line 1197 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult nsSafariProfileMigrator::ParseBookmarksFolder ( CFArrayRef  aChildren,
PRInt64  aParentFolder,
nsINavBookmarksService *  aBookmarksService,
PRBool  aIsAtRootLevel 
)
protected

Definition at line 1028 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult nsSafariProfileMigrator::ProfileHasContentStyleSheet ( PRBool *  outExists)
protected

Definition at line 1172 of file nsSafariProfileMigrator.cpp.

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

Definition at line 362 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::SetBoolInverted ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 369 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::SetDefaultEncoding ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 445 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::SetDisplayImages ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 621 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::SetDownloadFolder ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 478 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::SetDownloadHandlers ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 505 of file nsSafariProfileMigrator.cpp.

Here is the call graph for this function:

nsresult nsSafariProfileMigrator::SetDownloadRetention ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 606 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::SetFontName ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 634 of file nsSafariProfileMigrator.cpp.

nsresult nsSafariProfileMigrator::SetFontSize ( void *  aTransform,
nsIPrefBranch aBranch 
)
static

Definition at line 650 of file nsSafariProfileMigrator.cpp.

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

Definition at line 383 of file nsSafariProfileMigrator.cpp.

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

Definition at line 376 of file nsSafariProfileMigrator.cpp.


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