|
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 // Set to online data mode |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalAll |
|
21 */ |
|
22 |
|
23 #ifndef __ATO_H__ |
|
24 #define __ATO_H__ |
|
25 |
|
26 #include "ATCALL.H" |
|
27 |
|
28 class CATSetToOnlineDataMode : public CATCallAlterCommands |
|
29 /** |
|
30 @internalComponent |
|
31 */ |
|
32 { |
|
33 public: |
|
34 static CATSetToOnlineDataMode* NewL(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
35 ~CATSetToOnlineDataMode(); |
|
36 virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
37 virtual void Stop(TTsyReqHandle aTsyReqHandle); |
|
38 protected: |
|
39 CATSetToOnlineDataMode(CATIO* aIo, CTelObject* aTelObject,CATInit* aInit,CPhoneGlobals* aPhoneGlobals); |
|
40 virtual void EventSignal(TEventSource aSource); |
|
41 virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus); |
|
42 virtual void Complete(TInt aError,TEventSource aSource); |
|
43 private: |
|
44 void ValidateExpectStringWithConnectL(); |
|
45 void RemoveATOExpectStrings(); |
|
46 private: |
|
47 enum { |
|
48 EATNotInProgress, |
|
49 EATOWaitForWriteComplete, |
|
50 EATOReadCompleted, |
|
51 EATCancelling |
|
52 } iState; |
|
53 CCommChatString* iConnectExpectString; |
|
54 TBuf8<KCommsDbSvrMaxFieldLength> iConnectString; |
|
55 }; |
|
56 |
|
57 #endif |