KVIrc  4.9.2
DeveloperAPIs
Macros | Functions | Variables
KvsObject_file.cpp File Reference
#include "KvsObject_file.h"
#include "kvi_debug.h"
#include "KviLocale.h"
#include "KviError.h"
#include "KviFile.h"
#include "KviFileUtils.h"
#include "KvsObject_memoryBuffer.h"
#include <QStringList>
#include <QTextStream>

Macros

#define CHECK_FILE_IS_OPEN
 
#define mod_num   (sizeof(mod_tbl) / sizeof(mod_tbl[0]))
 

Functions

 if (m_pFile) delete m_pFile
 
 KVSO_CLASS_FUNCTION (file, setName)
 
 KVSO_CLASS_FUNCTION (file, name)
 
 KVSO_CLASS_FUNCTION (file, open)
 
 KVSO_CLASS_FUNCTION (file, isOpen)
 
 KVSO_CLASS_FUNCTION (file, close)
 
 KVSO_CLASS_FUNCTION (file, flush)
 
 KVSO_CLASS_FUNCTION (file, size)
 
 KVSO_CLASS_FUNCTION (file, atEnd)
 
 KVSO_CLASS_FUNCTION (file, where)
 
 KVSO_CLASS_FUNCTION (file, seek)
 
 KVSO_CLASS_FUNCTION (file, resize)
 
 KVSO_CLASS_FUNCTION (file, putch)
 
 KVSO_CLASS_FUNCTION (file, getch)
 
 KVSO_CLASS_FUNCTION (file, readByte)
 
 KVSO_CLASS_FUNCTION (file, unGetch)
 
 KVSO_CLASS_FUNCTION (file, readBlock)
 
 KVSO_CLASS_FUNCTION (file, read)
 
 KVSO_CLASS_FUNCTION (file, write)
 
 KVSO_CLASS_FUNCTION (file, writeBlock)
 
 KVSO_CLASS_FUNCTION (file, readLine)
 
 KVSO_CLASS_FUNCTION (file, writeLine)
 
 KVSO_CLASS_FUNCTION (file, readHexBlock)
 
 KVSO_CLASS_FUNCTION (file, writeHexBlock)
 

Variables

 m_pFile = new KviFile()
 
const QIODevice::OpenMode mod_cod []
 
const char *const mod_tbl []
 

Macro Definition Documentation

#define CHECK_FILE_IS_OPEN
Value:
if(!m_pFile->isOpen()) \
{ \
c->warning(__tr2qs_ctx("File is not open!", "objects")); \
return true; \
}
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
m_pFile
Definition: KvsObject_file.cpp:191
audacious __tr2qs_ctx("An interface for the UNIX Audacious media player.\n""Download it from http://audacious-media-player.org\n","mediaplayer")) static const char *xmms_lib_names[]

Referenced by KVSO_CLASS_FUNCTION().

#define mod_num   (sizeof(mod_tbl) / sizeof(mod_tbl[0]))

Referenced by KVSO_CLASS_FUNCTION().

Function Documentation

if ( m_pFile  )
KVSO_CLASS_FUNCTION ( file  ,
setName   
)
KVSO_CLASS_FUNCTION ( file  ,
name   
)

References c, CHECK_INTERNAL_POINTER, and m_pFile.

KVSO_CLASS_FUNCTION ( file  ,
open   
)
KVSO_CLASS_FUNCTION ( file  ,
isOpen   
)

References c, CHECK_INTERNAL_POINTER, and m_pFile.

KVSO_CLASS_FUNCTION ( file  ,
close   
)
KVSO_CLASS_FUNCTION ( file  ,
flush   
)
KVSO_CLASS_FUNCTION ( file  ,
size   
)

References c, CHECK_INTERNAL_POINTER, and m_pFile.

KVSO_CLASS_FUNCTION ( file  ,
atEnd   
)

References c, CHECK_INTERNAL_POINTER, and m_pFile.

KVSO_CLASS_FUNCTION ( file  ,
where   
)
KVSO_CLASS_FUNCTION ( file  ,
seek   
)
KVSO_CLASS_FUNCTION ( file  ,
resize   
)
KVSO_CLASS_FUNCTION ( file  ,
putch   
)
KVSO_CLASS_FUNCTION ( file  ,
getch   
)
KVSO_CLASS_FUNCTION ( file  ,
readByte   
)
KVSO_CLASS_FUNCTION ( file  ,
unGetch   
)
KVSO_CLASS_FUNCTION ( file  ,
readBlock   
)
KVSO_CLASS_FUNCTION ( file  ,
read   
)
KVSO_CLASS_FUNCTION ( file  ,
write   
)
KVSO_CLASS_FUNCTION ( file  ,
writeBlock   
)
KVSO_CLASS_FUNCTION ( file  ,
readLine   
)
KVSO_CLASS_FUNCTION ( file  ,
writeLine   
)
KVSO_CLASS_FUNCTION ( file  ,
readHexBlock   
)
KVSO_CLASS_FUNCTION ( file  ,
writeHexBlock   
)

Variable Documentation

m_pFile = new KviFile()

Referenced by KVSO_CLASS_FUNCTION().

const QIODevice::OpenMode mod_cod[]
Initial value:
= {
QIODevice::Unbuffered,
QIODevice::ReadOnly,
QIODevice::WriteOnly,
QIODevice::ReadWrite,
QIODevice::Append,
QIODevice::Truncate
}

Referenced by KVSO_CLASS_FUNCTION().

const char* const mod_tbl[]
Initial value:
= {
"Raw",
"ReadOnly",
"WriteOnly",
"ReadWrite",
"Append",
"Truncate"
}

Referenced by KVSO_CLASS_FUNCTION().