KVIrc
4.9.2
DeveloperAPIs
|
The LogFile class which handle any log file. More...
#include <LogFile.h>
Public Types | |
enum | ExportType { PlainText, HTML } |
Holds the type of the exported log file. More... | |
enum | Type { Channel = 0, Console = 1, Query = 2, DccChat = 3, Other = 4 } |
Holds the type of the log file. More... | |
Public Member Functions | |
const QDate & | date () const |
Returns the date of the log. More... | |
const QString & | fileName () const |
Returns the filename of the log. More... | |
void | getText (QString &szText) |
Returns the text of the log file. More... | |
LogFile (const QString &szName) | |
Constructs the log file object. More... | |
const QString & | name () const |
Returns the name of the log. More... | |
const QString & | network () const |
Returns the network of the log. More... | |
Type | type () const |
Returns the type of the log. More... | |
const QString & | typeString () const |
Returns the type of the log. More... | |
Private Attributes | |
bool | m_bCompressed |
QDate | m_date |
Type | m_eType |
QString | m_szFilename |
QString | m_szName |
QString | m_szNetwork |
QString | m_szType |
The LogFile class which handle any log file.
Log is in the format: $type_$nick.$network_$YYYY.$MM.$DD.log Examples: query_noldor.azzurra_2009.05.20.log channel_::slackware.azzurra_2009.11.03.log
enum LogFile::ExportType |
enum LogFile::Type |
LogFile::LogFile | ( | const QString & | szName | ) |
Constructs the log file object.
szName | The name of the log |
References Channel, Console, KviCString::cutToFirst(), DccChat, KviQString::equalCI(), KviStringConversion::fromString(), KviCString::hexDecode(), KVI_OPTION_UINT, KVI_PATH_SEPARATOR_CHAR, KviOption_uintOutputDatetimeFormat, m_bCompressed, m_date, m_eType, m_szFilename, m_szName, m_szNetwork, m_szType, Other, KviCString::ptr(), and Query.
|
inline |
Returns the date of the log.
References m_date.
Referenced by LogViewWindow::createLog(), LogViewWindow::filterNext(), LogListViewLog::LogListViewLog(), and LogListViewLog::operator<().
|
inline |
Returns the filename of the log.
References m_szFilename.
Referenced by LogListViewLog::fileName(), and getText().
void LogFile::getText | ( | QString & | szText | ) |
Returns the text of the log file.
szText | The buffer where to save the contents of the log |
References fileName(), and m_bCompressed.
Referenced by LogViewWindow::createLog(), and LogViewWindow::filterNext().
|
inline |
Returns the name of the log.
References m_szName.
Referenced by LogViewWindow::createLog(), LogViewWindow::filterNext(), and LogListViewItem::LogListViewItem().
|
inline |
Returns the network of the log.
References m_szNetwork.
Referenced by LogViewWindow::createLog(), and LogViewWindow::filterNext().
|
inline |
Returns the type of the log.
References m_eType.
Referenced by LogViewWindow::createLog(), and LogViewWindow::filterNext().
|
inline |
Returns the type of the log.
References m_szType.
Referenced by LogViewWindow::createLog().
|
private |
Referenced by fileName(), and LogFile().
|
private |
Referenced by LogFile(), and typeString().