10 #ifndef GUARD_APPOPTS_H_INCLUDE
11 #define GUARD_APPOPTS_H_INCLUDE
13 #include <appopts/appopts-config.h>
17 #include <QStringList>
25 class APPOPTS_EXPORT
AppOpts :
public QMap<QString,QStringList> {
32 system_file_(other.system_file_),
33 user_file_(other.user_file_),
34 local_file_(other.local_file_)
54 const QString & s_app_name = QString());
59 const QString & s_file,
71 readMultipleFromCfgs (
78 const QString & s_key,
79 const QString & s_value);
84 const QString & s_key,
85 const QStringList & sl_value);
90 const QString & s_key,
91 const QString & s_value);
96 const QString & s_key,
97 const QStringList & sl_values);
102 const QString & s_file,
108 const QString & s_name,
109 bool b_default =
false)
const;
114 const QString & s_name,
115 const QString & s_default = QString())
const;
120 const QString & s_name,
121 const QStringList & sl_default = QStringList())
const;
126 const QString & s_name,
127 int i_default = 0)
const;
132 const QString & s_name,
133 double d_default = 0.0)
const;
140 const QString &s_app_name);
154 PerSt * system_file_;
157 PerSt * current_file_;
162 #endif // GUARD_APPOPTS_H_INCLUDE
A list of option definitions.
Definition: one_opt_list.h:24
Definition for an option.
Definition: one_opt.h:25
Application options.
Definition: appopts.h:25