KDE 5.0 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

K7Zip Class Reference

from PyKDE5.karchive import *

Inherits: KArchive

Detailed Description

A class for reading / writing p7zip archives.

Author:
Mario Bensi


Methods

 __init__ (self, QString filename)
 __init__ (self, QIODevice dev)
bool closeArchive (self)
bool doFinishWriting (self, long size)
bool doPrepareWriting (self, QString name, QString user, QString group, long size, long perm, QDateTime atime, QDateTime mtime, QDateTime ctime)
bool doWriteDir (self, QString name, QString user, QString group, long perm, QDateTime atime, QDateTime mtime, QDateTime ctime)
bool doWriteSymLink (self, QString name, QString target, QString user, QString group, long perm, QDateTime atime, QDateTime mtime, QDateTime ctime)
bool openArchive (self, QIODevice::OpenMode mode)
 virtual_hook (self, int id, void data)
bool writeData (self, QString data, long size)

Method Documentation

__init__ (  self,
QString  filename
)

Creates an instance that operates on the given filename using the compression filter associated to given mimetype.

Parameters:
filename  is a local path (e.g. "/home/user/myfile.7z")

__init__ (  self,
QIODevice  dev
)

Creates an instance that operates on the given device. The device can be compressed (KFilterDev) or not (QFile, etc.).

Warning:
Do not assume that giving a QFile here will decompress the file, in case it's compressed!

Parameters:
dev  the device to read from. If the source is compressed, the QIODevice must take care of decompression

bool closeArchive (   self )
bool doFinishWriting (  self,
long  size
)
bool doPrepareWriting (  self,
QString  name,
QString  user,
QString  group,
long  size,
long  perm,
QDateTime  atime,
QDateTime  mtime,
QDateTime  ctime
)
bool doWriteDir (  self,
QString  name,
QString  user,
QString  group,
long  perm,
QDateTime  atime,
QDateTime  mtime,
QDateTime  ctime
)
bool doWriteSymLink (  self,
QString  name,
QString  target,
QString  user,
QString  group,
long  perm,
QDateTime  atime,
QDateTime  mtime,
QDateTime  ctime
)
bool openArchive (  self,
QIODevice::OpenMode  mode
)

Opens the archive for reading. Parses the directory listing of the archive and creates the KArchiveDirectory/KArchiveFile entries.

Parameters:
mode  the mode of the file

virtual_hook (  self,
int  id,
void  data
)
bool writeData (  self,
QString  data,
long  size
)
  • Full Index

Modules

  • karchive
  • kcoreaddons
  • kguiaddons
  • kitemmodels
  • kitemviews
  • kplotting
  • kwidgetsaddons
  • solid
  • sonnet
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal