1
/***************************************************************************
2
kisofile.h - description
4
begin : Wed Oct 30 2002
5
copyright : (C) 2002 by Szombathelyi Gy�gy
6
email : gyurco@users.sourceforge.net
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
1
/*****************************************************************************
2
* Copyright (C) 2002 Szombathelyi György <gyurco@users.sourceforge.net> *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License as published by *
6
* the Free Software Foundation; either version 2 of the License, or *
7
* (at your option) any later version. *
9
* This package is distributed in the hope that it will be useful, *
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12
* GNU General Public License for more details. *
14
* You should have received a copy of the GNU General Public License *
15
* along with this package; if not, write to the Free Software *
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
17
*****************************************************************************/
22
#include <QtCore/QString>
22
23
#include <karchive.h>
25
*@author Szombathelyi Gy�gy
28
class KIsoFile : public KArchiveFile {
30
KIsoFile( KArchive* archive, const QString& name, int access, int date,
31
int adate,int cdate, const QString& user, const QString& group,
32
const QString& symlink, long long pos, long long size);
25
class KIsoFile : public KArchiveFile
28
KIsoFile(KArchive* archive, const QString& name, int access, int date,
29
int adate, int cdate, const QString& user, const QString& group,
30
const QString& symlink, long long pos, long long size);
34
void setZF(char algo[2],char parms[2],long long realsize);
35
int adate() const { return m_adate; }
36
int cdate() const { return m_cdate; }
37
long long realsize() const { return m_realsize; }
32
void setZF(char algo[2], char parms[2], long long realsize);
39
long long realsize() const {
39
43
virtual QByteArray data(long long pos, int count) const;
41
45
/* hide this member function, it's broken by design, because the full
42
46
data often requires too much memory */
43
char m_algo[2],m_parms[2];
47
char m_algo[2], m_parms[2];
44
48
long long m_realsize;
45
49
int m_adate, m_cdate;
46
50
long long m_curpos;