lib

KoStoreBase Class Reference

#include <KoStoreBase.h>

Inheritance diagram for KoStoreBase:
KoStore

Public Types

enum  FileMode { Local =1 , RemoteRead , RemoteWrite }
 
- Public Types inherited from KoStore
enum  Mode { Read , Write }
 
enum  Backend { Auto , Tar , Zip , Directory }
 

Protected Attributes

KURL m_url
 
FileMode m_fileMode
 
TQString m_localFileName
 
TQWidget * m_window
 
- Protected Attributes inherited from KoStore
Mode m_mode
 
TQStringList m_strFiles
 
TQStringList m_currentPath
 
TQValueStack< TQString > m_directoryStack
 
TQString m_sName
 
TQIODevice::Offset m_iSize
 
TQIODevice * m_stream
 
bool m_bIsOpen
 
bool m_bGood
 

Additional Inherited Members

- Public Member Functions inherited from KoStore
virtual ~KoStore ()
 
bool open (const TQString &name)
 
bool isOpen () const
 
bool close ()
 
TQIODevice * device () const
 
TQByteArray read (unsigned long int max)
 
TQ_LONG write (const TQByteArray &_data)
 
TQ_LONG read (char *_buffer, TQ_ULONG _len)
 
virtual TQ_LONG write (const char *_data, TQ_ULONG _len)
 
TQIODevice::Offset size () const
 
bool bad () const
 
Mode mode () const
 
bool enterDirectory (const TQString &directory)
 
bool leaveDirectory ()
 
TQString currentPath () const
 
TQString currentDirectory () const
 
void pushDirectory ()
 
void popDirectory ()
 
bool hasFile (const TQString &fileName) const
 
bool addLocalFile (const TQString &fileName, const TQString &destName)
 
TQStringList addLocalDirectory (const TQString &dirPath, const TQString &dest)
 
bool extractFile (const TQString &srcName, const TQString &fileName)
 
bool at (TQIODevice::Offset pos)
 
TQIODevice::Offset at () const
 
bool atEnd () const
 
void disallowNameExpansion (void)
 
- Static Public Member Functions inherited from KoStore
static KoStore * createStore (const TQString &fileName, Mode mode, const TQCString &appIdentification="", Backend backend=Auto)
 
static KoStore * createStore (TQIODevice *device, Mode mode, const TQCString &appIdentification="", Backend backend=Auto)
 
static KoStore * createStore (TQWidget *window, const KURL &url, Mode mode, const TQCString &appIdentification="", Backend backend=Auto)
 
- Protected Member Functions inherited from KoStore
virtual bool init (Mode mode)
 
virtual bool openWrite (const TQString &name)=0
 
virtual bool openRead (const TQString &name)=0
 
virtual bool closeRead ()=0
 
virtual bool closeWrite ()=0
 
virtual bool enterRelativeDirectory (const TQString &dirName)=0
 
virtual bool enterAbsoluteDirectory (const TQString &path)=0
 
virtual bool fileExists (const TQString &absPath) const =0
 
- Static Protected Attributes inherited from KoStore
static const int s_area = 30002
 

Detailed Description

Helper class for KoStore (mainly for remote file support)

Since
1.4

Definition at line 32 of file KoStoreBase.h.

Member Enumeration Documentation

◆ FileMode

enum KoStoreBase::FileMode

Definition at line 38 of file KoStoreBase.h.

Constructor & Destructor Documentation

◆ KoStoreBase()

KoStoreBase::KoStoreBase ( void  )

Definition at line 23 of file KoStoreBase.cpp.

◆ ~KoStoreBase()

KoStoreBase::~KoStoreBase ( void  )
virtual

Definition at line 27 of file KoStoreBase.cpp.

Member Data Documentation

◆ m_fileMode

FileMode KoStoreBase::m_fileMode
protected

Definition at line 46 of file KoStoreBase.h.

◆ m_localFileName

TQString KoStoreBase::m_localFileName
protected

Definition at line 47 of file KoStoreBase.h.

◆ m_url

KURL KoStoreBase::m_url
protected

original URL of the remote file (undefined for a local file)

Definition at line 45 of file KoStoreBase.h.

◆ m_window

TQWidget* KoStoreBase::m_window
protected

Definition at line 48 of file KoStoreBase.h.


The documentation for this class was generated from the following files: