• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

logman.h

Go to the documentation of this file.
00001 #ifndef LOGMAN_H
00002 #define LOGMAN_H
00003 
00004 #include <QWidget>
00005 
00006 class QTextBrowser;
00007 class QTextStream;
00008 
00012 class LogMan : public QWidget
00013 {
00014     Q_OBJECT
00015 
00016 public:
00017     LogMan(QWidget *parent = 0);
00018     ~LogMan();
00019 
00020 public slots:
00021     void write(const QString &message, const QString &prefix = QString());
00022     void scrollDown();
00023 
00024 private slots:
00025     void msgHandler(const int type, const QString msg);
00026     void msgDialog(const int type, const QString msg);
00027 
00028 private:
00029     void createOrder();
00030     void createObjects();
00031     
00032     QTextBrowser *m_logViewer;
00033     QTextStream *m_logFileStream;
00034     QTextStream *m_logArchiveStream;
00035 };
00036 
00037 #include <QMutex>
00038 #include <QMutexLocker>
00039 #include <QtMsgHandler>
00040 
00041 #endif // LOGMAN_H

Generated on Tue Aug 24 2010 15:58:55 for Smartlet by  doxygen 1.7.1