• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

kzip.cpp File Reference

#include "kzip.h"
#include "kfilterdev.h"
#include "klimitediodevice.h"
#include <kmimetype.h>
#include <ksavefile.h>
#include <kdebug.h>
#include <qasciidict.h>
#include <qfile.h>
#include <qdir.h>
#include <qdatetime.h>
#include <qptrlist.h>
#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:
buffer start of buffer where the extra field is to be found
size size of the extra field
islocal true if this is part of a local header, false if of central
pfi ParseFileInfo object which to write the results into
Returns:
true if parsing was successful

Definition at line 265 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:
buffer start content of buffer known to contain an extended timestamp extra field (without magic & size)
size size of field content (must not count magic and size entries)
islocal true if this is a local field, false if central
pfi ParseFileInfo object to be updated
Returns:
true if processing was successful

Definition at line 141 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:
buffer start of content of buffer known to contain an Info-ZIP Unix old extra field (without magic & size)
size size of field content (must not count magic and size entries)
islocal true if this is a local field, false if central
pfi ParseFileInfo object to be updated
Returns:
true if processing was successful

Definition at line 201 of file kzip.cpp.

static time_t transformFromMsDos ( const char *  buffer  )  [static]

Definition at line 88 of file kzip.cpp.

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

Definition at line 59 of file kzip.cpp.


Variable Documentation

const int max_path_len = 4095

Definition at line 57 of file kzip.cpp.

kio

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal