|
1 /* |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CMMSMSGSMEXT_H |
|
21 #define CMMSMSGSMEXT_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <et_phone.h> |
|
25 #include "cmmsmsextinterface.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CMmSmsTsy; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * CMmSmsGsmExt contains mode-dependent phone functionality for GSM phone. |
|
34 * Extension request handles are stored in MM Phone object. |
|
35 */ |
|
36 NONSHARABLE_CLASS( CMmSmsGsmExt ) : public CMmSmsExtInterface |
|
37 { |
|
38 public: |
|
39 /** |
|
40 * Two-phased constructor. |
|
41 */ |
|
42 static CMmSmsGsmExt* NewL(); |
|
43 |
|
44 /** |
|
45 * Destructor |
|
46 */ |
|
47 virtual ~CMmSmsGsmExt(); |
|
48 |
|
49 /** |
|
50 * Takes reception of incoming unstored SMS |
|
51 * |
|
52 * |
|
53 * @param aSmsMsg Pointer to the sms message |
|
54 * @param iReceiveMessageParamsPtr Pointer to the Receive Message |
|
55 * params |
|
56 * @param iReceiveMessagePduPtr Pointer to the Receive Message Pdu |
|
57 * @return Error value |
|
58 */ |
|
59 virtual TInt CompleteReceiveMessage( TSmsMsg* aSmsMsg, |
|
60 TAny* iReceiveMessageParamsPtr, |
|
61 TDes8* iReceiveMessagePduPtr ); |
|
62 |
|
63 /** |
|
64 * Set store info attributes values |
|
65 * |
|
66 * |
|
67 * @param iGetMessageStoreInfoPtr Pointer to get message store info |
|
68 * @param aTotalEntries Total entries |
|
69 * @param aUsedEntries Used entries |
|
70 * @return KErrNone |
|
71 */ |
|
72 virtual TInt MessageStoreInfo( TAny* iGetMessageStoreInfoPtr, |
|
73 TInt aTotalEntries, |
|
74 TInt aUsedEntries ); |
|
75 |
|
76 /** |
|
77 * Set attributes values to the sms store info |
|
78 * |
|
79 * |
|
80 * @param iGetInfoInfoPtr Pointer to store info |
|
81 * @param aTotalEntries Total entries |
|
82 * @param aUsedEntries Used entries |
|
83 * @return KErrNone |
|
84 */ |
|
85 virtual TInt StoreInfo( TAny* iGetInfoInfoPtr, |
|
86 TInt aTotalEntries, |
|
87 TInt aUsedEntries ); |
|
88 |
|
89 /** |
|
90 * Read the list, store its content and then return size of this |
|
91 * buffer to client. This methos runs until TSY's internal SMS storage |
|
92 * is empty. |
|
93 * |
|
94 * |
|
95 * @param iSmsListArray SMS message list storage array |
|
96 * @param iReadAllId Read all SMS messages Id |
|
97 * @param iSmsReadAllArray Read all SMS messages array |
|
98 * @param iReadAllBufSizePtr Read all SMS messages pointer |
|
99 * @return KErrNone |
|
100 */ |
|
101 virtual TInt CompleteReadAllSmsPhase1L( CArrayPtrFlat<TSmsMsg>* iSmsListArray, |
|
102 RMobilePhone::TClientId iReadAllId, |
|
103 CArrayPtrFlat<CListReadAllAttempt>* iSmsReadAllArray, |
|
104 TInt* iReadAllBufSizePtr ); |
|
105 |
|
106 /** |
|
107 * Return supported entry. |
|
108 * |
|
109 * |
|
110 * @return Entry Value |
|
111 */ |
|
112 virtual TInt GetSupportedEntry(); |
|
113 |
|
114 protected: |
|
115 |
|
116 /** |
|
117 * C++ default constructor. |
|
118 */ |
|
119 CMmSmsGsmExt(); |
|
120 |
|
121 }; |
|
122 |
|
123 #endif // CMMSMSGSMEXT_H |
|
124 |
|
125 // End of File |