ccallanswerer.h 715 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef CCALLANSWERER_H
  2. #define CCALLANSWERER_H
  3. #include <Etel3rdParty.h>
  4. class MAnswerObserver
  5. {
  6. public:
  7. virtual void CallAnsweredL( TInt aError ) = 0;
  8. };
  9. class CCallAnswerer: public CActive
  10. {
  11. public:
  12. CCallAnswerer(MAnswerObserver&, CTelephony*);
  13. ~CCallAnswerer();
  14. void Answer();
  15. /*void Terminate();
  16. void Reject();
  17. enum Action {
  18. Unknown,
  19. Incoming,
  20. Hangup,
  21. Rejected
  22. };*/
  23. private:
  24. void RunL();
  25. void DoCancel();
  26. private:
  27. //Action action;
  28. MAnswerObserver& iObserver;
  29. CTelephony* iTelephony;
  30. CTelephony::TCallId iCallId;
  31. };
  32. #endif // CCALLANSWERER_H