IOptionsList.h
Go to the documentation of this file.
1 #ifndef iprm_IOptionsList_included
2 #define iprm_IOptionsList_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 
8 
9 // ACF includes
10 #include <istd/IChangeable.h>
11 
12 #include <iprm/iprm.h>
13 
14 
15 namespace iprm
16 {
17 
18 
22 class IOptionsList: virtual public istd::IChangeable
23 {
24 public:
29  {
33  CF_OPTIONS_CHANGED = 0x8263d86,
34 
39  };
40 
45  {
46  SCF_NONE = 0,
47 
52 
57  };
58 
62  virtual int GetOptionsFlags() const = 0;
63 
67  virtual int GetOptionsCount() const = 0;
68 
72  virtual QString GetOptionName(int index) const = 0;
73 
77  virtual QString GetOptionDescription(int index) const = 0;
78 
83  virtual QByteArray GetOptionId(int index) const = 0;
84 
88  virtual bool IsOptionEnabled(int index) const = 0;
89 };
90 
91 
92 } // namespace iprm
93 
94 
95 #endif // !iprm_IOptionsList_included
96 
97 
If set, every option must have an unique ID.
Definition: IOptionsList.h:51
virtual QString GetOptionDescription(int index) const =0
Get human readable description for a option with the index index.
If set, some options can be disabled.
Definition: IOptionsList.h:56
virtual QString GetOptionName(int index) const =0
Get name of specified option.
ChangeFlags
Flags for changes related to this interface.
Definition: IOptionsList.h:28
Constraints of selection from set of possibilities.
Definition: IOptionsList.h:22
virtual int GetOptionsFlags() const =0
Get constraints flags.
OptionsFlags
Flags for control constraints behavior.
Definition: IOptionsList.h:44
virtual int GetOptionsCount() const =0
Get number of managed options.
One or more options were renamed.
Definition: IOptionsList.h:38
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual QByteArray GetOptionId(int index) const =0
Get option ID.
virtual bool IsOptionEnabled(int index) const =0
Return true if the option is enabled and can be selected.

© 2007-2017 Witold Gantzke and Kirill Lepskiy