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 atphbkengetinfo.h |
|
15 // This contains CAtPhbkEnGetInfo which is used to get emergency call info |
|
16 // |
|
17 |
|
18 #ifndef ATPHBKENGETINFO_H |
|
19 #define ATPHBKENGETINFO_H |
|
20 |
|
21 //system include |
|
22 #include <etelmm.h> |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 //user include |
|
27 #include "atcommandbase.h" |
|
28 |
|
29 /** |
|
30 * CAtPhbkEnGetInfo |
|
31 * |
|
32 */ |
|
33 class CAtPhbkEnGetInfo : public CAtCommandBase |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Destructor |
|
38 * |
|
39 */ |
|
40 ~CAtPhbkEnGetInfo(); |
|
41 |
|
42 /** |
|
43 * static NewL |
|
44 * |
|
45 * @param aGloblePhone |
|
46 * @param aCtsyDispatcherCallback |
|
47 */ |
|
48 static CAtPhbkEnGetInfo* NewL(CGlobalPhonemanager& aGloblePhone, |
|
49 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
50 |
|
51 /** |
|
52 * static NewLC |
|
53 * |
|
54 * @param aGloblePhone |
|
55 * @param aCtsyDispatcherCallback |
|
56 */ |
|
57 static CAtPhbkEnGetInfo* NewLC(CGlobalPhonemanager& aGloblePhone, |
|
58 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
59 |
|
60 /** |
|
61 * Virtual function. Inherited from CAtCommandBase |
|
62 * Start Execute AT Command |
|
63 */ |
|
64 virtual void ExecuteCommand(); |
|
65 |
|
66 /** |
|
67 * Will be called by AT Manager whenever a event was triggered |
|
68 * |
|
69 * @param aEventSource |
|
70 * @param aStatus |
|
71 */ |
|
72 virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); |
|
73 |
|
74 /** |
|
75 * Virtual function. Inherited from CAtCommandBase |
|
76 * |
|
77 * @param aResponseBuf Line buf reading from baseband |
|
78 */ |
|
79 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
80 |
|
81 /** |
|
82 * Start this request |
|
83 * |
|
84 */ |
|
85 void StartRequest(); |
|
86 private: |
|
87 /** |
|
88 * Constructor |
|
89 * |
|
90 * @param aGloblePhone |
|
91 * @param aCtsyDispatcherCallback |
|
92 */ |
|
93 CAtPhbkEnGetInfo(CGlobalPhonemanager& aGloblePhone, |
|
94 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
95 |
|
96 /** |
|
97 * 2nd Constructor |
|
98 */ |
|
99 void ConstructL(); |
|
100 |
|
101 /** |
|
102 * Executer AT command for getting Phone Store Info |
|
103 */ |
|
104 void GetEnStoreInfo(); |
|
105 private: |
|
106 |
|
107 /** |
|
108 * state machine for EventSignal |
|
109 */ |
|
110 enum |
|
111 { |
|
112 ESetEnStore, |
|
113 ESetEnStoreComplete, |
|
114 EGetEnStoreInfo, |
|
115 EGetEnStoreInfoComplete, |
|
116 EATNotInProgress |
|
117 }iState; |
|
118 |
|
119 /** |
|
120 * PhonebookEn used entries |
|
121 */ |
|
122 TUint16 iUsed; |
|
123 |
|
124 /** |
|
125 * PhonebookEn total entries |
|
126 */ |
|
127 TUint16 iTotal; |
|
128 |
|
129 /** |
|
130 * The return error value of AT command executed |
|
131 */ |
|
132 TInt iError; |
|
133 |
|
134 }; // class CAtPhbkEnGetInfo |
|
135 |
|
136 #endif // ATPHBKENGETINFO_H |
|