00001 /* 00002 *GPLv2 00003 */ 00004 00005 #ifndef SLAVE_INTERFACE_H 00006 #define SLAVE_INTERFACE_H 00007 00008 #include <qpixmap.h> 00009 #include <qstring.h> 00010 00015 struct ImageInfo { 00016 ImageInfo() : kind(false){} 00017 bool operator==( const ImageInfo other ) { 00018 if ( kind != other.kind ) return false; 00019 if ( file != other.file ) return false; 00020 return true; 00021 } 00022 bool kind; 00023 QString file; 00024 QString info; 00025 }; 00026 00027 struct PixmapInfo { 00028 PixmapInfo() : width( -1 ), height( -1 ) {} 00029 bool operator==( const PixmapInfo& r ) { 00030 if ( width != r.width ) return false; 00031 if ( height != r.height ) return false; 00032 if ( file != r.file ) return false; 00033 return true; 00034 } 00035 int width, height; 00036 QString file; 00037 QPixmap pixmap; 00038 }; 00039 00040 00041 /* 00042 * Image Infos 00043 */ 00044 00045 00046 00047 #endif
1.4.2