IRegistryConsistInfo.h
Go to the documentation of this file.
1 #ifndef icmpstr_IRegistryConsistInfo_included
2 #define icmpstr_IRegistryConsistInfo_included
3 
4 
5 // Qt includes
6 #include <QtCore/QByteArray>
7 #include <QtGui/QIcon>
8 
9 // ACF includes
10 #include <istd/IPolymorphic.h>
11 #include <icomp/IRegistry.h>
12 #include <ilog/IMessageConsumer.h>
13 
14 // ACF-Solutions includes
15 #include <icmpstr/icmpstr.h>
16 
17 
18 namespace icmpstr
19 {
20 
21 
23 {
24 public:
26  {
27  QF_NONE = 0,
31  QF_ANY_INTERFACE = 1 << 0,
44  };
45 
51  virtual icomp::IRegistry::Ids GetCompatibleElements(
52  const icomp::IElementStaticInfo::Ids& interfaceNames,
53  const icomp::IRegistry& registry,
54  int queryFlags = QF_NONE) const = 0;
55 
66  virtual bool IsRegistryValid(
67  const icomp::IRegistry& registry,
68  bool ignoreUndef,
69  bool allReasons,
70  ilog::IMessageConsumer* reasonConsumerPtr) const = 0;
71 
80  virtual bool IsElementValid(
81  const QByteArray& elementName,
82  const icomp::IRegistry& registry,
83  bool ignoreUndef,
84  bool allReasons,
85  ilog::IMessageConsumer* reasonConsumerPtr) const = 0;
86 
97  virtual bool IsAttributeValid(
98  const QByteArray& attributeName,
99  const QByteArray& elementName,
100  const icomp::IRegistry& registry,
101  bool ignoreUndef,
102  bool allReasons,
103  ilog::IMessageConsumer* reasonConsumerPtr,
104  const icomp::IComponentStaticInfo* componentMetaInfoPtr = NULL) const = 0;
105 
116  virtual bool IsAttributeValueValid(
117  int attributeFlags,
118  const QByteArray& attributeText,
119  const icomp::IElementStaticInfo::Ids& interfaceNames,
120  const icomp::IElementStaticInfo::Ids& optionalInterfaceNames,
121  const icomp::IRegistry& registry,
122  bool ignoreUndef,
123  ilog::IMessageConsumer* reasonConsumerPtr) const = 0;
124 
128  virtual QIcon GetComponentIcon(const icomp::CComponentAddress& address) const = 0;
129 };
130 
131 
132 } // namespace icmpstr
133 
134 
135 #endif // !icmpstr_IRegistryConsistInfo_included
136 
137 
virtual QIcon GetComponentIcon(const icomp::CComponentAddress &address) const =0
Get icon of component.
Supporting of any specified interfaces is enough to interprete component as compatible one...
virtual bool IsAttributeValueValid(int attributeFlags, const QByteArray &attributeText, const icomp::IElementStaticInfo::Ids &interfaceNames, const icomp::IElementStaticInfo::Ids &optionalInterfaceNames, const icomp::IRegistry &registry, bool ignoreUndef, ilog::IMessageConsumer *reasonConsumerPtr) const =0
Check if attribute is valid.
virtual bool IsRegistryValid(const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr) const =0
Check if registry is valid.
If active, subelements will be also considered.
virtual bool IsAttributeValid(const QByteArray &attributeName, const QByteArray &elementName, const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr, const icomp::IComponentStaticInfo *componentMetaInfoPtr=NULL) const =0
Check if attribute is valid.
virtual icomp::IRegistry::Ids GetCompatibleElements(const icomp::IElementStaticInfo::Ids &interfaceNames, const icomp::IRegistry &registry, int queryFlags=QF_NONE) const =0
Get list of compatible element names.
virtual bool IsElementValid(const QByteArray &elementName, const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr) const =0
Check if element is valid.
If active, all undefined (without available meta information) elements will be also included...
If active, subelements will be also considered.

© 2007-2017 Witold Gantzke and Kirill Lepskiy