• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

Public Member Functions | Protected Member Functions | List of all members
KArchiveDirectory Class Reference

#include <karchive.h>

Inheritance diagram for KArchiveDirectory:
KArchiveEntry

Public Member Functions

 KArchiveDirectory (KArchive *archive, const TQString &name, int access, int date, const TQString &user, const TQString &group, const TQString &symlink)
 
TQStringList entries () const
 
KArchiveEntry * entry (TQString name)
 
const KArchiveEntry * entry (TQString name) const
 
void addEntry (KArchiveEntry *)
 
virtual bool isDirectory () const
 
void copyTo (const TQString &dest, bool recursive=true) const
 
- Public Member Functions inherited from KArchiveEntry
 KArchiveEntry (KArchive *archive, const TQString &name, int access, int date, const TQString &user, const TQString &group, const TQString &symlink)
 
TQDateTime datetime () const
 
int date () const
 
TQString name () const
 
mode_t permissions () const
 
TQString user () const
 
TQString group () const
 
TQString symlink () const
 
virtual bool isFile () const
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 
- Protected Member Functions inherited from KArchiveEntry
KArchive * archive () const
 

Detailed Description

Represents a directory entry in a KArchive.

A directory in an archive.

See also
KArchive
KArchiveFile

Definition at line 573 of file karchive.h.

Constructor & Destructor Documentation

◆ KArchiveDirectory()

KArchiveDirectory::KArchiveDirectory ( KArchive *  archive,
const TQString &  name,
int  access,
int  date,
const TQString &  user,
const TQString &  group,
const TQString &  symlink 
)

Creates a new directory entry.

Parameters
archivethe entries archive
namethe name of the entry
accessthe permissions in unix format
datethe date (in seconds since 1970)
userthe user that owns the entry
groupthe group that owns the entry
symlinkthe symlink, or TQString::null

Definition at line 527 of file karchive.cpp.

Member Function Documentation

◆ copyTo()

void KArchiveDirectory::copyTo ( const TQString &  dest,
bool  recursive = true 
) const

Extracts all entries in this archive directory to the directory dest.

Parameters
destthe directory to extract to
recursiveif set to true, subdirectories are extracted as well
Since
3.1

Definition at line 601 of file karchive.cpp.

◆ entries()

TQStringList KArchiveDirectory::entries ( ) const

Returns a list of sub-entries.

Returns
the names of all entries in this directory (filenames, no path).

Definition at line 536 of file karchive.cpp.

◆ entry() [1/2]

KArchiveEntry * KArchiveDirectory::entry ( TQString  name)

Returns the entry with the given name.

Parameters
namemay be "test1", "mydir/test3", "mydir/mysubdir/test3", etc.
Returns
a pointer to the entry in the directory.

Definition at line 547 of file karchive.cpp.

◆ entry() [2/2]

const KArchiveEntry * KArchiveDirectory::entry ( TQString  name) const

Returns the entry with the given name.

Parameters
namemay be "test1", "mydir/test3", "mydir/mysubdir/test3", etc.
Returns
a pointer to the entry in the directory.

Definition at line 584 of file karchive.cpp.

◆ isDirectory()

virtual bool KArchiveDirectory::isDirectory ( ) const
inlinevirtual

Checks whether this entry is a directory.

Returns
true, since this entry is a directory

Reimplemented from KArchiveEntry.

Definition at line 620 of file karchive.h.


The documentation for this class was generated from the following files:
  • karchive.h
  • karchive.cpp

tdeio/tdeio

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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.9.1
This website is maintained by Timothy Pearson.