|
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 #ifndef _ATGPRSCLASS_H |
|
17 #define _ATGPRSCLASS_H |
|
18 #include "ATBASE.H" |
|
19 |
|
20 /**@file |
|
21 @internalAll */ |
|
22 |
|
23 class CATGprsClass : public CATCommands |
|
24 /** |
|
25 Sends the AT command to set the class. |
|
26 CATGprsAttach inherits from the CATCommands class. |
|
27 This class transmits the AT+CGCLASS=%S Command to set the class. |
|
28 @internalComponent |
|
29 */ |
|
30 { |
|
31 public: |
|
32 static CATGprsClass* NewL(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals); |
|
33 |
|
34 ~CATGprsClass(); |
|
35 virtual void Start(TTsyReqHandle aTsyReqHandle, TAny* aParams); |
|
36 virtual void Stop(TTsyReqHandle aTsyReqHandle); |
|
37 protected: |
|
38 CATGprsClass(CATIO* aIo, CTelObject* aTelObject, CATInit* aInit, CPhoneGlobals* aPhoneGlobals); |
|
39 void ConstructL(); |
|
40 virtual void EventSignal(TEventSource aSource); |
|
41 virtual void CompleteWithIOError(TEventSource aSource,TInt aStatus); |
|
42 void Complete(TInt aError,TEventSource aSource); |
|
43 |
|
44 private: |
|
45 TInt MakeupCGCLASS(RPacketService::TMSClass aClass); |
|
46 |
|
47 RPacketService::TMSClass* iClass; //< Pointer to clients MSClass structure. |
|
48 enum |
|
49 { |
|
50 EATNotInProgress, |
|
51 ESendClassCommand, |
|
52 EClassReadComplete |
|
53 }iState; //< Enum for class states. |
|
54 }; |
|
55 #endif |
|
56 |
|
57 |