From b051d48fd5eff9045d245aef9ec7b99b32fea375 Mon Sep 17 00:00:00 2001 From: Elvio Basello Date: Thu, 14 Apr 2011 21:21:43 +0000 Subject: added initial implementation of $log.export() (wip); splitted LogFile class in its own files; added control procedure to call logview functions from log module git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5785 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/logview/LogViewWindow.h | 102 ++---------------------------------- 1 file changed, 4 insertions(+), 98 deletions(-) (limited to 'src/modules/logview/LogViewWindow.h') diff --git a/src/modules/logview/LogViewWindow.h b/src/modules/logview/LogViewWindow.h index 0e65ad18a..c0b06027a 100644 --- a/src/modules/logview/LogViewWindow.h +++ b/src/modules/logview/LogViewWindow.h @@ -26,6 +26,8 @@ // //============================================================================= +#include "LogFile.h" + #include "kvi_settings.h" #include "KviWindow.h" #include "KviModuleExtension.h" @@ -33,9 +35,6 @@ #include "KviPointerList.h" #include -#include -#include -#include class KviLogViewWidget; class LogListViewItem; @@ -44,101 +43,8 @@ class QProgressBar; class QStringList; class QLineEdit; class QDateEdit; - -/** -* \class LogFile -* \brief 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 -*/ -class LogFile -{ -public: - /** - * \enum Type - * \brief Holds the type of the log file - */ - enum Type { - Channel = 0, /**< the log file of a channel */ - Console = 1, /**< the log file of a console */ - Query = 2, /**< the log file of a query */ - DccChat = 3, /**< the log file of a dcc chat */ - Other = 4, /**< any other log file */ - }; - - /** - * \enum ExportType - * \brief Holds the type of the exported log file - */ - enum ExportType { - PlainText, /**< export log in plain text file */ - HTML, /**< export log in a HTML archive */ - //XML, /**< export log in a XML file */ - //DB /**< export log in a database file */ - }; - - /** - * \brief Constructs the log file object - * \param szName The name of the log - * \return LogFile - */ - LogFile(const QString & szName); -private: - Type m_eType; - QString m_szType; - QString m_szFilename; - bool m_bCompressed; - QString m_szName; - QString m_szNetwork; - QDate m_date; -public: - /** - * \brief Returns the type of the log - * \return Type - */ - Type type() const { return m_eType; }; - - /** - * \brief Returns the type of the log - * \return const QString & - */ - const QString & typeString() const { return m_szType; }; - - /** - * \brief Returns the filename of the log - * \return const QString & - */ - const QString & fileName() const { return m_szFilename; }; - - /** - * \brief Returns the name of the log - * \return const QString & - */ - const QString & name() const { return m_szName; }; - - /** - * \brief Returns the network of the log - * \return const QString & - */ - const QString & network() const { return m_szNetwork; }; - - /** - * \brief Returns the date of the log - * \return const QDate & - */ - const QDate & date() const { return m_date; }; - - /** - * \brief Returns the text of the log file - * \param szText The buffer where to save the contents of the log - * \return void - */ - void getText(QString & szText); -}; +class QTabWidget; +class QCheckBox; class LogViewListView : public QTreeWidget { -- cgit v1.3.1-10-gc9f91