enigma2  2.6
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Plugins.Extensions.Browser.BrowserDB.BrowserDB Class Reference

Public Member Functions

def __init__ (self)
 
def getBookmarks (self, needle=None)
 
def setBookmarks (self, bookmarks)
 
def setBookmark (self, bm, cursor=None)
 
def deleteBookmark (self, bm)
 
def getHistory (self, needle=None)
 
def addToHistory (self, hi, cursor=None)
 
def clearHistory (self)
 
def suggsetUrls (self, needle)
 
def addCert (self, cert)
 
def checkCert (self, cert)
 
def getCerts (self)
 
def deleteCert (self, cert)
 
def getCookies (self)
 
def persistCookies (self, cookies)
 
def deleteAllCookies (self)
 
def deleteCookie (self, cookie)
 

Static Public Member Functions

def getInstance ()
 

Static Public Attributes

string TABLE_VERSION = "__version"
 
string TABLE_BM = "bookmarks"
 
string TABLE_BM_GROUPS = "bookmark_groups"
 
string TABLE_HISTORY = "history"
 
string TABLE_CERTS = "certificates"
 
string TABLE_COOKIES = "cookies"
 
int DB_VERSION = 1
 
string FIELD_ID = "id"
 
string FIELD_VERSION_V = "version"
 
string FIELD_BM_GROUP_NAME = "name"
 
string FIELD_BM_GROUP_PARENT = "parent"
 
string FIELD_BM_NAME = "name"
 
string FIELD_BM_URL = "url"
 
string FIELD_BM_GROUPID = "groupid"
 
string FIELD_HIS_TS = "timestamp"
 
string FIELD_HIS_TITLE = "title"
 
string FIELD_HIS_URL = "url"
 
string FIELD_CERT_HOST = "host"
 
string FIELD_CERT_PEM = "pem"
 
string FIELD_COOKIE_KEY = "key"
 
string FIELD_COOKIE_DOMAIN = "domain"
 
string FIELD_COOKIE_PATH = "path"
 
string FIELD_COOKIE_EXPIRES = "expires"
 
string FIELD_COOKIE_RAW = "raw"
 
string SQL_CREATE_VERSION_T = "CREATE TABLE %s (%s INTEGER)" %(TABLE_VERSION, FIELD_VERSION_V)
 
string SQL_CREATE_BM_T = "CREATE TABLE %s (%s INTEGER PRIMARY KEY, %s TEXT, %s TEXT, %s INTEGER DEFAULT -1 NOT NULL)" %(TABLE_BM, FIELD_ID, FIELD_BM_NAME, FIELD_BM_URL, FIELD_BM_GROUPID)
 
string SQL_CREATE_BM_GROUPS_T = "CREATE TABLE %s (%s INTEGER PRIMARY KEY, %s INTEGER DEFAULT 0 NOT NULL, %s TEXT)" %(TABLE_BM_GROUPS, FIELD_ID, FIELD_BM_GROUP_PARENT, FIELD_BM_GROUP_NAME)
 
string SQL_CREATE_HISTORY_T = "CREATE TABLE %s (%s INTEGER PRIMARY KEY, %s REAL, %s TEXT, %s TEXT)" %(TABLE_HISTORY, FIELD_ID, FIELD_HIS_TS, FIELD_HIS_TITLE, FIELD_HIS_URL)
 
string SQL_CREATE_CERT_T = "CREATE TABLE %s (%s INTEGER PRIMARY KEY, %s TEXT, %s TEXT)" %(TABLE_CERTS, FIELD_ID, FIELD_CERT_HOST, FIELD_CERT_PEM)
 
string SQL_CREATE_COOKIE_T
 
string SQL_SET_VERSION = "INSERT INTO " + TABLE_VERSION + " (" + FIELD_VERSION_V + ") values (?)"
 
int CERT_OK = 0
 
int CERT_UNKOWN = 1
 
int CERT_CHANGED = 2
 

Constructor & Destructor Documentation

◆ __init__()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.__init__ (   self)

Member Function Documentation

◆ addCert()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.addCert (   self,
  cert 
)

◆ addToHistory()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.addToHistory (   self,
  hi,
  cursor = None 
)

◆ checkCert()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.checkCert (   self,
  cert 
)

◆ clearHistory()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.clearHistory (   self)

◆ deleteAllCookies()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.deleteAllCookies (   self)

◆ deleteBookmark()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.deleteBookmark (   self,
  bm 
)

◆ deleteCert()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.deleteCert (   self,
  cert 
)

◆ deleteCookie()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.deleteCookie (   self,
  cookie 
)

◆ getBookmarks()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.getBookmarks (   self,
  needle = None 
)

◆ getCerts()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.getCerts (   self)

◆ getCookies()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.getCookies (   self)

◆ getHistory()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.getHistory (   self,
  needle = None 
)

◆ getInstance()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.getInstance ( )
static

◆ persistCookies()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.persistCookies (   self,
  cookies 
)

◆ setBookmark()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.setBookmark (   self,
  bm,
  cursor = None 
)

◆ setBookmarks()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.setBookmarks (   self,
  bookmarks 
)

◆ suggsetUrls()

def Plugins.Extensions.Browser.BrowserDB.BrowserDB.suggsetUrls (   self,
  needle 
)

Member Data Documentation

◆ CERT_CHANGED

int Plugins.Extensions.Browser.BrowserDB.BrowserDB.CERT_CHANGED = 2
static

◆ CERT_OK

int Plugins.Extensions.Browser.BrowserDB.BrowserDB.CERT_OK = 0
static

◆ CERT_UNKOWN

int Plugins.Extensions.Browser.BrowserDB.BrowserDB.CERT_UNKOWN = 1
static

◆ DB_VERSION

int Plugins.Extensions.Browser.BrowserDB.BrowserDB.DB_VERSION = 1
static

◆ FIELD_BM_GROUP_NAME

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_BM_GROUP_NAME = "name"
static

◆ FIELD_BM_GROUP_PARENT

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_BM_GROUP_PARENT = "parent"
static

◆ FIELD_BM_GROUPID

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_BM_GROUPID = "groupid"
static

◆ FIELD_BM_NAME

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_BM_NAME = "name"
static

◆ FIELD_BM_URL

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_BM_URL = "url"
static

◆ FIELD_CERT_HOST

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_CERT_HOST = "host"
static

◆ FIELD_CERT_PEM

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_CERT_PEM = "pem"
static

◆ FIELD_COOKIE_DOMAIN

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_COOKIE_DOMAIN = "domain"
static

◆ FIELD_COOKIE_EXPIRES

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_COOKIE_EXPIRES = "expires"
static

◆ FIELD_COOKIE_KEY

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_COOKIE_KEY = "key"
static

◆ FIELD_COOKIE_PATH

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_COOKIE_PATH = "path"
static

◆ FIELD_COOKIE_RAW

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_COOKIE_RAW = "raw"
static

◆ FIELD_HIS_TITLE

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_HIS_TITLE = "title"
static

◆ FIELD_HIS_TS

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_HIS_TS = "timestamp"
static

◆ FIELD_HIS_URL

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_HIS_URL = "url"
static

◆ FIELD_ID

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_ID = "id"
static

◆ FIELD_VERSION_V

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.FIELD_VERSION_V = "version"
static

◆ SQL_CREATE_BM_GROUPS_T

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.SQL_CREATE_BM_GROUPS_T = "CREATE TABLE %s (%s INTEGER PRIMARY KEY, %s INTEGER DEFAULT 0 NOT NULL, %s TEXT)" %(TABLE_BM_GROUPS, FIELD_ID, FIELD_BM_GROUP_PARENT, FIELD_BM_GROUP_NAME)
static

◆ SQL_CREATE_BM_T

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.SQL_CREATE_BM_T = "CREATE TABLE %s (%s INTEGER PRIMARY KEY, %s TEXT, %s TEXT, %s INTEGER DEFAULT -1 NOT NULL)" %(TABLE_BM, FIELD_ID, FIELD_BM_NAME, FIELD_BM_URL, FIELD_BM_GROUPID)
static

◆ SQL_CREATE_CERT_T

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.SQL_CREATE_CERT_T = "CREATE TABLE %s (%s INTEGER PRIMARY KEY, %s TEXT, %s TEXT)" %(TABLE_CERTS, FIELD_ID, FIELD_CERT_HOST, FIELD_CERT_PEM)
static

◆ SQL_CREATE_COOKIE_T

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.SQL_CREATE_COOKIE_T
static
Initial value:
= "CREATE TABLE %(table)s( %(key)s TEXT, %(domain)s TEXT, %(path)s TEXT, %(raw)s TEXT, %(expires)s REAL, PRIMARY KEY(%(key)s, %(domain)s, %(path)s) )" %{
'table' : TABLE_COOKIES, 'key' : FIELD_COOKIE_KEY, 'domain' : FIELD_COOKIE_DOMAIN, 'path': FIELD_COOKIE_PATH, 'raw' : FIELD_COOKIE_RAW, 'expires' : FIELD_COOKIE_EXPIRES }

◆ SQL_CREATE_HISTORY_T

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.SQL_CREATE_HISTORY_T = "CREATE TABLE %s (%s INTEGER PRIMARY KEY, %s REAL, %s TEXT, %s TEXT)" %(TABLE_HISTORY, FIELD_ID, FIELD_HIS_TS, FIELD_HIS_TITLE, FIELD_HIS_URL)
static

◆ SQL_CREATE_VERSION_T

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.SQL_CREATE_VERSION_T = "CREATE TABLE %s (%s INTEGER)" %(TABLE_VERSION, FIELD_VERSION_V)
static

◆ SQL_SET_VERSION

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.SQL_SET_VERSION = "INSERT INTO " + TABLE_VERSION + " (" + FIELD_VERSION_V + ") values (?)"
static

◆ TABLE_BM

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.TABLE_BM = "bookmarks"
static

◆ TABLE_BM_GROUPS

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.TABLE_BM_GROUPS = "bookmark_groups"
static

◆ TABLE_CERTS

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.TABLE_CERTS = "certificates"
static

◆ TABLE_COOKIES

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.TABLE_COOKIES = "cookies"
static

◆ TABLE_HISTORY

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.TABLE_HISTORY = "history"
static

◆ TABLE_VERSION

string Plugins.Extensions.Browser.BrowserDB.BrowserDB.TABLE_VERSION = "__version"
static

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