EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
ehm_dal::file_io::SavedGameFileManager Class Reference
Inheritance diagram for ehm_dal::file_io::SavedGameFileManager:

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.
 
- Public Member Functions inherited from ehm_dal::file_io::AbstractFileManager
 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

- Protected Member Functions inherited from ehm_dal::file_io::AbstractFileManager
void setOpenStatus (const bool is_open)
 
void setSaveStatus (const bool has_been_saved)
 

Member Function Documentation

◆ descriptor()

QString ehm_dal::file_io::SavedGameFileManager::descriptor ( ) const
inlineoverridevirtual

Returns the file manager descriptor. E.g. This will return "database" for a database file manager.

Implements ehm_dal::file_io::AbstractFileManager.

◆ fileFilterString()

QString ehm_dal::file_io::SavedGameFileManager::fileFilterString ( ) const
inlineoverridevirtual

Returns a list of supported file type filters for QFileDialog.

Implements ehm_dal::file_io::AbstractFileManager.