|
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 __ATCONNCT_H__ |
|
22 #define __ATCONNCT_H__ |
|
23 |
|
24 #include "ATCALL.H" |
|
25 |
|
26 class CATConnectData : public CATDataCallConnectCommands |
|
27 /** |
|
28 Connect command |
|
29 @internalTechnology |
|
30 */ |
|
31 { |
|
32 public: |
|
33 static CATConnectData* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
34 ~CATConnectData(); |
|
35 virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
36 virtual void Stop(TTsyReqHandle aTsyReqHandle); |
|
37 protected: |
|
38 CATConnectData(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 TInt AddConnectExpectStrings(); |
|
43 void RemoveConnectExpectStrings(); |
|
44 TInt ValidateConnectExpectString(); |
|
45 private: |
|
46 CCommChatString* iNoDialToneExpectString; |
|
47 enum { |
|
48 EATNotInProgress, |
|
49 EATInitialising, |
|
50 EATSendConnectCommand, |
|
51 EATConnectWaitForWriteComplete, |
|
52 EATConnectReadCompleted, |
|
53 EATSpeedReadComplete, |
|
54 EATCancellingWaitForWriteComplete, |
|
55 EATCancellingReadCompleted |
|
56 } iState; |
|
57 TBuf8<KCommsDbSvrMaxFieldLength> iNoDialToneString; |
|
58 }; |
|
59 |
|
60 class CATConnectFax : public CATFaxCallConnectCommands |
|
61 /** |
|
62 @internalComponent |
|
63 */ |
|
64 { |
|
65 public: |
|
66 static CATConnectFax* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
67 ~CATConnectFax(); |
|
68 virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
69 virtual void Stop(TTsyReqHandle aTsyReqHandle); |
|
70 protected: |
|
71 CATConnectFax(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
72 virtual void EventSignal(TEventSource aSource); |
|
73 virtual void CompleteSuccessfully(); |
|
74 }; |
|
75 |
|
76 #endif |