IOptionsManager.h
Go to the documentation of this file.
1 #ifndef iprm_IOptionsManager_included
2 #define iprm_IOptionsManager_included
3 
4 
5 // ACF includes
6 #include <iprm/IOptionsList.h>
7 #include <iprm/ISelectionParam.h>
8 
9 
10 namespace iprm
11 {
12 
13 
17 class IOptionsManager: virtual public IOptionsList, virtual public ISelectionParam
18 {
19 public:
24  {
25  CF_OPTION_ADDED = 0x26be73a,
27  };
28 
33  {
38 
43 
48 
53 
58 
63 
68  };
69 
70 
80  virtual int GetOptionOperationFlags(int index = -1) const = 0; // TODO: Merge this with iprm::IOptionsList::GetOptionsFlags()
81 
86  virtual bool SetOptionEnabled(int index, bool isEnabled = true) = 0;
87 
92  virtual bool RemoveOption(int index) = 0;
93 
102  virtual bool InsertOption(
103  const QString& optionName,
104  const QByteArray& optionId,
105  const QString& optionDescription = QString(),
106  int index = -1) = 0;
107 
111  virtual bool SwapOptions(int index1, int index2) = 0;
112 
116  virtual bool SetOptionName(int optionIndex, const QString& optionName) = 0;
117 
121  virtual bool SetOptionDescription(int optionIndex, const QString& optionDescription) = 0;
122 };
123 
124 
125 } // namespace iprm
126 
127 
128 #endif // !iprm_IOptionsManager_included
129 
130 
virtual bool SetOptionDescription(int optionIndex, const QString &optionDescription)=0
Set a new description for the option at the given index optionIndex.
Active if enabling and disabling of the parameters is possible.
ChangeFlags
Flags for changes related to this interface.
Definition: IOptionsList.h:28
Constraints of selection from set of possibilities.
Definition: IOptionsList.h:22
Active if it is possible to get the disabled option.
OptionOperationFlags
Bitwise coded flags used to find out supported features.
virtual bool SetOptionEnabled(int index, bool isEnabled=true)=0
Enables a given option.
Common interface for the management of the dynamic selection constraints.
virtual bool SwapOptions(int index1, int index2)=0
Swap two options.
virtual bool RemoveOption(int index)=0
Remove an option at the given index.
virtual bool InsertOption(const QString &optionName, const QByteArray &optionId, const QString &optionDescription=QString(), int index=-1)=0
Insert an option at some position.
Active if number of parameters is fixed.
Active if insert of parameters is possible.
Active if rename of parameters is supported.
virtual bool SetOptionName(int optionIndex, const QString &optionName)=0
Set a new name for the option at the given index optionIndex.
Interface allowing to select single option from list of options.
Active if delete of parameters is possible.
virtual int GetOptionOperationFlags(int index=-1) const =0
Get operation control flags of some option or whole manager.
Active if swap of parameters with the other one is possible.

© 2007-2017 Witold Gantzke and Kirill Lepskiy