Shared first and only page loading
[qcomicbook-oblomov] / src / imgsinkfactory.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 __IMGSINKFACTORY_H
14 #define __IMGSINKFACTORY_H
15
16 /*! \file imgsinkfactory.h */
17
18 class QString;
19         
20 namespace QComicBook
21 {
22         enum SinkType
23         {
24                 ArchiveSink = 1,
25                 DirSink
26         };
27
28         class ImgDirSink;
29
30         class ImgSinkFactory
31         {
32                 private:
33                         ImgSinkFactory();
34                         ~ImgSinkFactory();
35
36                 public:
37                         static ImgSinkFactory& instance();
38                         ImgDirSink* createImgSink(SinkType s);
39                         ImgDirSink* createImgSink(const QString &path);
40         };
41 }
42
43 #endif
44