qs60telephony_p.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef QS60TELEPHONY_P_H
  2. #define QS60TELEPHONY_P_H
  3. // INCLUDES
  4. #include "qs60telephony.h"
  5. #include "ccalldialer.h"
  6. #include "ccallanswerer.h"
  7. #include "ccallterminator.h"
  8. #include "ctelephonymonitor.h"
  9. #include "IMEIApp.h"
  10. #ifdef RECENT_CALLS
  11. #include "crecentcalls.h"
  12. #endif
  13. // CLASS DECLARATION
  14. class QS60TelephonyPrivate: public CBase
  15. , public MDialObserver
  16. , public MTelephonyStatusObserver
  17. , public MAnswerObserver
  18. , public MTerminatorObserver
  19. {
  20. public:
  21. QS60TelephonyPrivate(QS60Telephony* telephony);
  22. ~QS60TelephonyPrivate();
  23. void call(const QString& phoneNumber);
  24. void answerIncomingCall();
  25. void terminateCall();
  26. void rejectCall();
  27. bool startMonitoringLine();
  28. void stopMonitoringLine();
  29. QString IMEI();
  30. #ifdef RECENT_CALLS
  31. void recentCalls();
  32. #endif
  33. QS60Telephony::Error error();
  34. void showOnTop();
  35. void showNormal();
  36. void toBackground();
  37. private: //From MDialObserver
  38. void CallDialedL(TInt aError);
  39. private: //From MAnswerObserver
  40. void CallAnsweredL(TInt aError);
  41. private: //From MTerminatorObserver
  42. void CallTerminatedL(TInt aError);
  43. void CallRejectedL(TInt aError);
  44. private: // From MTelephonyStatusObserver
  45. void TelephonyStatusChangedL(CTelephony::TCallStatus aStatus, const TDesC& aNumber);
  46. void ErrorOccuredL(TInt aError);
  47. private:
  48. QS60Telephony* q;
  49. CTelephony* iTelephony;
  50. CCallDialer* iCallDialer;
  51. CCallAnswerer* iCallAnswerer;
  52. CCallTerminator* iCallTerminator;
  53. CTelephonyMonitor* iTelephonyMonitor;
  54. #ifdef RECENT_CALLS
  55. CRecentCalls* iRecentCalls;
  56. #endif
  57. int iError;
  58. };
  59. #endif /*QS60TELEPHONY_P_H*/
  60. // End of file