|
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 atmessagestoreinfo.h |
|
15 // This contains CAtMessageStoreInfo which is used to get message store information |
|
16 // |
|
17 |
|
18 #ifndef ATMESSAGESTOREINFO_H |
|
19 #define ATMESSAGESTOREINFO_H |
|
20 |
|
21 //system include |
|
22 #include <e32std.h> |
|
23 #include <e32base.h> |
|
24 |
|
25 //user include |
|
26 #include "atcommandbase.h" |
|
27 |
|
28 /** |
|
29 * CAtGetMessageStoreInfo |
|
30 * |
|
31 */ |
|
32 |
|
33 class CAtMessageStoreInfo : public CAtCommandBase |
|
34 { |
|
35 public: |
|
36 /** |
|
37 * Destructor |
|
38 * |
|
39 */ |
|
40 ~CAtMessageStoreInfo(); |
|
41 |
|
42 /** |
|
43 * static NewL |
|
44 * |
|
45 * @param aGloblePhone |
|
46 * @param aCtsyDispatcherCallback |
|
47 */ |
|
48 static CAtMessageStoreInfo* NewL(CGlobalPhonemanager& aGloblePhone, |
|
49 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
50 |
|
51 /** |
|
52 * static NewLC |
|
53 * |
|
54 * @param aGloblePhone |
|
55 * @param aCtsyDispatcherCallback |
|
56 */ |
|
57 static CAtMessageStoreInfo* 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 /** |
|
68 * Will be called by AT Manager whenever a event was triggered |
|
69 * |
|
70 * @param aEventSource |
|
71 * @param aStatus |
|
72 */ |
|
73 virtual void EventSignal(TAtEventSource aEventSource, TInt aStatus); |
|
74 |
|
75 /** |
|
76 * Virtual function. Inherited from CAtCommandBase |
|
77 * |
|
78 * @param aResponseBuf Line buf reading from baseband |
|
79 */ |
|
80 virtual void ParseResponseL(const TDesC8& aResponseBuf); |
|
81 |
|
82 /** |
|
83 * Start this request |
|
84 * |
|
85 */ |
|
86 void StartRequest(); |
|
87 private: |
|
88 /** |
|
89 * Constructor |
|
90 * |
|
91 * @param aGloblePhone |
|
92 * @param aCtsyDispatcherCallback |
|
93 */ |
|
94 CAtMessageStoreInfo(CGlobalPhonemanager& aGloblePhone, |
|
95 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
96 |
|
97 /** |
|
98 * 2nd Constructor |
|
99 */ |
|
100 void ConstructL(); |
|
101 |
|
102 /** |
|
103 * indicate how many items message stored |
|
104 */ |
|
105 TInt iUsed; |
|
106 |
|
107 /** |
|
108 * total items for storeing message |
|
109 */ |
|
110 TInt iTotal; |
|
111 |
|
112 /** |
|
113 * The return error value of AT command executed |
|
114 */ |
|
115 TInt iError; |
|
116 |
|
117 }; // class CAtMessageStoreInfo |
|
118 |
|
119 #endif // ATMESSAGESTOREINFO_H |