source: src-qt4/life-preserver/LPMessages.h @ e0c368d

9.2-releasereleng/10.0releng/10.0.1
Last change on this file since e0c368d was e0c368d, checked in by Ken Moore <ken@…>, 7 months ago

Create a new "LPMessages" dialog class and integrate it into the tray application. This will show the full messages that are available, as well as display the contents of any known log/error files that the watcher is aware of.

  • Property mode set to 100644
File size: 634 bytes
Line 
1#ifndef _LP_MESSAGES_H
2#define _LP_MESSAGES_H
3
4#include <QDialog>
5#include <QStringList>
6#include <QString>
7#include <QFile>
8#include <QTextStream>
9#include <QDebug>
10#include <QCloseEvent>
11
12namespace Ui{
13        class LPMessages;
14};
15
16class LPMessages : public QDialog{
17        Q_OBJECT
18public:
19        LPMessages(QWidget *parent=0);
20        ~LPMessages();
21
22        void setMessages(QString msg);
23        void setErrors(QString err);
24        void setLogFiles(QStringList logs);
25
26private:
27        Ui::LPMessages *ui;
28        bool logsAvailable;
29        void displayLogFile(QString logfile);
30
31private slots:
32        void slotChangeLog();
33        void closeDialog();
34
35protected:
36        void closeEvent(QCloseEvent*);
37
38};
39#endif
Note: See TracBrowser for help on using the repository browser.