~ubuntu-branches/ubuntu/natty/newsbeuter/natty

« back to all changes in this revision

Viewing changes to include/configcontainer.h

  • Committer: Bazaar Package Importer
  • Author(s): Nico Golde
  • Date: 2010-03-23 19:09:18 UTC
  • mfrom: (4.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20100323190918-o3mwdwl3v4li449s
Tags: 2.2-2
Do not cleanup deleted items uppon quitting so they will be
reloaded and marked as new next time (Closes: #574665).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
struct configdata
11
11
{
12
 
        enum configdata_type { INVALID, BOOL, INT, STR, PATH };
 
12
        enum configdata_type { INVALID, BOOL, INT, STR, PATH, ALIAS, ENUM };
13
13
        configdata(const std::string& v = "", configdata_type t = INVALID, bool m = false) : value(v), default_value(v), type(t), multi_option(m) { }
 
14
        configdata(const std::string& v, ...);
14
15
        std::string value;
15
16
        std::string default_value;
16
17
        configdata_type type;
 
18
        std::set<std::string> enum_values;
17
19
        bool multi_option;
18
20
};
19
21
 
38
40
        
39
41
        bool is_bool(const std::string& s);
40
42
        bool is_int(const std::string& s);
 
43
        std::string lookup_alias(const std::string& s);
41
44
};
42
45
 
43
46
}