1 #ifndef SUIT_DATAOWNER_H
2 #define SUIT_DATAOWNER_H
4 #include "SUIT_SmartPtr.h"
6 #include <qvaluelist.h>
9 #pragma warning( disable:4275 )
12 class SUIT_EXPORT SUIT_DataOwner : public RefCount
15 SUIT_DataOwner();//!< constructor
16 virtual ~SUIT_DataOwner();//!< destructor
18 virtual bool isEqual( const SUIT_DataOwner& ) const = 0;
21 /*! \typedef SUIT_DataOwnerPtr
22 * Define smart pointer for SUIT_DataOwner object
24 typedef SMART(SUIT_DataOwner) SUIT_DataOwnerPtr;
26 /*! Comparing two SUIT_DataOwnerPtr objects.*/
27 bool operator==( const SUIT_DataOwnerPtr&, const SUIT_DataOwnerPtr& );
30 * \brief For more documentation see <a href="http://doc.trolltech.com">QT documentation</a>.
33 /*! \class SUIT_DataOwnerPtrList
34 * \brief Manage list of SUIT_DataOwnerPtr.
36 class SUIT_EXPORT SUIT_DataOwnerPtrList : public QValueList<SUIT_DataOwnerPtr>
39 SUIT_DataOwnerPtrList();//!< constructor
40 SUIT_DataOwnerPtrList( const SUIT_DataOwnerPtrList& l );//!< copy constructor
42 SUIT_DataOwnerPtrList( const std::list<SUIT_DataOwnerPtr>& l );//!< copy constructor for STL list
45 iterator append ( const SUIT_DataOwnerPtr& x );//!< append function
48 // hide this methods: only append() should be used to add items to the list
49 iterator prepend( const SUIT_DataOwnerPtr& x );//!< hide method
50 iterator insert ( iterator it, const SUIT_DataOwnerPtr& x );//!< hide method
51 void push_front ( const SUIT_DataOwnerPtr& x );//!< hide method
52 void push_back ( const SUIT_DataOwnerPtr& x );//!< hide method
56 #pragma warning( default:4275 )