summaryrefslogtreecommitdiffstats
path: root/kcontrol/info/info.h
blob: c55c1b2a5ce9696a17c203f5c09c52c9f8ed0943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef _INFO_H_
#define _INFO_H_

#include <qwidget.h>
#include <qwidgetstack.h>
#include <qframe.h>
#include <qlabel.h>
#include <qtabdialog.h>
#include <qpushbutton.h>
#include <qtimer.h>
#include <qlistview.h>
#include <qfile.h>
#include <qevent.h>

#include <kcmodule.h>
#include <kaboutdata.h>

#include "config.h"

/* function call-back-prototypes... */

bool GetInfo_CPU( QListView *lBox );
bool GetInfo_IRQ( QListView *lBox );
bool GetInfo_DMA( QListView *lBox );
bool GetInfo_PCI( QListView *lBox );
bool GetInfo_IO_Ports( QListView *lBox );
bool GetInfo_Sound( QListView *lBox );
bool GetInfo_Devices( QListView *lBox );
bool GetInfo_SCSI( QListView *lBox );
bool GetInfo_Partitions( QListView *lBox );
bool GetInfo_XServer_and_Video( QListView *lBox );
bool GetInfo_CD_ROM( QListView *lBox ); /* New CD-ROM Info */
extern bool GetInfo_OpenGL( QListView *lBox );

class KInfoListWidget : public KCModule
{
public:
  KInfoListWidget(const QString &_title, QWidget *parent, const char *name=0, bool _getlistbox (QListView *)=0);

  virtual void load();
  virtual QString quickHelp() const;
  
private:
  QListView 	*lBox;
  bool 		(*getlistbox) (QListView *);
  QString title;
  
  QLabel	*NoInfoText;
  QString	ErrorString;
  QWidgetStack  *widgetStack;
};

#endif