~ubuntu-branches/ubuntu/dapper/eiciel/dapper

« back to all changes in this revision

Viewing changes to src/eiciel_xattr_controler.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2005-12-27 01:45:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051227014506-nhcty9r1kink5hlz
Tags: 0.9-1
* New upstream release.
* Updated description as eiciel now also allows to manipulate extended user
  attributes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Eiciel - GNOME editor of ACL file permissions.
 
3
    Copyright (C) 2004-2005 Roger Ferrer Ibáñez
 
4
 
 
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.
 
9
 
 
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.
 
14
 
 
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
 
18
*/
 
19
#ifndef EICIEL_XATTR_CONTROLER_HPP
 
20
#define EICIEL_XATTR_CONTROLER_HPP
 
21
 
 
22
#include <sys/types.h>
 
23
#include "eiciel_xattr_window.hpp"
 
24
#include "gestor_xattr.hpp"
 
25
 
 
26
class EicielXAttrWindow;
 
27
 
 
28
class EicielXAttrControler : public sigc::trackable
 
29
{
 
30
        private:
 
31
                GestorXAttr* gestorXAttr;
 
32
                EicielXAttrWindow* finestra;
 
33
                bool _fitxerObert;
 
34
 
 
35
                void eliminarAtribut(const Glib::ustring& nomAtrib) throw (GestorXAttrException);
 
36
 
 
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);
 
40
 
 
41
                void comprovarEditable();
 
42
        public:
 
43
                EicielXAttrControler::EicielXAttrControler();
 
44
                bool fitxerObert() { return _fitxerObert; };
 
45
 
 
46
                void obrirFitxer(const Glib::ustring& nomFitxer) throw (GestorXAttrException);
 
47
 
 
48
                friend class EicielXAttrWindow;
 
49
}
 
50
;
 
51
 
 
52
#endif