|
Rabbit Remote Control 0.1.0-bate8
|
The CRecentDatabase class. More...
#include <RecentDatabase.h>


Classes | |
| struct | RecentItem |
Public Member Functions | |
| CRecentDatabase (QObject *parent=nullptr) | |
| int | AddRecent (const RecentItem &item) |
| bool | DeleteRecent (int id) |
| bool | UpdateRecent (const RecentItem &item) |
| QList< RecentItem > | GetRecents (int limit=-1, int offset=0) |
| bool | HasFileContents (const RecentItem &item) |
Public Member Functions inherited from CDatabase | |
| CDatabase (QObject *parent=nullptr) | |
| QSqlDatabase | GetDatabase () const |
| virtual bool | IsOpen () const |
| void | CloseDatabase () |
| Close database. | |
| const CParameterDatabase * | GetParameter () const |
| const QString | GetError () const |
| bool | SetDatabase (const CDatabase *db) |
| Share an existing database. | |
| bool | SetDatabase (const QSqlDatabase db, const CParameterDatabase *pPara) |
| Share an existing database. | |
| bool | OpenDatabase (const CParameterDatabase *pPara=nullptr, const QString &szConnectName=QString()) |
| Open a new database. | |
| bool | OpenMySqlDatabase (const CParameterDatabase *pPara, const QString &szConnectName=QString()) |
| bool | OpenODBCDatabase (const CParameterDatabase *pPara, const QString &szConnectName=QString()) |
| bool | OpenSQLiteDatabase (const CParameterDatabase *pPara, const QString &szConnectionName=QString()) |
| bool | OpenSQLiteDatabase (const QString &szFile, const QString &szConnectionName=QString()) |
| virtual bool | ExportToJsonFile (const QString &szFile) |
| virtual bool | ImportFromJsonFile (const QString &szFile) |
Private Member Functions | |
| bool | OnInitializeDatabase () override |
| Initialize database. | |
| virtual bool | OnInitializeSqliteDatabase () override |
| virtual bool | OnInitializeMySqlDatabase () override |
| virtual bool | ExportToJson (QJsonObject &obj) override |
| virtual bool | ImportFromJson (const QJsonObject &obj) override |
| bool | UpdateRecent (const QString &szFile, const QString &szName, const QString &szDescription) |
Private Attributes | |
| CDatabaseIcon | m_IconDB |
| CDatabaseFile | m_FileDB |
Additional Inherited Members | |
Signals inherited from CDatabase | |
| void | sigChanged () |
Protected Member Functions inherited from CDatabase | |
| void | SetError (const QString &szErr=QString()) |
Protected Attributes inherited from CDatabase | |
| QString | m_szConnectName |
| QString | m_MinVersion |
| const CParameterDatabase * | m_pPara |
The CRecentDatabase class.
Definition at line 15 of file RecentDatabase.h.
|
explicit |
Definition at line 31 of file RecentDatabase.cpp.
|
virtual |
Definition at line 37 of file RecentDatabase.cpp.
| int CRecentDatabase::AddRecent | ( | const RecentItem & | item | ) |
Definition at line 191 of file RecentDatabase.cpp.
| bool CRecentDatabase::DeleteRecent | ( | int | id | ) |
Definition at line 273 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Reimplemented from CDatabase.
Definition at line 338 of file RecentDatabase.cpp.
| QList< CRecentDatabase::RecentItem > CRecentDatabase::GetRecents | ( | int | limit = -1, |
| int | offset = 0 |
||
| ) |
Definition at line 289 of file RecentDatabase.cpp.
| bool CRecentDatabase::HasFileContents | ( | const RecentItem & | item | ) |
Definition at line 333 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Reimplemented from CDatabase.
Definition at line 367 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Initialize database.
Reimplemented from CDatabase.
Definition at line 42 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Reimplemented from CDatabase.
Definition at line 121 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Reimplemented from CDatabase.
Definition at line 55 of file RecentDatabase.cpp.
|
private |
Definition at line 248 of file RecentDatabase.cpp.
| bool CRecentDatabase::UpdateRecent | ( | const RecentItem & | item | ) |
Definition at line 243 of file RecentDatabase.cpp.
|
private |
Definition at line 57 of file RecentDatabase.h.
|
private |
Definition at line 56 of file RecentDatabase.h.