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_MAIN_CONTROLER_HPP
20
#define EICIEL_MAIN_CONTROLER_HPP
24
#include "eiciel_main_window.hpp"
25
#include "gestor_acl.hpp"
26
#include "tipus_element_acl.hpp"
33
class EicielMainControler : public sigc::trackable
37
EicielWindow* finestra;
38
set<string> llistatUsuaris;
39
set<string> llistatGrups;
42
bool actualitzantFinestra;
43
void actualitzarLlistaACL();
44
void actualitzaEntradaACL(TipusElement e, string nom,
45
bool lectura, bool escriptura, bool execucio);
46
void eliminarACL(string nomEntrada, TipusElement e);
47
void afegirEntradaACL(string s, TipusElement e, bool esDefault);
48
void canviACLDefault();
49
Glib::ustring ultimMissatgeError;
51
bool calActualitzarLlista;
54
void generarLlistes();
55
void mostrarParticipantsSistema(bool b);
56
void comprovarEditable();
58
set<string> donaLlistaUsuaris();
59
set<string> donaLlistaGrups();
61
void obreFitxer(string s);
62
Glib::ustring ultimError();
64
friend class EicielWindow;
65
EicielMainControler();
66
~EicielMainControler();