#include "LightApp_DataObject.h"
-#ifdef WNT
-#include <typeinfo.h>
-#endif
-
/*!Constructor.Initialize by \a entry and \a index*/
LightApp_DataSubOwner::LightApp_DataSubOwner( const QString& entry, const int index )
: LightApp_DataOwner( entry ),
{
}
-/*!Checks: Is current data sub owner equal \a obj.*/
-bool LightApp_DataSubOwner::isEqual( const SUIT_DataOwner& obj ) const
-{
- if (LightApp_DataOwner::isEqual(obj)) {
- const LightApp_DataSubOwner* other = dynamic_cast<const LightApp_DataSubOwner*>( &obj );
- return other && index() == other->index();
- }
- return false;
+/*!Gets key string, used for data owners comparison.*/
+QString LightApp_DataSubOwner::keyString() const
+{
+ QString aKey = LightApp_DataOwner::keyString();
+ aKey += QString("_%1").arg(index());
+ return aKey;
}
/*!Gets index.*/