MythTV  master
Functions | Variables
browserdbutil.cpp File Reference
#include <QSqlError>
#include <mythcontext.h>
#include <mythdb.h>
#include <mythdbcheck.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

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"
 
const QString MythBrowserVersionName = "BrowserDBSchemaVer"
 

Function Documentation

◆ UpgradeBrowserDatabaseSchema()

bool UpgradeBrowserDatabaseSchema ( void  )

Definition at line 17 of file browserdbutil.cpp.

Referenced by mythplugin_init().

◆ FindInDB()

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

Definition at line 80 of file browserdbutil.cpp.

Referenced by InsertInDB().

◆ ResetHomepageFromDB()

bool ResetHomepageFromDB ( )

Definition at line 96 of file browserdbutil.cpp.

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

◆ UpdateHomepageInDB()

bool UpdateHomepageInDB ( Bookmark site)

Definition at line 104 of file browserdbutil.cpp.

Referenced by BookmarkManager::slotSetHomepage().

◆ InsertInDB() [1/2]

bool InsertInDB ( Bookmark site)

Definition at line 116 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 124 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 166 of file browserdbutil.cpp.

◆ GetCategoryList()

int GetCategoryList ( QStringList &  list)

Definition at line 182 of file browserdbutil.cpp.

Referenced by BookmarkEditor::slotFindCategory().

◆ GetSiteList()

int GetSiteList ( QList< Bookmark * > &  siteList)

Variable Documentation

◆ currentDatabaseVersion

const QString currentDatabaseVersion = "1003"

Definition at line 14 of file browserdbutil.cpp.

Referenced by UpgradeBrowserDatabaseSchema().

◆ MythBrowserVersionName

const QString MythBrowserVersionName = "BrowserDBSchemaVer"

Definition at line 15 of file browserdbutil.cpp.

Referenced by UpgradeBrowserDatabaseSchema().