~ubuntu-branches/ubuntu/dapper/ksystemlog/dapper

« back to all changes in this revision

Viewing changes to ksystemlog/src/logListItem.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-07-07 16:00:00 UTC
  • Revision ID: james.westby@ubuntu.com-20050707160000-a104d769ph3yfkg4
Tags: upstream-0.3.2
ImportĀ upstreamĀ versionĀ 0.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2005 by Nicolas Ternisien                               *
 
3
 *   nicolas.ternisien@gmail.com                                           *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
 
19
 ***************************************************************************/
 
20
#ifndef LOG_LIST_ITEM_H
 
21
#define LOG_LIST_ITEM_H
 
22
 
 
23
#include <qobject.h>
 
24
#include <qstringlist.h>
 
25
#include <qfile.h>
 
26
#include <qpixmap.h>
 
27
#include <qmap.h>
 
28
#include <qregexp.h>
 
29
 
 
30
#include <kiconloader.h>
 
31
#include <kurl.h>
 
32
#include <klistview.h>
 
33
 
 
34
#include "globals.h"
 
35
 
 
36
#include "logLine.h"
 
37
 
 
38
 
 
39
class LogLine;
 
40
class LogMode;
 
41
class XorgLogLine;
 
42
 
 
43
 
 
44
 
 
45
/**
 
46
 * @author Nicolas Ternisien
 
47
 */
 
48
class LogListItem : public KListViewItem {
 
49
        
 
50
        public:
 
51
                LogListItem(QListView* list, LogLine* l);
 
52
                
 
53
                LogListItem(QListViewItem* parent, LogLine* l);
 
54
 
 
55
                ~LogListItem();
 
56
                
 
57
                QDateTime& getTime();
 
58
                
 
59
                virtual int compare(QListViewItem * i, int col, bool ascending) const;
 
60
                
 
61
                QString getFormattedText();
 
62
                QString getToolTipText();
 
63
                
 
64
                LogLine* getLogLine();
 
65
                
 
66
                virtual void paintCell(QPainter* p, const QColorGroup &cg, int column, int width, int align);
 
67
                
 
68
                QString exportToText();
 
69
                
 
70
        protected:
 
71
                LogLine* line;
 
72
 
 
73
};
 
74
 
 
75
#endif //LOG_LIST_ITEM_H