aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/logview/LogViewWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/logview/LogViewWindow.h')
-rw-r--r--src/modules/logview/LogViewWindow.h102
1 files changed, 4 insertions, 98 deletions
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 <QTreeWidget>
-#include <QTabWidget>
-#include <QDateTime>
-#include <QCheckBox>
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
{