16#ifndef _BACKUPMANAGER_H
17#define _BACKUPMANAGER_H
25#include <wx/filename.h>
26#include <wx/progdlg.h>
28#include <wx/sstream.h>
29#include <wx/wfstream.h>
30#include <wx/xml/xml.h>
31#include <wx/zipstrm.h>
37 wxFileName m_OutFileName;
38 wxFileName m_InDirectory;
51 inline const wxFileName GetOutputName()
const;
53 void SetOutputName(
const wxFileName& value);
55 inline const wxFileName GetInputDirectory()
const;
57 void SetInputDirectory(
const wxFileName& value);
59 inline const wxString GetComment()
const;
61 void SetComment(
const wxString& value);
63 inline const wxString GetAuthor()
const;
65 void SetAuthor(
const wxString& value);
67 inline const wxDateTime GetDate()
const;
69 void SetDate(wxDateTime value);
71 inline const bool IsUsingDate()
const;
73 void SetUseDate(
bool value);
76inline const wxFileName BackupFile::GetOutputName()
const {
80inline const wxFileName BackupFile::GetInputDirectory()
const {
84inline const wxString BackupFile::GetComment()
const {
88inline const wxString BackupFile::GetAuthor()
const {
92inline const wxDateTime BackupFile::GetDate()
const {
96inline const bool BackupFile::IsUsingDate()
const {
105 void _ListMySQLFiles(
const wxString& directory, wxArrayString& files);
112 bool Backup(
const BackupFile& fileinfo, wxWindow* progressparent =
nullptr);
114 bool Restore(
const BackupFile& fileinfo, wxWindow* progressparent =
nullptr);
116 bool GetFileInfo(
const wxFileName& file,
BackupFile& fileinfo);
118 bool SetMetadata(
const BackupFile& fileinfo, wxZipOutputStream* zip);
123inline DataBaseTM* BackupManager::GetDatabase() {
Definition backupmanager.h:35
Definition backupmanager.h:101
Definition database_tm.h:80