KoStore.h
60 static KoStore* createStore( const TQString& fileName, Mode mode, const TQCString & appIdentification = "", Backend backend = Auto );
67 static KoStore* createStore( TQIODevice *device, Mode mode, const TQCString & appIdentification = "", Backend backend = Auto );
89 static KoStore* createStore( TQWidget* window, const KURL& url, Mode mode, const TQCString & appIdentification = "", Backend backend = Auto );
virtual bool closeRead()=0
virtual bool openRead(const TQString &name)=0
Open the file name in the store, for reading.
bool isOpen() const
Check whether a file inside the store is currently opened with open(), ready to be read or written.
Definition KoStore.cpp:236
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...
TQIODevice * device() const
Get a device for reading a file from the store directly (slightly faster than read() calls) You need ...
Definition KoStore.cpp:260
virtual bool fileExists(const TQString &absPath) const =0
Check if a file exists inside the store.
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.
TQ_LONG write(const TQByteArray &_data)
Write data into the currently opened file.
Definition KoStore.cpp:307
static KoStore * createStore(const TQString &fileName, Mode mode, const TQCString &appIdentification="", Backend backend=Auto)
Open a store (i.e.
Definition KoStore.cpp:57
TQByteArray read(unsigned long int max)
Read data from the currently opened file.
Definition KoStore.cpp:269
TQValueStack< TQString > m_directoryStack
Used to push/pop directories to make it easy to save/restore the state.
Definition KoStore.h:355
TQStringList m_strFiles
Store the filenames (with full path inside the archive) when writing, to avoid duplicates.
Definition KoStore.h:349
