|
1 // Copyright (c) 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 // @file atgprscontextdeactivate.h |
|
15 // AT command definition |
|
16 // This file defines the AT command used for deactivating a PDP context. |
|
17 // |
|
18 |
|
19 |
|
20 #ifndef __ATGPRSCONTEXTDEACTIVATE_H |
|
21 #define __ATGPRSCONTEXTDEACTIVATE_H |
|
22 |
|
23 #include "atcommandbase.h" |
|
24 #include "cltsypacketserviceshandler.h" |
|
25 |
|
26 /** |
|
27 * CATGprsContextDelete inherits from the CATCommands class. |
|
28 * Sends the AT command to deactivate a context to the network. |
|
29 */ |
|
30 class CATGprsContextDeactivate : public CAtCommandBase |
|
31 { |
|
32 public: |
|
33 static CATGprsContextDeactivate* NewL(CGlobalPhonemanager& aGloblePhone, |
|
34 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
35 /** |
|
36 * Destructor |
|
37 * |
|
38 */ |
|
39 ~CATGprsContextDeactivate(); |
|
40 /** |
|
41 * Virtual function. Inherited from CAtCommandBase |
|
42 * Start Execute AT Command |
|
43 */ |
|
44 virtual void ExecuteCommand(); |
|
45 /* |
|
46 * Set the parameter of AT command |
|
47 * |
|
48 * @param aContext The context to be set configuration |
|
49 */ |
|
50 void SetContext(const TInt aContextId); |
|
51 /** |
|
52 * Virtual function. Inherited from CAtCommandBase |
|
53 * @param aResponseBuf Line buf reading from baseband |
|
54 */ |
|
55 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
56 /** |
|
57 * Will be called by AT Manager whenever a event was triggered |
|
58 * |
|
59 * @param aEventSource |
|
60 * @param aStatus |
|
61 */ |
|
62 virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); |
|
63 virtual void StartRequest(); |
|
64 |
|
65 protected: |
|
66 /** |
|
67 * Constructor |
|
68 * |
|
69 * @param aGloblePhone |
|
70 * @param aCtsyDispatcherCallback |
|
71 */ |
|
72 CATGprsContextDeactivate(CGlobalPhonemanager& aGloblePhone, |
|
73 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
74 /** |
|
75 * 2nd Constructorr |
|
76 */ |
|
77 void ConstructL(); |
|
78 private: |
|
79 /* |
|
80 * The return value of AT command executed |
|
81 */ |
|
82 TInt iError; |
|
83 /* |
|
84 * The context to be set configuration |
|
85 */ |
|
86 TInt iContextId; |
|
87 }; |
|
88 |
|
89 #endif |