20#ifndef koDirectoryStore_h
21#define koDirectoryStore_h
23#include "KoStoreBase.h"
30 KoDirectoryStore(
const TQString& path, Mode _mode );
33 virtual bool init( Mode _mode );
34 virtual bool openWrite(
const TQString& name ) {
return openReadOrWrite( name, IO_WriteOnly ); }
35 virtual bool openRead(
const TQString& name ) {
return openReadOrWrite( name, IO_ReadOnly ); }
40 virtual bool fileExists(
const TQString& absPath )
const;
42 bool openReadOrWrite(
const TQString& name,
int iomode );
Helper class for KoStore (mainly for remote file support)
virtual bool closeRead()=0
virtual bool openRead(const TQString &name)=0
Open the file name in the store, for reading.
virtual bool closeWrite()=0
virtual bool openWrite(const TQString &name)=0
Open the file name in the store, for writing On success, this method must set m_stream to a stream in...
TQStringList m_currentPath
The "current directory" (path)
virtual bool fileExists(const TQString &absPath) const =0
Check if a file exists inside the store.
virtual bool init(Mode mode)
Init store - called by constructor.
virtual bool enterRelativeDirectory(const TQString &dirName)=0
Enter a subdirectory of the current directory.
virtual bool enterAbsoluteDirectory(const TQString &path)=0
Enter a directory where we've been before.