1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef CCALLANSWERER_H
- #define CCALLANSWERER_H
- #include <Etel3rdParty.h>
- class MAnswerObserver
- {
- public:
- virtual void CallAnsweredL( TInt aError ) = 0;
- };
- class CCallAnswerer: public CActive
- {
- public:
- CCallAnswerer(MAnswerObserver&, CTelephony*);
- ~CCallAnswerer();
- void Answer();
- /*void Terminate();
- void Reject();
- enum Action {
- Unknown,
- Incoming,
- Hangup,
- Rejected
- };*/
- private:
- void RunL();
- void DoCancel();
- private:
- //Action action;
- MAnswerObserver& iObserver;
- CTelephony* iTelephony;
- CTelephony::TCallId iCallId;
- };
- #endif // CCALLANSWERER_H
|