MythTV
master
|
#include <QSqlError>
#include <libmyth/mythcontext.h>
#include <libmythbase/mythdb.h>
#include <libmythbase/mythdbcheck.h>
#include <libmythbase/mythsorthelper.h>
#include "bookmarkmanager.h"
#include "browserdbutil.h"
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" |
bool UpgradeBrowserDatabaseSchema | ( | void | ) |
Definition at line 17 of file browserdbutil.cpp.
Referenced by mythplugin_init().
bool FindInDB | ( | const QString & | category, |
const QString & | name | ||
) |
Definition at line 80 of file browserdbutil.cpp.
Referenced by InsertInDB().
bool ResetHomepageFromDB | ( | ) |
Definition at line 96 of file browserdbutil.cpp.
Referenced by BookmarkEditor::Save(), and BookmarkManager::slotSetHomepage().
Definition at line 104 of file browserdbutil.cpp.
Referenced by BookmarkManager::slotSetHomepage().
Definition at line 116 of file browserdbutil.cpp.
Referenced by InsertInDB(), and BookmarkEditor::Save().
bool InsertInDB | ( | const QString & | category, |
const QString & | name, | ||
const QString & | url, | ||
const bool | isHomepage | ||
) |
Definition at line 124 of file browserdbutil.cpp.
Definition at line 158 of file browserdbutil.cpp.
Referenced by ImageHandler< ImageDbSg >::HandleDelete(), RemoveFromDB(), BookmarkEditor::Save(), BookmarkManager::slotDoDeleteCurrent(), and BookmarkManager::slotDoDeleteMarked().
bool RemoveFromDB | ( | const QString & | category, |
const QString & | name | ||
) |
Definition at line 166 of file browserdbutil.cpp.
int GetCategoryList | ( | QStringList & | list | ) |
Definition at line 182 of file browserdbutil.cpp.
Referenced by BookmarkEditor::slotFindCategory().
int GetSiteList | ( | QList< Bookmark * > & | siteList | ) |
Definition at line 202 of file browserdbutil.cpp.
Referenced by BookmarkManager::Create(), BookmarkManager::ReloadBookmarks(), BookmarkManager::slotDoDeleteCurrent(), and BookmarkManager::slotDoDeleteMarked().
const QString currentDatabaseVersion = "1003" |
Definition at line 14 of file browserdbutil.cpp.
Referenced by UpgradeBrowserDatabaseSchema().
const QString MythBrowserVersionName = "BrowserDBSchemaVer" |
Definition at line 15 of file browserdbutil.cpp.
Referenced by UpgradeBrowserDatabaseSchema().