00001 #ifndef __YUVGOPVECTOR_hpp__ 00002 #define __YUVGOPVECTOR_hpp__ 00003 00004 #ifdef WIN32 00005 #include "global.hpp" 00006 #include <qlist.h> 00007 #include <qvector.h> 00008 #else 00009 #include <qptrvector.h> 00010 #include <qptrlist.h> 00011 #endif 00012 00013 class YUVGOP; 00014 00015 class YUVGOPVector : public QPtrVector<YUVGOP> { 00016 00017 public: 00018 00035 typedef enum { COMPR_BYTE_SIZE, PSNR, PSNR_DESC, PERFORMANCE, PERFORMANCE_DESC } SortOrder; 00036 00037 00043 void setSortOrder(SortOrder s); 00044 00045 00052 virtual int compareItems(QPtrCollection::Item x, QPtrCollection::Item y); 00053 00054 private: 00055 00056 SortOrder sortOrder; 00057 00058 }; 00059 #endif