author | ivan.fildichev@opencode.com |
Thu, 18 Nov 2010 15:42:16 +0200 | |
branch | opencode |
changeset 88 | 5e27cc612ac7 |
parent 32 | 58332560b319 |
permissions | -rw-r--r-- |
24 | 1 |
// Copyright (c) 2008-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 |
// |
|
15 |
||
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
16 |
/** |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
17 |
@file |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
18 |
@internalAll |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
19 |
*/ |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
20 |
|
24 | 21 |
#ifndef __CPHONEBOOKENDISPATCHER_H_ |
22 |
#define __CPHONEBOOKENDISPATCHER_H_ |
|
23 |
||
24 |
// INCLUDES |
|
25 |
#include <e32std.h> |
|
26 |
#include <e32base.h> |
|
27 |
#include <e32def.h> |
|
28 |
#include <etelmm.h> |
|
29 |
||
30 |
#include <ctsy/ltsy/mltsydispatchfactory.h> |
|
31 |
#include <ctsy/serviceapi/cmmgsmphonestorageutility.h> |
|
32 |
||
33 |
#include "requestqueueoneshot.h" |
|
34 |
#include <ctsy/ltsy/ltsylogger.h> |
|
35 |
#include "mdispatchercallback.h" |
|
36 |
||
37 |
// FORWARD DECLARATIONS |
|
38 |
class CMmDataPackage; |
|
39 |
class MmMessageManagerCallback; |
|
40 |
class TDispatcherHolder; |
|
41 |
||
42 |
class MLtsyDispatchPhonebookEnStoreGetInfo; |
|
43 |
class MLtsyDispatchPhonebookEnStoreReadAll; |
|
44 |
class MLtsyDispatchPhonebookEnStoreReadEntry; |
|
45 |
||
46 |
||
47 |
||
48 |
// CLASS DECLARATION |
|
49 |
||
50 |
/** |
|
51 |
* This class is responsible for packing and unpacking data belonging |
|
52 |
* to PhonebookEn related requests to the Licensee LTSY. |
|
53 |
*/ |
|
54 |
class CPhonebookEnDispatcher : public CBase, public MDispatcherCallback |
|
55 |
{ |
|
56 |
public: |
|
57 |
||
58 |
virtual ~CPhonebookEnDispatcher(); |
|
59 |
||
60 |
static CPhonebookEnDispatcher* NewL( |
|
61 |
MLtsyDispatchFactoryV1& aLtsyFactory, |
|
62 |
MmMessageManagerCallback& aMessageManagerCallback, |
|
63 |
CRequestQueueOneShot& aRequestAsyncOneShot); |
|
64 |
||
65 |
static CPhonebookEnDispatcher* NewLC( |
|
66 |
MLtsyDispatchFactoryV1& aLtsyFactory, |
|
67 |
MmMessageManagerCallback& aMessageManagerCallback, |
|
68 |
CRequestQueueOneShot& aRequestAsyncOneShot); |
|
69 |
||
70 |
// Dispatcher functions for dispatching requests DOWN to the Licensee LTSY |
|
71 |
||
72 |
TInt DispatchStoreGetInfoL(); |
|
73 |
TInt DispatchStoreReadAllL(); |
|
74 |
TInt DispatchStoreReadEntryL(const CMmDataPackage* aDataPackage); |
|
75 |
||
76 |
||
77 |
// Complete functions for receiving completions UP from the Licensee LTSY |
|
78 |
// via the CCtsyDispatcherCallback object. |
|
79 |
||
80 |
void CallbackStoreGetInfo(TInt aError, TInt aUsedEntries); |
|
81 |
void CallbackStoreReadAll(TInt aError, TInt aIndex, const TDesC& aNumber, TBool aMoreToCome); |
|
82 |
void CallbackStoreReadEntry(TInt aError, TInt aIndex, const TDesC& aNumber); |
|
83 |
||
84 |
||
85 |
// From MDispatcherCallback |
|
86 |
void CallbackSync(CRequestQueueOneShot::TIpcDataPackage& aIpcDataPackage); |
|
87 |
||
88 |
// Other public functions |
|
89 |
void SetDispatcherHolder(TDispatcherHolder& aDispatcherHolder); |
|
90 |
||
91 |
private: |
|
92 |
||
93 |
CPhonebookEnDispatcher(MLtsyDispatchFactoryV1& aLtsyFactory, |
|
94 |
MmMessageManagerCallback& aMessageManagerCallback, |
|
95 |
CRequestQueueOneShot& aRequestAsyncOneShot); |
|
96 |
||
97 |
void ConstructL(); |
|
98 |
||
99 |
void FillEnStoreResponseListL(TInt aIndex, const TDesC& aNumber); |
|
100 |
private: // Not owned |
|
101 |
static const TInt KMaxTotalEntries = 255; |
|
102 |
||
103 |
MLtsyDispatchFactoryV1& iLtsyFactoryV1; |
|
104 |
MmMessageManagerCallback& iMessageManagerCallback; |
|
105 |
CRequestQueueOneShot& iRequestAsyncOneShot; |
|
106 |
TDispatcherHolder* iDispatcherHolder; |
|
107 |
||
108 |
// Interfaces in the Licensee LTSY, not owned by this object |
|
109 |
||
110 |
MLtsyDispatchPhonebookEnStoreGetInfo* iLtsyDispatchPhonebookEnStoreGetInfo; |
|
111 |
MLtsyDispatchPhonebookEnStoreReadAll* iLtsyDispatchPhonebookEnStoreReadAll; |
|
112 |
MLtsyDispatchPhonebookEnStoreReadEntry* iLtsyDispatchPhonebookEnStoreReadEntry; |
|
113 |
||
114 |
CArrayPtrFlat<TENStoreResponse>* iEnEntriesArray; |
|
115 |
||
116 |
}; // class CPhonebookEnDispatcher |
|
117 |
||
118 |
#endif // __CPHONEBOOKENDISPATCHER_H_ |
|
119 |