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
16 virtual ~SUIT_DataOwner();
18 virtual bool isEqual( const SUIT_DataOwner& ) const = 0;
21 typedef SMART(SUIT_DataOwner) SUIT_DataOwnerPtr;
23 bool operator==( const SUIT_DataOwnerPtr&, const SUIT_DataOwnerPtr& );
25 class SUIT_EXPORT SUIT_DataOwnerPtrList : public QValueList<SUIT_DataOwnerPtr>
28 SUIT_DataOwnerPtrList();
29 SUIT_DataOwnerPtrList( const SUIT_DataOwnerPtrList& l );
31 SUIT_DataOwnerPtrList( const std::list<SUIT_DataOwnerPtr>& l );
34 iterator append ( const SUIT_DataOwnerPtr& x );
37 // hide this methods: only append() should be used to add items to the list
38 iterator prepend( const SUIT_DataOwnerPtr& x );
39 iterator insert ( iterator it, const SUIT_DataOwnerPtr& x );
40 void push_front ( const SUIT_DataOwnerPtr& x );
41 void push_back ( const SUIT_DataOwnerPtr& x );
45 #pragma warning( default:4275 )