nsOperaProfileMigrator.cpp File Reference
#include "nsAppDirectoryServiceDefs.h"
#include "nsBrowserProfileMigratorUtils.h"
#include "nsDirectoryServiceDefs.h"
#include "nsDirectoryServiceUtils.h"
#include "nsDocShellCID.h"
#include "nsINavBookmarksService.h"
#include "nsBrowserCompsCID.h"
#include "nsIBrowserProfileMigrator.h"
#include "nsIBrowserHistory.h"
#include "nsICookieManager2.h"
#include "nsIGlobalHistory.h"
#include "nsIInputStream.h"
#include "nsILineInputStream.h"
#include "nsILocalFile.h"
#include "nsINIParser.h"
#include "nsIObserverService.h"
#include "nsIPermissionManager.h"
#include "nsIPrefLocalizedString.h"
#include "nsIPrefService.h"
#include "nsIProfileMigrator.h"
#include "nsIProperties.h"
#include "nsIRDFContainer.h"
#include "nsIRDFService.h"
#include "nsIServiceManager.h"
#include "nsIStringBundle.h"
#include "nsISupportsPrimitives.h"
#include "nsNetUtil.h"
#include "nsOperaProfileMigrator.h"
#include "nsToolkitCompsCID.h"
Include dependency graph for nsOperaProfileMigrator.cpp:

Go to the source code of this file.

Macros

#define MIGRATION_BUNDLE   "chrome://browser/locale/migration/migration.properties"
 
#define OPERA_COOKIES_FILE_NAME   NS_LITERAL_STRING("cookies4.dat")
 
#define _OPM(type)   nsOperaProfileMigrator::type
 

Enumerations

enum  LineType {
  LineType_FOLDER, LineType_BOOKMARK, LineType_SEPARATOR, LineType_NAME,
  LineType_URL, LineType_KEYWORD, LineType_DESCRIPTION, LineType_ONTOOLBAR,
  LineType_NL, LineType_OTHER
}
 
enum  EntryType { EntryType_BOOKMARK, EntryType_FOLDER }
 

Functions

static LineType GetLineType (nsAString &aBuffer, PRUnichar **aData)
 

Variables

static
nsOperaProfileMigrator::PrefTransform 
gTransforms []
 

Macro Definition Documentation

#define _OPM (   type)    nsOperaProfileMigrator::type

Definition at line 313 of file nsOperaProfileMigrator.cpp.

#define MIGRATION_BUNDLE   "chrome://browser/locale/migration/migration.properties"

Definition at line 71 of file nsOperaProfileMigrator.cpp.

#define OPERA_COOKIES_FILE_NAME   NS_LITERAL_STRING("cookies4.dat")

Definition at line 97 of file nsOperaProfileMigrator.cpp.

Enumeration Type Documentation

enum EntryType
Enumerator
EntryType_BOOKMARK 
EntryType_FOLDER 

Definition at line 1337 of file nsOperaProfileMigrator.cpp.

enum LineType
Enumerator
LineType_FOLDER 
LineType_BOOKMARK 
LineType_SEPARATOR 
LineType_NAME 
LineType_URL 
LineType_KEYWORD 
LineType_DESCRIPTION 
LineType_ONTOOLBAR 
LineType_NL 
LineType_OTHER 

Definition at line 1288 of file nsOperaProfileMigrator.cpp.

Function Documentation

static LineType GetLineType ( nsAString &  aBuffer,
PRUnichar **  aData 
)
static

Definition at line 1299 of file nsOperaProfileMigrator.cpp.

Here is the caller graph for this function:

Variable Documentation

Initial value:
= {
{ "User Prefs", "Download Directory", nsOperaProfileMigrator:: STRING , "browser.download.dir", nsOperaProfileMigrator:: SetFile , PR_FALSE, { -1 } },
{ nsnull, "Enable Cookies", nsOperaProfileMigrator:: INT , "network.cookie.cookieBehavior", nsOperaProfileMigrator:: SetCookieBehavior , PR_FALSE, { -1 } },
{ nsnull, "Accept Cookies Session Only", nsOperaProfileMigrator:: BOOL , "network.cookie.lifetimePolicy", nsOperaProfileMigrator:: SetCookieLifetime , PR_FALSE, { -1 } },
{ nsnull, "Allow script to resize window", nsOperaProfileMigrator:: BOOL , "dom.disable_window_move_resize", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ nsnull, "Allow script to move window", nsOperaProfileMigrator:: BOOL , "dom.disable_window_move_resize", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ nsnull, "Allow script to raise window", nsOperaProfileMigrator:: BOOL , "dom.disable_window_flip", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ nsnull, "Allow script to change status", nsOperaProfileMigrator:: BOOL , "dom.disable_window_status_change", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ nsnull, "Ignore Unrequested Popups", nsOperaProfileMigrator:: BOOL , "dom.disable_open_during_load", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ nsnull, "Load Figures", nsOperaProfileMigrator:: BOOL , "permissions.default.image", nsOperaProfileMigrator:: SetImageBehavior , PR_FALSE, { -1 } },
{ "Visited link", nsnull, nsOperaProfileMigrator:: COLOR , "browser.visited_color", nsOperaProfileMigrator:: SetString , PR_FALSE, { -1 } },
{ "Link", nsnull, nsOperaProfileMigrator:: COLOR , "browser.anchor_color", nsOperaProfileMigrator:: SetString , PR_FALSE, { -1 } },
{ nsnull, "Underline", nsOperaProfileMigrator:: BOOL , "browser.underline_anchors", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ nsnull, "Expiry", nsOperaProfileMigrator:: INT , "browser.history_expire_days", nsOperaProfileMigrator:: SetInt , PR_FALSE, { -1 } },
{ "Security Prefs", "Enable SSL v2", nsOperaProfileMigrator:: BOOL , "security.enable_ssl2", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ nsnull, "Enable SSL v3", nsOperaProfileMigrator:: BOOL , "security.enable_ssl3", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ nsnull, "Enable TLS v1.0", nsOperaProfileMigrator:: BOOL , "security.enable_tls", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } },
{ "Extensions", "Scripting", nsOperaProfileMigrator:: BOOL , "javascript.enabled", nsOperaProfileMigrator:: SetBool , PR_FALSE, { -1 } }
}
static nsresult SetCookieLifetime(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetCookieBehavior(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetInt(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetString(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetFile(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetImageBehavior(void *aTransform, nsIPrefBranch *aBranch)
static nsresult SetBool(void *aTransform, nsIPrefBranch *aBranch)

Definition at line 316 of file nsOperaProfileMigrator.cpp.