MythTV  master
Functions | Variables
browserdbutil.cpp File Reference
#include <QSqlError>
#include <mythcontext.h>
#include <mythdb.h>
#include <mythsorthelper.h>
#include "browserdbutil.h"
#include "bookmarkmanager.h"
Include dependency graph for browserdbutil.cpp:

Go to the source code of this file.

Functions

static bool UpdateDBVersionNumber (const QString &newnumber)
 
static bool performActualUpdate (const QString updates[], const QString &version, QString &dbver)
 
bool UpgradeBrowserDatabaseSchema (void)
 
bool FindInDB (const QString &category, const QString &name)
 
bool ResetHomepageFromDB ()
 
bool UpdateHomepageInDB (Bookmark *site)
 
bool InsertInDB (Bookmark *site)
 
bool InsertInDB (const QString &category, const QString &name, const QString &url, const bool &isHomepage)
 
bool RemoveFromDB (Bookmark *site)
 
bool RemoveFromDB (const QString &category, const QString &name)
 
int GetCategoryList (QStringList &list)
 
int GetSiteList (QList< Bookmark * > &siteList)
 

Variables

const QString currentDatabaseVersion = "1003"
 

Function Documentation

◆ UpdateDBVersionNumber()

static bool UpdateDBVersionNumber ( const QString &  newnumber)
static

Definition at line 15 of file browserdbutil.cpp.

Referenced by performActualUpdate().

◆ performActualUpdate()

static bool performActualUpdate ( const QString  updates[],
const QString &  version,
QString &  dbver 
)
static

Definition at line 30 of file browserdbutil.cpp.

Referenced by UpgradeBrowserDatabaseSchema().

◆ UpgradeBrowserDatabaseSchema()

bool UpgradeBrowserDatabaseSchema ( void  )

Definition at line 66 of file browserdbutil.cpp.

Referenced by mythplugin_init().

◆ FindInDB()

bool FindInDB ( const QString &  category,
const QString &  name 
)

Definition at line 129 of file browserdbutil.cpp.

Referenced by InsertInDB().

◆ ResetHomepageFromDB()

bool ResetHomepageFromDB ( )

Definition at line 145 of file browserdbutil.cpp.

Referenced by BookmarkEditor::Save(), and BookmarkManager::slotSetHomepage().

◆ UpdateHomepageInDB()

bool UpdateHomepageInDB ( Bookmark site)

Definition at line 153 of file browserdbutil.cpp.

Referenced by BookmarkManager::slotSetHomepage().

◆ InsertInDB() [1/2]

bool InsertInDB ( Bookmark site)

Definition at line 165 of file browserdbutil.cpp.

Referenced by InsertInDB(), and BookmarkEditor::Save().

◆ InsertInDB() [2/2]

bool InsertInDB ( const QString &  category,
const QString &  name,
const QString &  url,
const bool isHomepage 
)

Definition at line 173 of file browserdbutil.cpp.

◆ RemoveFromDB() [1/2]

bool RemoveFromDB ( Bookmark site)

◆ RemoveFromDB() [2/2]

bool RemoveFromDB ( const QString &  category,
const QString &  name 
)

Definition at line 215 of file browserdbutil.cpp.

◆ GetCategoryList()

int GetCategoryList ( QStringList &  list)

Definition at line 231 of file browserdbutil.cpp.

Referenced by BookmarkEditor::slotFindCategory().

◆ GetSiteList()

int GetSiteList ( QList< Bookmark * > &  siteList)

Variable Documentation

◆ currentDatabaseVersion

const QString currentDatabaseVersion = "1003"

Definition at line 13 of file browserdbutil.cpp.

Referenced by UpgradeBrowserDatabaseSchema().