|
Rabbit Remote Control 0.1.0-bate6
|


Classes | |
| struct | RecentItem |
Public Member Functions | |
| CRecentDatabase (QObject *parent=nullptr) | |
| int | AddRecent (const RecentItem &item) |
| bool | DeleteRecent (int id) |
| bool | UpdateRecent (const QString &szFile, const QString &szName, const QString &szDescription) |
| QList< RecentItem > | GetRecents (int limit=-1, int offset=0) |
Public Member Functions inherited from CDatabase | |
| CDatabase (QObject *parent=nullptr) | |
| void | SetDatabase (QSqlDatabase db, CParameterDatabase *pPara=nullptr) |
| QSqlDatabase | GetDatabase () const |
| virtual bool | OpenDatabase (CParameterDatabase *pPara=nullptr) |
| OpenDatabase. | |
| virtual bool | OpenMySqlDatabase (CParameterDatabase *pPara) |
| virtual bool | OpenODBCDatabase (CParameterDatabase *pPara) |
| virtual bool | OpenSQLiteDatabase (const QString &connectionName=QString(), const QString &dbPath=QString()) |
| virtual bool | IsOpen () const |
| virtual void | CloseDatabase () |
| virtual bool | ExportToJsonFile (const QString &szFile) |
| virtual bool | ImportFromJsonFile (const QString &szFile) |
Private Member Functions | |
| bool | OnInitializeDatabase () override |
| virtual bool | OnInitializeSqliteDatabase () override |
| virtual bool | OnInitializeMySqlDatabase () override |
| virtual bool | ExportToJson (QJsonObject &obj) override |
| virtual bool | ImportFromJson (const QJsonObject &obj) override |
Private Attributes | |
| CDatabaseIcon | m_IconDB |
| CDatabaseFile | m_FileDB |
Additional Inherited Members | |
Signals inherited from CDatabase | |
| void | sigChanged () |
Protected Attributes inherited from CDatabase | |
| QString | m_szConnectName |
| QString | m_MinVersion |
| CParameterDatabase * | m_pPara |
Definition at line 8 of file RecentDatabase.h.
| CRecentDatabase::~CRecentDatabase | ( | ) |
Definition at line 24 of file RecentDatabase.cpp.
| int CRecentDatabase::AddRecent | ( | const RecentItem & | item | ) |
Definition at line 179 of file RecentDatabase.cpp.
| bool CRecentDatabase::DeleteRecent | ( | int | id | ) |
Definition at line 252 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Implements CDatabase.
Definition at line 308 of file RecentDatabase.cpp.
| QList< CRecentDatabase::RecentItem > CRecentDatabase::GetRecents | ( | int | limit = -1, |
| int | offset = 0 |
||
| ) |
Definition at line 266 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Implements CDatabase.
Definition at line 337 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Reimplemented from CDatabase.
Definition at line 30 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Reimplemented from CDatabase.
Definition at line 109 of file RecentDatabase.cpp.
|
overrideprivatevirtual |
Reimplemented from CDatabase.
Definition at line 45 of file RecentDatabase.cpp.
| bool CRecentDatabase::UpdateRecent | ( | const QString & | szFile, |
| const QString & | szName, | ||
| const QString & | szDescription | ||
| ) |
Definition at line 229 of file RecentDatabase.cpp.
|
private |
Definition at line 44 of file RecentDatabase.h.
|
private |
Definition at line 43 of file RecentDatabase.h.