~ubuntu-branches/ubuntu/precise/krusader/precise

« back to all changes in this revision

Viewing changes to iso/kisofile.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-05-05 22:26:37 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505222637-ydv3cwjwy365on2r
Tags: 1:2.1.0~beta1-1ubuntu1
* Merge from Debian Unstable.  Remaining changes:
  - Retain Kubuntu doc path

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          kisofile.h  -  description
3
 
                             -------------------
4
 
    begin                : Wed Oct 30 2002
5
 
    copyright            : (C) 2002 by Szombathelyi Gy�gy
6
 
    email                : gyurco@users.sourceforge.net
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
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.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
 
1
/*****************************************************************************
 
2
 * Copyright (C) 2002 Szombathelyi György <gyurco@users.sourceforge.net>     *
 
3
 *                                                                           *
 
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.                                       *
 
8
 *                                                                           *
 
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.                              *
 
13
 *                                                                           *
 
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
 *****************************************************************************/
17
18
 
18
19
#ifndef KISOFILE_H
19
20
#define KISOFILE_H
20
21
 
21
 
#include <qstring.h>
 
22
#include <QtCore/QString>
22
23
#include <karchive.h>
23
24
 
24
 
/**
25
 
  *@author Szombathelyi Gy�gy
26
 
  */
27
 
 
28
 
class KIsoFile : public KArchiveFile  {
29
 
public: 
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
 
26
{
 
27
public:
 
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);
33
31
    ~KIsoFile();
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);
 
33
    int adate() const {
 
34
        return m_adate;
 
35
    }
 
36
    int cdate() const {
 
37
        return m_cdate;
 
38
    }
 
39
    long long realsize() const {
 
40
        return m_realsize;
 
41
    }
38
42
 
39
43
    virtual QByteArray data(long long pos, int count) const;
40
44
private:
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;