2
Eiciel - GNOME editor of ACL file permissions.
3
Copyright (C) 2004-2005 Roger Ferrer Ibáñez
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software
17
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
#ifndef EICIEL_XATTR_CONTROLER_HPP
20
#define EICIEL_XATTR_CONTROLER_HPP
22
#include <sys/types.h>
23
#include "eiciel_xattr_window.hpp"
24
#include "gestor_xattr.hpp"
26
class EicielXAttrWindow;
28
class EicielXAttrControler : public sigc::trackable
31
GestorXAttr* gestorXAttr;
32
EicielXAttrWindow* finestra;
35
void eliminarAtribut(const Glib::ustring& nomAtrib) throw (GestorXAttrException);
37
void afegirAtribut(const Glib::ustring& nomAtrib, const Glib::ustring& valorAtrib) throw (GestorXAttrException);
38
void actualitzarValorAtribut(const Glib::ustring& nomAtrib, const Glib::ustring& valorNouAtrib) throw (GestorXAttrException) ;
39
void modificarNomAtribut(const Glib::ustring& nomAnticAtribut, const Glib::ustring& nomNouAtribut) throw (GestorXAttrException);
41
void comprovarEditable();
43
EicielXAttrControler::EicielXAttrControler();
44
bool fitxerObert() { return _fitxerObert; };
46
void obrirFitxer(const Glib::ustring& nomFitxer) throw (GestorXAttrException);
48
friend class EicielXAttrWindow;