• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • sources
  • kde-4.12
  • kdelibs
  • kdecore
  • io
Functions | Variables
kzip.cpp File Reference
#include "kzip.h"
#include "kfilterdev.h"
#include "klimitediodevice_p.h"
#include <kdebug.h>
#include <QtCore/QHash>
#include <QtCore/QByteArray>
#include <QtCore/QFile>
#include <QtCore/QDir>
#include <QtCore/QDate>
#include <QtCore/QList>
#include <zlib.h>
#include <time.h>
#include <string.h>
Include dependency graph for kzip.cpp:

Go to the source code of this file.

Functions

static bool parseExtraField (const char *buffer, int size, bool islocal, ParseFileInfo &pfi)
 
static bool parseExtTimestamp (const char *buffer, int size, bool islocal, ParseFileInfo &pfi)
 
static bool parseInfoZipUnixOld (const char *buffer, int size, bool islocal, ParseFileInfo &pfi)
 
static time_t transformFromMsDos (const char *buffer)
 
static void transformToMsDos (const QDateTime &dt, char *buffer)
 

Variables

const int max_path_len = 4095
 

Function Documentation

static bool parseExtraField ( const char *  buffer,
int  size,
bool  islocal,
ParseFileInfo &  pfi 
)
static

parses the extra field

Parameters
bufferstart of buffer where the extra field is to be found
sizesize of the extra field
islocaltrue if this is part of a local header, false if of central
pfiParseFileInfo object which to write the results into
Returns
true if parsing was successful

Definition at line 243 of file kzip.cpp.

static bool parseExtTimestamp ( const char *  buffer,
int  size,
bool  islocal,
ParseFileInfo &  pfi 
)
static

updates the parse information with the given extended timestamp extra field.

Parameters
bufferstart content of buffer known to contain an extended timestamp extra field (without magic & size)
sizesize of field content (must not count magic and size entries)
islocaltrue if this is a local field, false if central
pfiParseFileInfo object to be updated
Returns
true if processing was successful

Definition at line 119 of file kzip.cpp.

static bool parseInfoZipUnixOld ( const char *  buffer,
int  size,
bool  islocal,
ParseFileInfo &  pfi 
)
static

updates the parse information with the given Info-ZIP Unix old extra field.

Parameters
bufferstart of content of buffer known to contain an Info-ZIP Unix old extra field (without magic & size)
sizesize of field content (must not count magic and size entries)
islocaltrue if this is a local field, false if central
pfiParseFileInfo object to be updated
Returns
true if processing was successful

Definition at line 179 of file kzip.cpp.

static time_t transformFromMsDos ( const char *  buffer)
static

Definition at line 67 of file kzip.cpp.

static void transformToMsDos ( const QDateTime &  dt,
char *  buffer 
)
static

Definition at line 38 of file kzip.cpp.

Variable Documentation

const int max_path_len = 4095

Definition at line 36 of file kzip.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal