|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalAll |
|
19 */ |
|
20 |
|
21 #ifndef __ATANSWER_H__ |
|
22 #define __ATANSWER_H__ |
|
23 |
|
24 #include "ATCALL.H" |
|
25 |
|
26 class CATAnswerVoice : public CATVoiceCallConnectCommands |
|
27 /** |
|
28 @internalComponent |
|
29 */ |
|
30 { |
|
31 public: |
|
32 static CATAnswerVoice* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
33 ~CATAnswerVoice(); |
|
34 virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
35 virtual void Stop(TTsyReqHandle aTsyReqHandle); |
|
36 virtual void Complete(TInt aError,TEventSource aSource); |
|
37 protected: |
|
38 CATAnswerVoice(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
39 virtual void EventSignal(TEventSource aSource); |
|
40 virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus); |
|
41 private: |
|
42 enum { |
|
43 EATNotInProgress, |
|
44 EATInitialising, |
|
45 EATSendAnswerCommand, |
|
46 EATAnswerWaitForWriteComplete, |
|
47 EATAnswerReadCompleted, |
|
48 EATTickleWaitForWriteComplete, |
|
49 EATTickleReadCompleted, |
|
50 EATCancellingWaitForWriteComplete, |
|
51 EATCancellingReadCompleted, |
|
52 EDTRDropped, |
|
53 EWaitForDTRRaiseSettle, |
|
54 EATHangupWaitForWriteComplete, |
|
55 EATHangupReadCompleted |
|
56 } iState; |
|
57 }; |
|
58 |
|
59 |
|
60 class CATWaitForNoCarrier; |
|
61 class CATAnswerData : public CATDataCallConnectCommands |
|
62 /** |
|
63 @internalComponent |
|
64 */ |
|
65 { |
|
66 public: |
|
67 static CATAnswerData* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
68 ~CATAnswerData(); |
|
69 virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
70 virtual void Stop(TTsyReqHandle aTsyReqHandle); |
|
71 virtual void Complete(TInt aError,TEventSource aSource); |
|
72 protected: |
|
73 CATAnswerData(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
74 virtual void EventSignal(TEventSource aSource); |
|
75 virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus); |
|
76 private: |
|
77 TInt ValidateAnswerExpectString(); |
|
78 private: |
|
79 enum { |
|
80 EATNotInProgress, |
|
81 EATInitialising, |
|
82 EATSendAnswerCommand, |
|
83 EATAnswerWaitForWriteComplete, |
|
84 EATAnswerReadCompleted, |
|
85 EATSpeedReadCompleted, |
|
86 EATCancellingWaitForWriteComplete, |
|
87 EATCancellingReadCompleted, |
|
88 EDTRDropped, |
|
89 EWaitForDTRRaiseSettle, |
|
90 EATHangupWaitForWriteComplete, |
|
91 EATHangupReadCompleted |
|
92 } iState; |
|
93 }; |
|
94 |
|
95 class CCallMobileFax; |
|
96 class CATAnswerFax : public CATFaxCallConnectCommands |
|
97 /** |
|
98 @internalComponent |
|
99 */ |
|
100 { |
|
101 public: |
|
102 static CATAnswerFax* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
103 ~CATAnswerFax(); |
|
104 void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
105 void Stop(TTsyReqHandle aTsyReqHandle); |
|
106 protected: |
|
107 CATAnswerFax(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
108 virtual void EventSignal(TEventSource aSource); |
|
109 virtual void CompleteSuccessfully(); |
|
110 }; |
|
111 |
|
112 #endif |