summaryrefslogtreecommitdiff
path: root/core/applets/batteryapplet/batterystatus.h
Unidiff
Diffstat (limited to 'core/applets/batteryapplet/batterystatus.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/batteryapplet/batterystatus.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/core/applets/batteryapplet/batterystatus.h b/core/applets/batteryapplet/batterystatus.h
index 0dc25af..18c2943 100644
--- a/core/applets/batteryapplet/batterystatus.h
+++ b/core/applets/batteryapplet/batterystatus.h
@@ -27,20 +27,32 @@ class PowerStatus;
27class BatteryStatus : public QWidget 27class BatteryStatus : public QWidget
28{ 28{
29 Q_OBJECT 29 Q_OBJECT
30public: 30public:
31 BatteryStatus( const PowerStatus *s, QWidget *parent=0 ); 31 BatteryStatus( const PowerStatus *s, QWidget *parent=0 );
32 ~BatteryStatus(); 32 ~BatteryStatus();
33 33
34 void updatePercent( int ); 34 void updatePercent( int );
35 35
36protected: 36protected:
37 void drawSegment( QPainter *p, const QRect &r, const QColor &topgrad, const QColor &botgrad, const QColor &highlight, int hightlight_height ); 37 void drawSegment( QPainter *p, const QRect &r, const QColor &topgrad, const QColor &botgrad, const QColor &highlight, int hightlight_height );
38 void paintEvent( QPaintEvent *pe ); 38 void paintEvent( QPaintEvent *pe );
39 39 bool BatteryStatus::getProcApmStatusIpaq();
40private: 40private:
41 const PowerStatus *ps; 41 const PowerStatus *ps;
42 int percent; 42 int percent;
43 int ipaqPercent;
44 int jackPercent;
45 int jackMinutes;
46 QString perc1;
47 QString sec1;
48 QString perc2;
49 QString sec2;
50 QString ipaqStatus;
51 QString jackStatus;
52 QString ipaqChem;
53 QString jackChem;
54 bool bat2;
43}; 55};
44 56
45#endif 57#endif
46 58