|
MythTV master
|
#include <QSqlError>#include <libmythbase/mythcorecontext.h>#include <libmythbase/mythdb.h>#include <libmythbase/mythdbcheck.h>#include <libmythbase/mythlogging.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 FindInDB | ( | const QString & | category, |
| const QString & | name | ||
| ) |
Definition at line 81 of file browserdbutil.cpp.
Referenced by InsertInDB().
| int GetCategoryList | ( | QStringList & | list | ) |
Definition at line 183 of file browserdbutil.cpp.
Referenced by BookmarkEditor::slotFindCategory().
| int GetSiteList | ( | QList< Bookmark * > & | siteList | ) |
Definition at line 203 of file browserdbutil.cpp.
Referenced by BookmarkManager::Create(), BookmarkManager::ReloadBookmarks(), BookmarkManager::slotDoDeleteCurrent(), and BookmarkManager::slotDoDeleteMarked().
Definition at line 117 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 125 of file browserdbutil.cpp.
Definition at line 159 of file browserdbutil.cpp.
Referenced by ImageHandler< DBFS >::HandleDelete(), RemoveFromDB(), BookmarkEditor::Save(), BookmarkManager::slotDoDeleteCurrent(), and BookmarkManager::slotDoDeleteMarked().
| bool RemoveFromDB | ( | const QString & | category, |
| const QString & | name | ||
| ) |
Definition at line 167 of file browserdbutil.cpp.
| bool ResetHomepageFromDB | ( | ) |
Definition at line 97 of file browserdbutil.cpp.
Referenced by BookmarkEditor::Save(), and BookmarkManager::slotSetHomepage().
Definition at line 105 of file browserdbutil.cpp.
Referenced by BookmarkManager::slotSetHomepage().
| bool UpgradeBrowserDatabaseSchema | ( | void | ) |
Definition at line 18 of file browserdbutil.cpp.
Referenced by mythplugin_init().
| const QString currentDatabaseVersion = "1003" |
Definition at line 15 of file browserdbutil.cpp.
Referenced by UpgradeBrowserDatabaseSchema().
| const QString MythBrowserVersionName = "BrowserDBSchemaVer" |
Definition at line 16 of file browserdbutil.cpp.
Referenced by UpgradeBrowserDatabaseSchema().