~ubuntu-branches/ubuntu/utopic/eiciel/utopic

« back to all changes in this revision

Viewing changes to src/eiciel_main_controller.hpp

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2014-08-20 15:02:46 UTC
  • mfrom: (11.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20140820150246-ngv7lwsuk498knpk
Tags: 0.9.9-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    Eiciel - GNOME editor of ACL file permissions.
3
 
    Copyright (C) 2004-2010 Roger Ferrer Ib��ez
 
3
    Copyright (C) 2004-2014 Roger Ferrer Ib��ez
4
4
 
5
5
    This program is free software; you can redistribute it and/or modify
6
6
    it under the terms of the GNU General Public License as published by
32
32
 
33
33
class EicielMainController : public sigc::trackable
34
34
{
35
 
        private:
36
 
                ACLManager* _ACL_manager;
37
 
                EicielWindow* _window;
 
35
    private:
 
36
        ACLManager* _ACL_manager;
 
37
        EicielWindow* _window;
38
38
        set<string> _users_list;
39
39
        set<string> _groups_list;
40
 
                bool _is_file_opened;
41
 
                bool _updating_window;
42
 
                Glib::ustring _last_error_message;
43
 
 
44
 
                bool _list_must_be_updated;
45
 
                bool _show_system;
46
 
 
47
 
                void update_acl_list();
48
 
                void update_acl_entry(ElementKind e, string name, 
49
 
                                bool reading, bool writing, bool execution);
50
 
                void remove_acl(string entry_name, ElementKind e);
51
 
                void add_acl_entry(string s, ElementKind e, bool is_default);
52
 
                void change_default_acl();
53
 
 
54
 
                void fill_lists();
55
 
                void show_system_participants(bool b);
56
 
                void check_editable();
 
40
        bool _is_file_opened;
 
41
        bool _updating_window;
 
42
        Glib::ustring _last_error_message;
 
43
 
 
44
        bool _list_must_be_updated;
 
45
        bool _show_system;
 
46
 
 
47
        void update_acl_list();
 
48
        void update_acl_entry(ElementKind e, string name, 
 
49
                bool reading, bool writing, bool execution);
 
50
        void remove_acl(string entry_name, ElementKind e);
 
51
        void add_acl_entry(string s, ElementKind e, bool is_default);
 
52
        void change_default_acl();
 
53
 
 
54
        void fill_lists();
 
55
        void show_system_participants(bool b);
 
56
        void check_editable();
57
57
 
58
58
        set<string> get_users_list();
59
59
        set<string> get_groups_list();
62
62
        bool lookup_group(const std::string& str);
63
63
 
64
64
        bool is_directory();
65
 
        public:
66
 
                void open_file(string s);
67
 
                Glib::ustring last_error();
68
 
                bool opened_file();
69
 
                friend class EicielWindow; 
70
 
                EicielMainController();
71
 
                ~EicielMainController();
 
65
    public:
 
66
        void open_file(string s);
 
67
        Glib::ustring last_error();
 
68
        bool opened_file();
 
69
        friend class EicielWindow; 
 
70
        EicielMainController();
 
71
        ~EicielMainController();
72
72
};
73
73
 
74
74
#endif