20 #ifndef __LOGVIEW_LOGVIEW_H 21 # define __LOGVIEW_LOGVIEW_H 23 #include <Plugins/iPlugin> 24 #include <Common/iLogger> 30 #include <QAbstractListModel> 68 :
dt(QDateTime::currentDateTime())
86 virtual int rowCount(QModelIndex
const & parent = QModelIndex())
const {
return mData.size(); }
88 virtual QVariant
data(QModelIndex
const & index,
int role = Qt::DisplayRole)
const;
92 QString
details(QModelIndex
const & index)
const;
109 static int const MaxLines;
115 QQueue<Message> mData;
118 QString mErrorString;
140 QString
const &
source()
const {
return mSource; }
144 mModel->addMessage(severity, text, where);
152 void currentChanged(QModelIndex
const &, QModelIndex
const &);
181 Window(QString
const & args,
QWidget * parent = 0, Qt::WindowFlags flags = 0);
185 virtual bool event(
QEvent * e);
197 void restoreSettings();
199 QString getPanelName(QString
const & args)
const;
206 QHash<QString, Widget *> mLogViews;
207 QStatusBar * wStatusBar;
225 virtual bool init(QString
const & args);
229 virtual bool isReady()
const {
return wWindow != 0; }
Common::iLogger::Severity severity
QString details(QModelIndex const &index) const
virtual QVariant data(QModelIndex const &index, int role=Qt::DisplayRole) const
QString errorString() const
bool COMMON_EXPORT init()
eVaf common library initialized
LogView module's implementation.
Data model for the log view widget.
virtual int rowCount(QModelIndex const &parent=QModelIndex()) const
Message const & messageAt(int idx) const
void messageAdded(QModelIndex const &index)
Common interface for all the eVaf modules.
Message(Common::iLogger::Severity s, QString const &t, QString const &w)
Number of severity levels.
bool saveToFile(QString const &fileName)
void addMessage(Common::iLogger::Severity severity, QString const &text, QString const &where)
bool copyToClipboard(QModelIndex const &index)
Severity
Severity levels for messages indicating the meaning and seriousness of the message.