ccallterminator.h 656 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef CCALLTERMINATOR_H
  2. #define CCALLTERMINATOR_H
  3. #include <Etel3rdParty.h>
  4. class MTerminatorObserver
  5. {
  6. public:
  7. virtual void CallTerminatedL( TInt aError ) = 0;
  8. virtual void CallRejectedL( TInt aError ) = 0;
  9. };
  10. class CCallTerminator: public CActive
  11. {
  12. public:
  13. CCallTerminator(MTerminatorObserver&, CTelephony*);
  14. ~CCallTerminator();
  15. void Terminate();
  16. void Reject();
  17. private:
  18. void RunL();
  19. void DoCancel();
  20. private:
  21. MTerminatorObserver& iObserver;
  22. CTelephony* iTelephony;
  23. CTelephony::TCallId iCallId;
  24. };
  25. #endif // CCALLTERMINATOR_H