* Version $Id$
*/
/*
- Copyright (C) 2004 Kern Sibbald and John Walker
+ Bacula® - The Network Backup Solution
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License
- as published by the Free Software Foundation; either version 2
- of the License, or (at your option) any later version.
+ Copyright (C) 2004-2006 Free Software Foundation Europe e.V.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ The main author of Bacula is Kern Sibbald, with contributions from
+ many others, a complete list can be found in the file AUTHORS.
+ This program is Free Software; you can redistribute it and/or
+ modify it under the terms of version three of the GNU Affero General Public
+ License as published by the Free Software Foundation and included
+ in the file LICENSE.
- You should have received a copy of the GNU General Public License
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU Affero General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ Bacula® is a registered trademark of Kern Sibbald.
+ The licensor of Bacula is the Free Software Foundation Europe
+ (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich,
+ Switzerland, email:ftf@fsfeurope.org.
+*/
#ifndef WXBRESTOREPANEL_H
#define WXBRESTOREPANEL_H
WX_DECLARE_LIST(wxEvent, wxbEventList);
+/* Class for storing directory entries (results from dir commands). */
+class wxbDirEntry {
+public:
+ wxString perm;
+ wxString nlink;
+ wxString user;
+ wxString group;
+ wxString size;
+ wxString date;
+ int marked; /* 0 - Not Marked, 1 - Marked, 2 - Some file under is marked */
+ wxString fullname; /* full name with path */
+ wxString filename; /* only filename, no path */
+};
+
/*
* wxbPanel for restoring files
*/
void UpdateTreeItem(wxTreeItemId item, bool updatelist, bool recurse);
/* Parse dir command results. */
- wxString* ParseList(wxString line);
+ int ParseList(wxString line, wxbDirEntry* entry);
/* Sets a list item state, and update its parents and children if it is a directory */
void SetListItemState(long listitem, int newstate);
/* Status related */
enum status_enum
{
- disabled, // The panel is not activatable
- activable, // The panel is activable, but not activated
- entered, // The panel is activated
- choosing, // The user is choosing files to restore
- listing, // Dir listing is in progress
- configuring, // The user is configuring restore process
- restoring, // Bacula is restoring files
- finished // Retore done (state will change in activable)
+ disabled, // The panel is not activatable
+ activable, // The panel is activable, but not activated
+ entered, // The panel is activated
+ choosing, // The user is choosing files to restore
+ listing, // Dir listing is in progress
+ configuring, // The user is configuring restore process
+ restoring, // Bacula is restoring files
+ finished // Retore done (state will change in activable)
};
status_enum status;