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

qmcallstate.h

Go to the documentation of this file.
00001 
00033 #ifndef QMCALLSTATE_H
00034 #define QMCALLSTATE_H
00035 
00036 #include <QtCore/qobject.h>
00037 #include "system_global.h"
00038 
00039 QT_BEGIN_HEADER
00040 
00041 namespace MeeGo {
00042 
00043 class QmCallStatePrivate;
00044 
00051 class QmCallState : public QObject
00052 {
00053     Q_OBJECT
00054     Q_ENUMS(State)
00055     Q_ENUMS(Type)
00056     Q_PROPERTY(State state READ getState)
00057     Q_PROPERTY(Type type READ getType)
00058 
00059 public:
00060 
00062     enum State
00063     {
00064         Error = -1,  
00065         None = 0,    
00066         Active,      
00067         Service      
00068     };
00069 
00071     enum Type
00072     {
00073         Normal = 0,  
00074         Emergency,   
00075         Unknown      
00076     };
00077 
00078 public:
00079     QmCallState(QObject *parent = 0);
00080     ~QmCallState();
00081 
00086     QmCallState::State getState() const;
00087 
00092     QmCallState::Type getType() const;
00093 
00101     bool setState(QmCallState::State state, QmCallState::Type type);
00102 
00103 Q_SIGNALS:
00109     void stateChanged(MeeGo::QmCallState::State state, MeeGo::QmCallState::Type type);
00110 
00111 protected:
00112     void connectNotify(const char *signal);
00113     void disconnectNotify(const char *signal);
00114 
00115 private:
00116     Q_DISABLE_COPY(QmCallState)
00117     MEEGO_DECLARE_PRIVATE(QmCallState)
00118 };
00119 
00120 } // namespace MeeGo
00121 
00122 QT_END_HEADER
00123 
00124 #endif // QMCALLSTATE_H

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