summaryrefslogtreecommitdiffstats
path: root/kmilo/kmilo_kvaio/kmilo_kvaio.h
blob: 851a74e50ab3b403e1ffcd8b3b948d0c87cf7adf (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* -*- C++ -*-

   This file declares the KVaio module for KMilo.

   $ Author: Mirko Boehm $
   $ Copyright: (C) 1996-2003, Mirko Boehm $
   $ Contact: [email protected]
         http://www.kde.org
         http://www.hackerbuero.org $
   $ License: LGPL with the following explicit clarification:
         This code may be linked against any version of the TQt toolkit
         from Troll Tech, Norway. $

   $Id$

   * Portions of this code are
   * (C) 2001-2002 Stelian Pop <[email protected]> and
   * (C) 2001-2002 Alcove <www.alcove.com>.
   * Thanks to Stelian for the implementation of the sonypi driver.
*/

#ifndef _KMILO_KVAIO_H_
#define _KMILO_KVAIO_H_

#include <tdemainwindow.h>
#include <kglobalaccel.h>
#include <dcopref.h>
#include <tdeapplication.h>

#include "kmilod.h"
#include "monitor.h"
#include "kmilointerface.h"

class KVaio;

class KMiloKVaio : public KMilo::Monitor {
//	Q_OBJECT
  

	public:
		KMiloKVaio(TQObject *parent, 
			   const char *name, const TQStringList&);
		virtual ~KMiloKVaio();

		virtual bool init();
		virtual DisplayType poll();
		virtual int progress() const;

		virtual void reconfigure(TDEConfig*);


		bool showTextMsg(const TQString& msg) {
		    _interface->displayText(msg); 
		    return true;
		}
		bool showProgressMsg(const TQString& msg, int progress) {
		    _interface->displayProgress(msg,progress);
		    return true;
		}

	private:
		KVaio *m_kvaio;
		Monitor::DisplayType m_displayType;
};


#endif