TaurusZIPLibrary  $VERSION$
qtzipbase.h
Go to the documentation of this file.
1 //
2 // Description: Zip helper, base class
3 //
4 
5 /* Copyright (c) 2013 Konrad Rosenbaum <konrad@silmor.de>
6 
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13 
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16 
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE. */
24 
25 #ifndef ZIPHELPER_QTZIPBASE_H
26 #define ZIPHELPER_QTZIPBASE_H
27 
28 #include <QObject>
29 
30 
31 #if defined(ZIPHLP_LIBRARY_BUILD)
32 # define ZIPHLP_EXPORT Q_DECL_EXPORT
33 #else
34 # define ZIPHLP_EXPORT Q_DECL_IMPORT
35 #endif
36 
37 namespace QtZipHelper {
39 class ZIPHLP_EXPORT ZipHlpBase:public QObject
40 {
41  public:
43  explicit ZipHlpBase(QObject* parent = 0);
45  virtual ~ZipHlpBase();
46 
48  virtual bool isOpen()const =0;
50  virtual void close()=0;
51  protected:
52  struct Private;
53  Private*d;
54 };
55 
56 //end of namespace
57 };
58 
59 using namespace QtZipHelper;
60 
61 #endif
Base class of Zip and Unzip, see those for details.
Definition: qtzipbase.h:39
Definition: qtzipbase.h:37
Private * d
Definition: qtzipbase.h:52
#define ZIPHLP_EXPORT
Definition: qtzipbase.h:34