|
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 atgprsattach.h |
|
15 // This contains CATGprsAttach which is defines the AT command used for attacheing. |
|
16 // |
|
17 |
|
18 |
|
19 #ifndef _ATGPRSATTACH_H |
|
20 #define _ATGPRSATTACH_H |
|
21 |
|
22 // user include |
|
23 #include "atcommandbase.h" |
|
24 |
|
25 /** |
|
26 * CATGprsAttach inherits from the CAtCommandBase class. |
|
27 * This class provide the common functionalities for attacheing. |
|
28 * |
|
29 */ |
|
30 class CATGprsAttach : public CAtCommandBase |
|
31 { |
|
32 public: |
|
33 static CATGprsAttach* NewL(CGlobalPhonemanager& aGloblePhone, |
|
34 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
35 /** |
|
36 * Destructor |
|
37 * |
|
38 */ |
|
39 ~CATGprsAttach(); |
|
40 /** |
|
41 * Virtual function. Inherited from CAtCommandBase |
|
42 * Start Execute AT Command |
|
43 */ |
|
44 virtual void ExecuteCommand(); |
|
45 /** |
|
46 * Virtual function. Inherited from CAtCommandBase |
|
47 * Cancel the AT Command execution |
|
48 */ |
|
49 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
50 /** |
|
51 * Will be called by AT Manager whenever a event was triggered |
|
52 * |
|
53 * @param aEventSource |
|
54 * @param aStatus |
|
55 */ |
|
56 virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); |
|
57 virtual void StartRequest(); |
|
58 |
|
59 protected: |
|
60 /** |
|
61 * Constructor |
|
62 * |
|
63 * @param aGloblePhone |
|
64 * @param aCtsyDispatcherCallback |
|
65 */ |
|
66 CATGprsAttach(CGlobalPhonemanager& aGloblePhone, |
|
67 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
68 /** |
|
69 * 2nd Constructor |
|
70 */ |
|
71 void ConstructL(); |
|
72 private: |
|
73 /* |
|
74 * The return value of AT command executed |
|
75 */ |
|
76 TInt iError; |
|
77 }; |
|
78 #endif |