EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
|
The DatabaseFileManager class provides simple read and write access to a database. More...
#include <database_file_manager.h>
Public Member Functions | |
QString | descriptor () const override |
Returns the file manager descriptor. E.g. This will return "database" for a database file manager. | |
QString | fileFilterString () const override |
Returns a list of supported file type filters for QFileDialog . | |
![]() | |
AbstractFileManager (const QString &folder_path_key) | |
bool | close (const bool show_confirmation_dialog=true) |
Closes the active database/saved game and clears all tables. | |
virtual QString | descriptor () const =0 |
Returns the file manager descriptor. E.g. This will return "database" for a database file manager. | |
virtual QString | fileFilterString () const =0 |
Returns a list of supported file type filters for QFileDialog . | |
bool | open (const QString &path) |
Opens the file at path . | |
bool | open (QWidget *parent=nullptr) |
Displays a file dialog window and opens the user selected file. | |
bool | save () |
Saves the data to the existing file. | |
bool | saveAs (QWidget *parent=nullptr) |
Displays a file dialog window and saves the user selected destination. | |
bool | isOpen () const |
Returns whether or not a file is presently open. | |
bool | isSaved () const |
Returns whether or not the file has been previously saved. | |
Additional Inherited Members | |
![]() | |
void | setOpenStatus (const bool is_open) |
void | setSaveStatus (const bool has_been_saved) |
The DatabaseFileManager class provides simple read and write access to a database.
|
inlineoverridevirtual |
Returns the file manager descriptor. E.g. This will return "database" for a database file manager.
Implements ehm_dal::file_io::AbstractFileManager.
|
inlineoverridevirtual |
Returns a list of supported file type filters for QFileDialog
.
Implements ehm_dal::file_io::AbstractFileManager.