|
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 atgetfdnstatus.h |
|
15 // |
|
16 |
|
17 #ifndef __ATGETFDNSTATUS_H__ |
|
18 #define __ATGETFDNSTATUS_H__ |
|
19 |
|
20 //system include |
|
21 #include <etelmm.h> |
|
22 #include <cmmutility.h> |
|
23 //user include |
|
24 #include "atcommandbase.h" |
|
25 |
|
26 |
|
27 /** |
|
28 * class CATGetFdnStatus |
|
29 * |
|
30 * CATGetFdnStatus inherits from the CAtCommandBase class. |
|
31 * This class transmits the AT+CPBS? Command in order to get |
|
32 * FDN status |
|
33 */ |
|
34 class CATGetFdnStatus : public CAtCommandBase |
|
35 { |
|
36 public: |
|
37 static CATGetFdnStatus* NewL(CGlobalPhonemanager& aGloblePhone, |
|
38 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
39 /** |
|
40 * Destructor |
|
41 * |
|
42 */ |
|
43 ~CATGetFdnStatus(); |
|
44 |
|
45 /** |
|
46 * Virtual function. Inherited from CAtCommandBase |
|
47 * Start Execute AT Command |
|
48 */ |
|
49 virtual void ExecuteCommand(); |
|
50 /** |
|
51 * Get |
|
52 */ |
|
53 TBool GetFdnStatus(); |
|
54 /** |
|
55 * Virtual function. Inherited from CAtCommandBase |
|
56 * @param aResponseBuf Line buf reading from baseband |
|
57 */ |
|
58 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
59 /** |
|
60 * The return error value of AT command executed |
|
61 */ |
|
62 TInt GetErrorValue(); |
|
63 |
|
64 virtual void StartRequest(); |
|
65 protected: |
|
66 /** |
|
67 * Constructor |
|
68 * |
|
69 * @param aGloblePhone |
|
70 * @param aCtsyDispatcherCallback |
|
71 */ |
|
72 CATGetFdnStatus(CGlobalPhonemanager& aGloblePhone, |
|
73 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
74 /** |
|
75 * 2nd Constructor |
|
76 */ |
|
77 void ConstructL(); |
|
78 private: |
|
79 /* |
|
80 * iFdnStatus is ETrue if FDN was activing |
|
81 */ |
|
82 TBool iFdnStatus; |
|
83 /* |
|
84 * The return error value of AT command executed |
|
85 */ |
|
86 TInt iError; |
|
87 |
|
88 |
|
89 }; |
|
90 #endif //__ATGETFDNSTATUS_H__ |