#include "nsIPrefBranch.h"
#include "nsIFile.h"
#include "nsStringAPI.h"
#include "nsCOMPtr.h"
Go to the source code of this file.
|
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) |
|
#define BATCH_ACTION_BOOKMARKS 2 |
#define BATCH_ACTION_BOOKMARKS_REPLACE 3 |
#define BATCH_ACTION_HISTORY 0 |
#define BATCH_ACTION_HISTORY_REPLACE 1 |
#define COPY_DATA |
( |
|
func, |
|
|
|
replace, |
|
|
|
itemIndex |
|
) |
| |
Value:if (NS_SUCCEEDED(rv) && (aItems & itemIndex || !aItems)) { \
nsAutoString index; \
index.AppendInt(itemIndex);
\
}
#define NOTIFY_OBSERVERS(message, item)
#define MIGRATION_ITEMBEFOREMIGRATE
#define MIGRATION_ITEMAFTERMIGRATE
Definition at line 49 of file nsBrowserProfileMigratorUtils.h.
#define MIGRATION_ENDED "Migration:Ended" |
#define MIGRATION_ITEMAFTERMIGRATE "Migration:ItemAfterMigrate" |
#define MIGRATION_ITEMBEFOREMIGRATE "Migration:ItemBeforeMigrate" |
#define MIGRATION_STARTED "Migration:Started" |
#define NC_URI |
( |
|
property | ) |
NS_LITERAL_CSTRING("http://home.netscape.com/NC-rdf#"#property) |
#define NOTIFY_OBSERVERS |
( |
|
message, |
|
|
|
item |
|
) |
| mObserverService->NotifyObservers(nsnull, message, item) |
nsresult AnnotatePersonalToolbarFolder |
( |
nsIFile * |
aSourceBookmarksFile, |
|
|
nsIFile * |
aTargetBookmarksFile, |
|
|
const char * |
aToolbarFolderName |
|
) |
| |
void GetMigrateDataFromArray |
( |
MigrationData * |
aDataArray, |
|
|
PRInt32 |
aDataArrayLength, |
|
|
PRBool |
aReplace, |
|
|
nsIFile * |
aSourceProfile, |
|
|
PRUint16 * |
aResult |
|
) |
| |
void GetProfilePath |
( |
nsIProfileStartup * |
aStartup, |
|
|
nsCOMPtr< nsIFile > & |
aProfileDir |
|
) |
| |
nsresult ImportBookmarksHTML |
( |
nsIFile * |
aBookmarksFile, |
|
|
PRBool |
aImportIntoRoot, |
|
|
PRBool |
aOverwriteDefaults, |
|
|
const PRUnichar * |
aImportSourceNameKey |
|
) |
| |
nsresult InitializeBookmarks |
( |
nsIFile * |
aTargetProfile | ) |
|
void ParseOverrideServers |
( |
const nsAString & |
aServers, |
|
|
nsIPrefBranch * |
aBranch |
|
) |
| |
void SetProxyPref |
( |
const nsAString & |
aHostPort, |
|
|
const char * |
aPref, |
|
|
const char * |
aPortPref, |
|
|
nsIPrefBranch * |
aPrefs |
|
) |
| |
void SetUnicharPref |
( |
const char * |
aPref, |
|
|
const nsAString & |
aValue, |
|
|
nsIPrefBranch * |
aPrefs |
|
) |
| |