updateImageSize() now takes the whole ImlibImageList into consideration
[qcomicbook-oblomov] / src / thumbnailitem.h
1 /*
2  * This file is a part of QComicBook.
3  *
4  * Copyright (C) 2005-2006 Pawel Stolowski <yogin@linux.bydg.org>
5  *
6  * QComicBook is free software; you can redestribute it and/or modify it
7  * under terms of GNU General Public License by Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY. See GPL for more details.
11  */
12
13 #ifndef __THUMBNAILITEM_H
14 #define __THUMBNAILITEM_H
15
16 namespace QComicBook
17 {
18         class Thumbnail;
19
20         class ThumbnailItem
21         {
22                 protected:
23                         int pnum; //page number
24                         bool loaded; //has image or is it empty?
25
26                 public:
27                         ThumbnailItem(int page);
28                         virtual ~ThumbnailItem();
29
30                         virtual int page() const;
31                         virtual void setLoaded(bool f);
32                         virtual bool isLoaded() const;
33
34                         virtual void setThumbnail(const Thumbnail *t);
35         };
36 }
37
38 #endif
39