|
1 // Copyright (c) 2001-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 _ATGPRSATTACH_H |
|
22 #define _ATGPRSATTACH_H |
|
23 #include "ATBASE.H" |
|
24 |
|
25 |
|
26 |
|
27 class CATGprsAttach : public CATCommands |
|
28 /** |
|
29 Sends the AT command to connect to the GPRS network. |
|
30 CATGprsAttach inherits from the CATCommands class. |
|
31 This class transmits the AT+CGATT=1 Command to connect to the GPRS network. |
|
32 @internalComponent |
|
33 */ |
|
34 { |
|
35 public: |
|
36 static CATGprsAttach* NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals); |
|
37 ~CATGprsAttach(); |
|
38 virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
39 virtual void Stop(TTsyReqHandle aTsyReqHandle); |
|
40 |
|
41 private: |
|
42 CATGprsAttach(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals); |
|
43 void ConstructL(); |
|
44 virtual void EventSignal(TEventSource aSource); |
|
45 virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus); |
|
46 void Complete(TInt aError,TEventSource aSource); |
|
47 |
|
48 private: |
|
49 enum |
|
50 { |
|
51 EATNotInProgress, |
|
52 ESendAttachCommand, |
|
53 EAttachReadComplete |
|
54 } iState; //< Enum for class states. |
|
55 }; |
|
56 #endif |