summaryrefslogtreecommitdiffstats
path: root/kcontrol/info/info.h
blob: 36503a5562e1e5a18918d53cacd3bd5e0428c183 (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 <tqwidget.h>
#include <tqwidgetstack.h>
#include <tqframe.h>
#include <tqlabel.h>
#include <tqtabdialog.h>
#include <tqpushbutton.h>
#include <tqtimer.h>
#include <tqlistview.h>
#include <tqfile.h>
#include <tqevent.h>

#include <tdecmodule.h>
#include <kaboutdata.h>

#include "config.h"

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

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

class KInfoListWidget : public TDECModule
{
public:
  KInfoListWidget(const TQString &_title, TQWidget *parent, const char *name=0, bool _getlistbox (TQListView *)=0);

  virtual void load();
  virtual TQString quickHelp() const;
  
private:
  TQListView 	*lBox;
  bool 		(*getlistbox) (TQListView *);
  TQString title;
  
  TQLabel	*NoInfoText;
  TQString	ErrorString;
  TQWidgetStack  *widgetStack;
};

#endif