nsBrowserProfileMigratorUtils.h File Reference
#include "nsIPrefBranch.h"
#include "nsIFile.h"
#include "nsStringAPI.h"
#include "nsCOMPtr.h"
Include dependency graph for nsBrowserProfileMigratorUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MigrationData
 

Macros

#define MIGRATION_ITEMBEFOREMIGRATE   "Migration:ItemBeforeMigrate"
 
#define MIGRATION_ITEMAFTERMIGRATE   "Migration:ItemAfterMigrate"
 
#define MIGRATION_STARTED   "Migration:Started"
 
#define MIGRATION_ENDED   "Migration:Ended"
 
#define NOTIFY_OBSERVERS(message, item)   mObserverService->NotifyObservers(nsnull, message, item)
 
#define COPY_DATA(func, replace, itemIndex)
 
#define NC_URI(property)   NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#"#property)
 
#define BATCH_ACTION_HISTORY   0
 
#define BATCH_ACTION_HISTORY_REPLACE   1
 
#define BATCH_ACTION_BOOKMARKS   2
 
#define BATCH_ACTION_BOOKMARKS_REPLACE   3
 

Functions

void SetUnicharPref (const char *aPref, const nsAString &aValue, nsIPrefBranch *aPrefs)
 
void ParseOverrideServers (const nsAString &aServers, nsIPrefBranch *aBranch)
 
void SetProxyPref (const nsAString &aHostPort, const char *aPref, const char *aPortPref, nsIPrefBranch *aPrefs)
 
void GetMigrateDataFromArray (MigrationData *aDataArray, PRInt32 aDataArrayLength, PRBool aReplace, nsIFile *aSourceProfile, PRUint16 *aResult)
 
void GetProfilePath (nsIProfileStartup *aStartup, nsCOMPtr< nsIFile > &aProfileDir)
 
nsresult AnnotatePersonalToolbarFolder (nsIFile *aSourceBookmarksFile, nsIFile *aTargetBookmarksFile, const char *aToolbarFolderName)
 
nsresult ImportBookmarksHTML (nsIFile *aBookmarksFile, PRBool aImportIntoRoot, PRBool aOverwriteDefaults, const PRUnichar *aImportSourceNameKey)
 
nsresult InitializeBookmarks (nsIFile *aTargetProfile)
 

Macro Definition Documentation

#define BATCH_ACTION_BOOKMARKS   2

Definition at line 63 of file nsBrowserProfileMigratorUtils.h.

#define BATCH_ACTION_BOOKMARKS_REPLACE   3

Definition at line 64 of file nsBrowserProfileMigratorUtils.h.

#define BATCH_ACTION_HISTORY   0

Definition at line 61 of file nsBrowserProfileMigratorUtils.h.

#define BATCH_ACTION_HISTORY_REPLACE   1

Definition at line 62 of file nsBrowserProfileMigratorUtils.h.

#define COPY_DATA (   func,
  replace,
  itemIndex 
)
Value:
if (NS_SUCCEEDED(rv) && (aItems & itemIndex || !aItems)) { \
nsAutoString index; \
index.AppendInt(itemIndex); \
rv = func(replace); \
}
#define NOTIFY_OBSERVERS(message, item)
#define MIGRATION_ITEMBEFOREMIGRATE
#define MIGRATION_ITEMAFTERMIGRATE

Definition at line 49 of file nsBrowserProfileMigratorUtils.h.

#define MIGRATION_ENDED   "Migration:Ended"

Definition at line 44 of file nsBrowserProfileMigratorUtils.h.

#define MIGRATION_ITEMAFTERMIGRATE   "Migration:ItemAfterMigrate"

Definition at line 42 of file nsBrowserProfileMigratorUtils.h.

#define MIGRATION_ITEMBEFOREMIGRATE   "Migration:ItemBeforeMigrate"

Definition at line 41 of file nsBrowserProfileMigratorUtils.h.

#define MIGRATION_STARTED   "Migration:Started"

Definition at line 43 of file nsBrowserProfileMigratorUtils.h.

#define NC_URI (   property)    NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#"#property)

Definition at line 58 of file nsBrowserProfileMigratorUtils.h.

#define NOTIFY_OBSERVERS (   message,
  item 
)    mObserverService->NotifyObservers(nsnull, message, item)

Definition at line 46 of file nsBrowserProfileMigratorUtils.h.

Function Documentation

nsresult AnnotatePersonalToolbarFolder ( nsIFile *  aSourceBookmarksFile,
nsIFile *  aTargetBookmarksFile,
const char *  aToolbarFolderName 
)

Definition at line 170 of file nsBrowserProfileMigratorUtils.cpp.

Here is the caller graph for this function:

void GetMigrateDataFromArray ( MigrationData aDataArray,
PRInt32  aDataArrayLength,
PRBool  aReplace,
nsIFile *  aSourceProfile,
PRUint16 *  aResult 
)

Definition at line 129 of file nsBrowserProfileMigratorUtils.cpp.

void GetProfilePath ( nsIProfileStartup *  aStartup,
nsCOMPtr< nsIFile > &  aProfileDir 
)

Definition at line 154 of file nsBrowserProfileMigratorUtils.cpp.

Here is the caller graph for this function:

nsresult ImportBookmarksHTML ( nsIFile *  aBookmarksFile,
PRBool  aImportIntoRoot,
PRBool  aOverwriteDefaults,
const PRUnichar *  aImportSourceNameKey 
)

Definition at line 221 of file nsBrowserProfileMigratorUtils.cpp.

Here is the caller graph for this function:

nsresult InitializeBookmarks ( nsIFile *  aTargetProfile)

Definition at line 280 of file nsBrowserProfileMigratorUtils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ParseOverrideServers ( const nsAString &  aServers,
nsIPrefBranch aBranch 
)

Definition at line 107 of file nsBrowserProfileMigratorUtils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SetProxyPref ( const nsAString &  aHostPort,
const char *  aPref,
const char *  aPortPref,
nsIPrefBranch aPrefs 
)

Definition at line 76 of file nsBrowserProfileMigratorUtils.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void SetUnicharPref ( const char *  aPref,
const nsAString &  aValue,
nsIPrefBranch aPrefs 
)

Definition at line 64 of file nsBrowserProfileMigratorUtils.cpp.

Here is the caller graph for this function: