• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

qmthermal.h

Go to the documentation of this file.
00001 
00032 #ifndef QMTHERMAL_H
00033 #define QMTHERMAL_H
00034 
00035 #include "system_global.h"
00036 #include <QtCore/qobject.h>
00037 
00038 QT_BEGIN_HEADER
00039 
00040 namespace MeeGo{
00041 
00042 class QmThermalPrivate;
00043 
00050 class QmThermal : public QObject
00051 {
00052     Q_OBJECT
00053     Q_ENUMS(ThermalState)
00054     Q_PROPERTY(ThermalState state READ get)
00055 
00056 public:
00058     enum ThermalState
00059     {
00060         Normal = 0, 
00061         Warning,    
00062         Alert,      
00063         Unknown,    
00064         Error       
00065     };
00066 
00067 
00068 public:
00073     QmThermal(QObject *parent = 0);
00074         
00078     ~QmThermal();
00079 
00084     ThermalState get() const;
00085 
00086 Q_SIGNALS:
00091     void thermalChanged(MeeGo::QmThermal::ThermalState state);
00092 
00093 protected:
00094     void connectNotify(const char *signal);
00095     void disconnectNotify(const char *signal);
00096 
00097 private:
00098     Q_DISABLE_COPY(QmThermal)
00099     MEEGO_DECLARE_PRIVATE(QmThermal)
00100 };
00101 
00102 } // MeeGo namespace
00103 
00104 QT_END_HEADER
00105 
00106 #endif /*QMTHERMAL_H*/
00107 
00108 // End of file
00109 

Generated on Mon Jul 4 2011 14:27:35 for QmSystem by  doxygen 1.7.1