IPropertiesManager.h
Go to the documentation of this file.
1 #ifndef iprop_IPropertiesManager_included
2 #define iprop_IPropertiesManager_included
3 
4 
5 // ACF includes
6 #include "iser/IObject.h"
7 
8 // ACF-Solutions includes
9 #include "iprop/IProperty.h"
10 
11 
12 namespace iprop
13 {
14 
15 
20 {
21 public:
26  {
30  CF_RESET = 1 << 15,
31 
35  CF_ADD_PROPERTY = 1 << 16
36  };
37 
43  virtual void ResetProperties() = 0;
44 
48  virtual int GetPropertiesCount() const = 0;
49 
53  virtual iser::IObject* GetProperty(int propertyIndex) const = 0;
54 
59  virtual QByteArray GetPropertyId(int propertyIndex) const = 0;
60 
64  virtual QString GetPropertyDescription(int propertyIndex) const = 0;
65 
70  virtual IProperty::PropertyFlags GetPropertyFlags(int propertyIndex) const = 0;
71 
81  virtual void InsertProperty(
82  iser::IObject* objectPtr,
83  const QByteArray& propertyId,
84  const QByteArray& propertyDescription,
85  int propertyFlags,
86  bool releaseFlag) = 0;
87 };
88 
89 
90 } // namespace iprop
91 
92 
93 #endif // !iprop_IPropertiesManager_included
94 
95 
A new property was added to the manager.
Common interface for a container of properties.
virtual int GetPropertiesCount() const =0
Get number of properties.
virtual void ResetProperties()=0
Reset properties.
virtual void InsertProperty(iser::IObject *objectPtr, const QByteArray &propertyId, const QByteArray &propertyDescription, int propertyFlags, bool releaseFlag)=0
Insert an property into the object.
virtual iser::IObject * GetProperty(int propertyIndex) const =0
Get property with the given index.
virtual QString GetPropertyDescription(int propertyIndex) const =0
Get the description of the property with the given index propertyIndex.
The property manager was initialized.
virtual IProperty::PropertyFlags GetPropertyFlags(int propertyIndex) const =0
Get the property flags.
ChangeFlags
Data model change notification flags.
virtual QByteArray GetPropertyId(int propertyIndex) const =0
Get the ID of the property with the given index propertyIndex.

© 2007-2011 Witold Gantzke and Kirill Lepskiy