|
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 atsmsstoreread.h |
|
15 // This contains CAtSmsStoreRead which is used to Read PDU Message |
|
16 // via aIndex |
|
17 // |
|
18 |
|
19 #ifndef ATSMSSTOREREAD_H |
|
20 #define ATSMSSTOREREAD_H |
|
21 |
|
22 //system include |
|
23 #include <e32std.h> |
|
24 #include <e32base.h> |
|
25 |
|
26 //user include |
|
27 #include "atcommandbase.h" |
|
28 |
|
29 // CLASS DECLARATION |
|
30 /** |
|
31 * CAtSmsStoreRead |
|
32 * |
|
33 */ |
|
34 class CAtSmsStoreRead : public CAtCommandBase |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Destructor |
|
39 * |
|
40 */ |
|
41 ~CAtSmsStoreRead(); |
|
42 |
|
43 /** |
|
44 * static NewL |
|
45 * |
|
46 * @param aGloblePhone |
|
47 * @param aCtsyDispatcherCallback |
|
48 */ |
|
49 static CAtSmsStoreRead* NewL(CGlobalPhonemanager& aGloblePhone, |
|
50 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
51 |
|
52 /** |
|
53 * static NewLC |
|
54 * |
|
55 * @param aGloblePhone |
|
56 * @param aCtsyDispatcherCallback |
|
57 */ |
|
58 static CAtSmsStoreRead* NewLC(CGlobalPhonemanager& aGloblePhone, |
|
59 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
60 |
|
61 /** |
|
62 * Virtual function. Inherited from CAtCommandBase |
|
63 * Start Execute AT Command |
|
64 */ |
|
65 virtual void ExecuteCommand(); |
|
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 |
|
88 /** |
|
89 * set message index should be read |
|
90 * |
|
91 * @param aIndex |
|
92 */ |
|
93 void SetMsgIndex(TInt aIndex); |
|
94 private: |
|
95 /** |
|
96 * Constructor |
|
97 * |
|
98 * @param aGloblePhone |
|
99 * @param aCtsyDispatcherCallback |
|
100 */ |
|
101 CAtSmsStoreRead(CGlobalPhonemanager& aGloblePhone, |
|
102 CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
103 |
|
104 /** |
|
105 * 2nd Constructor |
|
106 */ |
|
107 void ConstructL(); |
|
108 |
|
109 /** |
|
110 * Executer AT command for reading message via aIndex |
|
111 */ |
|
112 void ReadMessage(); |
|
113 private: |
|
114 /** |
|
115 * readmessage callback struct |
|
116 */ |
|
117 DispatcherPhonebook::TSmsData iSmsData; |
|
118 |
|
119 /** |
|
120 * The message index want to be read |
|
121 */ |
|
122 TInt iIndex; |
|
123 |
|
124 /** |
|
125 * The return error value of AT command executed |
|
126 */ |
|
127 TInt iError; |
|
128 |
|
129 }; // class CAtSmsStoreRead |
|
130 |
|
131 #endif // ATSMSSTOREREAD_H |