You need a space here
[kdepim.git] / kaddressbook / thumbnailcreator / ldifvcardcreator.h
blob0244e52514635be9fa4670a627c2d8612af9a374
1 /*
2 This file is part of KAddressBook.
3 Copyright (C) 2003 Helge Deller <deller@kde.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef KADDRESSBOOK_LDIFVCARDCREATOR_H
22 #define KADDRESSBOOK_LDIFVCARDCREATOR_H
24 #include <QtGui/QPixmap>
25 #include <kio/thumbcreator.h>
27 class VCard_LDIFCreator : public ThumbCreator
29 public:
30 VCard_LDIFCreator();
31 virtual ~VCard_LDIFCreator();
32 virtual bool create(const QString &path, int width, int height, QImage &img);
33 virtual Flags flags() const;
35 private:
36 QPixmap *mFont;
37 QPixmap mPixmap;
39 QString name;
40 QString text;
41 bool readContents( const QString &path );
42 int xborder, yborder;
43 QSize pixmapSize;
44 bool createImageSmall();
45 bool createImageBig();
48 #endif // KADDRESSBOOK_LDIFVCARDCREATOR_H