|
void | createLog (ExportType exportType, QString szLog, QString *pszFile=nullptr) const |
| Exports the log and creates the file in the selected format.
|
|
const QDate & | date () const |
| Returns the date of the log.
|
|
const QString & | fileName () const |
| Returns the filename of the log.
|
|
void | getText (QString &szText) const |
| Returns the text of the log file.
|
|
| LogFile (const QString &szName) |
| Constructs the log file object.
|
|
const QString & | name () const |
| Returns the name of the log.
|
|
const QString & | network () const |
| Returns the network of the log.
|
|
Type | type () const |
| Returns the type of the log.
|
|
const QString & | typeString () const |
| Returns the type of the log.
|
|
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
void LogFile::createLog |
( |
ExportType | exportType, |
|
|
QString | szLog, |
|
|
QString * | pszFile = nullptr ) const |
Exports the log and creates the file in the selected format.
- Parameters
-
exportType | The type of file to export the log as. Either PlainText or HTML. |
szLog | The absolute path of the file to be created |
pszFile | The buffer to store the exported log name |
- Returns
- void
References __tr2qs_ctx, KviRegExp::cap(), Channel, Console, KviHtmlGenerator::convertToHtml(), KviFileUtils::copyFile(), date(), DccChat, KviFileUtils::directoryExists(), KviQString::ensureLastCharIs(), g_pApp, g_pIconManager, getText(), HTML, i, KVI_OPTION_MSGTYPE, KVI_OPTION_STRING, KVI_PATH_SEPARATOR_CHAR, KVI_RELEASE_NAME, KVI_VERSION, KviOption_stringIconThemeSubdir, KviRegExp::matchedLength(), name(), network(), Other, KviApplication::Pics, KviMessageTypeSettings::pixId(), PlainText, Query, KviRegExp::setPattern(), KviControlCodes::stripControlBytes(), KviApplication::Themes, and type().