KVIrc 5.2.4
Developer APIs
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#include "KviPackageIOEngine.h"
35
36class KviFile;
37class QString;
38
46{
47public:
53
58
59public:
64 {
65 NoProgressDialog = 1
66 };
67
75 bool readHeader(const QString & szLocalFileName);
76
83 bool getStringInfoField(const QString & szName, QString & szBuffer);
84
94 bool unpack(const QString & szLocalFileName, const QString & szUnpackPath, kvi_u32_t uUnpackFlags = 0);
95
96private:
106 bool unpackInternal(const QString & szLocalFileName, const QString & szUnpackPath, kvi_u32_t uUnpackFlags = 0);
107
116 bool unpackFile(KviFile * pFile, const QString & szUnpackPath);
117
126 bool readHeaderInternal(KviFile * pFile, const QString & szLocalFileName);
127};
128
129#endif //_KviPackageReader_h_
File packaging utilities.
KVIrc File class.
Definition KviFile.h:50
This class is the base class engine to work with KVIrc package files.
Definition KviPackageIOEngine.h:53
This class is used to read KVIrc package files.
Definition KviPackageReader.h:46
UnpackFlags
Definition KviPackageReader.h:64
virtual ~KviPackageReader()
Destroys the object.
This file contains compile time settings.
#define KVILIB_API
Definition kvi_settings.h:124
char szBuffer[4096]
Definition winamp.cpp:77