00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef VCARD_LDIFCREATOR_H
00022 #define VCARD_LDIFCREATOR_H
00023
00024 #include <tqpixmap.h>
00025 #include <kio/thumbcreator.h>
00026 #include <kabc/vcardparser.h>
00027
00028 class KPixmapSplitter;
00029
00030 class VCard_LDIFCreator : public ThumbCreator
00031 {
00032 public:
00033 VCard_LDIFCreator();
00034 virtual ~VCard_LDIFCreator();
00035 virtual bool create(const TQString &path, int width, int height, TQImage &img);
00036 virtual Flags flags() const;
00037
00038 private:
00039 KPixmapSplitter *mSplitter;
00040 TQPixmap mPixmap;
00041
00042 TQString name;
00043 TQString text;
00044 bool readContents( const TQString &path );
00045 int xborder, yborder;
00046 TQSize pixmapSize;
00047 bool createImageSmall();
00048 bool createImageBig();
00049 };
00050
00051 #endif