KVIrc  4.9.2
DeveloperAPIs
KviPackageReader.h
Go to the documentation of this file.
1 #ifndef _KviPackageReader_h_
2 #define _KviPackageReader_h_
3 //=============================================================================
4 //
5 // File : KviPackageReader.h
6 // Creation date : Tue 26 Dec 2006 05:33:33 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC Client distribution
9 // Copyright (C) 2006-2010 Szymon Stefanek <pragma at kvirc dot net>
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
33 #include "kvi_settings.h"
34 
35 #include "KviQString.h"
36 #include "KviPackageIOEngine.h"
37 
38 class KviFile;
39 
47 {
48 public:
54 
58  virtual ~KviPackageReader();
59 
60 public:
65  {
66  NoProgressDialog = 1
67  };
68 
76  bool readHeader(const QString & szLocalFileName);
77 
84  bool getStringInfoField(const QString & szName, QString & szBuffer);
85 
95  bool unpack(const QString & szLocalFileName, const QString & szUnpackPath, kvi_u32_t uUnpackFlags = 0);
96 
97 private:
107  bool unpackInternal(const QString & szLocalFileName, const QString & szUnpackPath, kvi_u32_t uUnpackFlags = 0);
108 
117  bool unpackFile(KviFile * pFile, const QString & szUnpackPath);
118 
127  bool readHeaderInternal(KviFile * pFile, const QString & szLocalFileName);
128 };
129 
130 #endif //_KviPackageReader_h_
UnpackFlags
Definition: KviPackageReader.h:64
KVIrc File class.
Definition: KviFile.h:52
File packaging utilities.
char szBuffer[4096]
Definition: winamp.cpp:77
This file contains compile time settings.
This class is the base class engine to work with KVIrc package files.
Definition: KviPackageIOEngine.h:53
#define KVILIB_API
Definition: kvi_settings.h:125
Helper functions for the QString class.
This class is used to read KVIrc package files.
Definition: KviPackageReader.h:46