1 /*
2   FXiTe - The Free eXtensIble Text Editor
3   Copyright (c) 2009 Jeffrey Pohlmeyer <yetanothergeek@gmail.com>
4 
5   This program is free software; you can redistribute it and/or modify it
6   under the terms of the GNU General Public License version 3 as
7   published by the Free Software Foundation.
8 
9   This software is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   GNU General Public License for more details.
13 
14   You should have received a copy of the GNU General Public License
15   along with this program; if not, write to the Free Software
16   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18 class AppClass;
19 
20 class BackupMgr: public FXObject {
21 private:
22   FXMainWindow*mainwin;
23   bool MakePath(const FXString& path);
24   FXString lasterror;
25   FXString backupdir;
26   void RemoveBackup(const FXString&filename);
27 
28 public:
29   BackupMgr(FXMainWindow*w, const FXString &configdir);
30   bool SaveBackup(SciDoc*sci);
31   void RemoveBackup(SciDoc*sci);
32   const FXString &LastError();
33 };
34 
35