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,
36  };
37 
43  virtual icomp::IRegistry::Ids GetCompatibleElements(
44  const icomp::IElementStaticInfo::Ids& interfaceNames,
45  const icomp::IRegistry& registry,
46  int queryFlags = QF_NONE) const = 0;
47 
58  virtual bool IsRegistryValid(
59  const icomp::IRegistry& registry,
60  bool ignoreUndef,
61  bool allReasons,
62  ilog::IMessageConsumer* reasonConsumerPtr) const = 0;
63 
72  virtual bool IsElementValid(
73  const QByteArray& elementName,
74  const icomp::IRegistry& registry,
75  bool ignoreUndef,
76  bool allReasons,
77  ilog::IMessageConsumer* reasonConsumerPtr) const = 0;
78 
88  virtual bool IsAttributeValid(
89  const QByteArray& attributeName,
90  const QByteArray& elementName,
91  const icomp::IRegistry& registry,
92  bool ignoreUndef,
93  bool allReasons,
94  ilog::IMessageConsumer* reasonConsumerPtr) const = 0;
98  virtual QIcon GetComponentIcon(const icomp::CComponentAddress& address) const = 0;
99 };
100 
101 
102 } // namespace icmpstr
103 
104 
105 #endif // !icmpstr_IRegistryConsistInfo_included
106 
107 
virtual QIcon GetComponentIcon(const icomp::CComponentAddress &address) const =0
Get icon of component.
virtual bool IsAttributeValid(const QByteArray &attributeName, const QByteArray &elementName, const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr) const =0
Check if attribute is valid.
Supporting of any specified interfaces is enough to interprete component as compatible one...
virtual bool IsRegistryValid(const icomp::IRegistry &registry, bool ignoreUndef, bool allReasons, ilog::IMessageConsumer *reasonConsumerPtr) const =0
Check if registry 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...

© 2007-2011 Witold Gantzke and Kirill Lepskiy