lib

KoDirectoryStore Class Reference

Inheritance diagram for KoDirectoryStore:

KoStoreBase KoStore List of all members.

Detailed Description

Definition at line 27 of file KoDirectoryStore.h.


Public Member Functions

 KoDirectoryStore (const QString &path, Mode _mode)
 ~KoDirectoryStore ()

Protected Member Functions

virtual bool init (Mode _mode)
virtual bool openWrite (const QString &name)
virtual bool openRead (const QString &name)
virtual bool closeRead ()
virtual bool closeWrite ()
virtual bool enterRelativeDirectory (const QString &dirName)
virtual bool enterAbsoluteDirectory (const QString &path)
virtual bool fileExists (const QString &absPath) const
bool openReadOrWrite (const QString &name, int iomode)

Member Function Documentation

bool KoDirectoryStore::init ( Mode  _mode  )  [protected, virtual]

Init store - called by constructor.

Returns:
true on success

Reimplemented from KoStore.

Definition at line 47 of file KoDirectoryStore.cpp.

virtual bool KoDirectoryStore::openWrite ( const QString &  name  )  [inline, protected, virtual]

Open the file name in the store, for writing On success, this method must set m_stream to a stream in which we can write.

Parameters:
name "absolute path" (in the archive) to the file to open
Returns:
true on success

Implements KoStore.

Definition at line 34 of file KoDirectoryStore.h.

virtual bool KoDirectoryStore::openRead ( const QString &  name  )  [inline, protected, virtual]

Open the file name in the store, for reading.

On success, this method must set m_stream to a stream from which we can read, as well as setting m_iSize to the size of the file.

Parameters:
name "absolute path" (in the archive) to the file to open
Returns:
true on success

Implements KoStore.

Definition at line 35 of file KoDirectoryStore.h.

virtual bool KoDirectoryStore::closeRead (  )  [inline, protected, virtual]

Returns:
true on success

Implements KoStore.

Definition at line 36 of file KoDirectoryStore.h.

virtual bool KoDirectoryStore::closeWrite (  )  [inline, protected, virtual]

Returns:
true on success

Implements KoStore.

Definition at line 37 of file KoDirectoryStore.h.

bool KoDirectoryStore::enterRelativeDirectory ( const QString &  dirName  )  [protected, virtual]

Enter a subdirectory of the current directory.

The directory might not exist yet in Write mode.

Implements KoStore.

Definition at line 88 of file KoDirectoryStore.cpp.

bool KoDirectoryStore::enterAbsoluteDirectory ( const QString &  path  )  [protected, virtual]

Enter a directory where we've been before.

It is guaranteed to always exist.

Implements KoStore.

Definition at line 106 of file KoDirectoryStore.cpp.

bool KoDirectoryStore::fileExists ( const QString &  absPath  )  const [protected, virtual]

Check if a file exists inside the store.

Parameters:
absPath the absolute path inside the store, i.e. not relative to the current directory

Implements KoStore.

Definition at line 115 of file KoDirectoryStore.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys