author | Oscar Gonzalez <oscar.1.gonzalez@nokia.com> |
Wed, 02 Jun 2010 16:33:50 +0100 | |
branch | opencode |
changeset 32 | 58332560b319 |
parent 24 | 6638e7f4bd8f |
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 |
// cltsydispatchphonebookenhandler.h |
|
15 |
// |
|
16 |
||
32
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
17 |
/** |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
18 |
@file |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
19 |
@internalAll |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
20 |
*/ |
58332560b319
Bring opencode branch up-to-date with latest cellularsrv changes
Oscar Gonzalez <oscar.1.gonzalez@nokia.com>
parents:
24
diff
changeset
|
21 |
|
24 | 22 |
#ifndef __CLTSYDISPATCHPHONEBOOKENHANDLER_H_ |
23 |
#define __CLTSYDISPATCHPHONEBOOKENHANDLER_H_ |
|
24 |
||
25 |
// INCLUDES |
|
26 |
#include <e32std.h> |
|
27 |
#include <e32base.h> |
|
28 |
||
29 |
#include <ctsy/ltsy/mltsydispatchinterface.h> |
|
30 |
#include <ctsy/ltsy/mltsydispatchphonebookeninterface.h> |
|
31 |
#include "misdispatchinterfacesupported.h" |
|
32 |
#include "ltsymacros.h" |
|
33 |
||
34 |
// Can be removed in real LTSY implementation |
|
35 |
#include MTEST_INCLUDE_MOCKLTSYENGINE_HEADER |
|
36 |
||
37 |
// FORWARD DECLARATIONS |
|
38 |
class CCtsyDispatcherCallback; |
|
39 |
||
40 |
// Can be removed in real LTSY implementation |
|
41 |
MTEST_FORWARD_DECLARE_MOCKLTSYENGINE |
|
42 |
||
43 |
// CLASS DECLARATION |
|
44 |
||
45 |
/** |
|
46 |
* Implements interfaces from the CTSY Dispatcher. The CTSY Dispatcher uses these |
|
47 |
* interfaces to make requests to the Licensee LTSY. |
|
48 |
*/ |
|
49 |
class CLtsyPhonebookEnHandler : public CBase, |
|
50 |
public MIsDispatchInterfaceSupported, |
|
51 |
public MLtsyDispatchPhonebookEnStoreGetInfo, |
|
52 |
public MLtsyDispatchPhonebookEnStoreReadAll, |
|
53 |
public MLtsyDispatchPhonebookEnStoreReadEntry |
|
54 |
||
55 |
{ |
|
56 |
public: |
|
57 |
||
58 |
virtual ~CLtsyPhonebookEnHandler(); |
|
59 |
static CLtsyPhonebookEnHandler* NewL(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
60 |
static CLtsyPhonebookEnHandler* NewLC(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
61 |
||
62 |
// From MIsDispatchInterfaceSupported |
|
63 |
virtual TBool IsInterfaceSupported(TLtsyDispatchInterfaceApiId aDispatchApiId); |
|
64 |
void IsCallbackIndicatorSupported(TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask); |
|
65 |
||
66 |
||
67 |
||
68 |
// From MLtsyDispatchPhonebookEnStoreGetInfo |
|
69 |
virtual TInt HandleStoreGetInfoReqL(); |
|
70 |
||
71 |
// From MLtsyDispatchPhonebookEnStoreReadAll |
|
72 |
virtual TInt HandleStoreReadAllReqL(); |
|
73 |
||
74 |
// From MLtsyDispatchPhonebookEnStoreReadEntry |
|
75 |
virtual TInt HandleStoreReadEntryReqL(TInt aIndex); |
|
76 |
||
77 |
||
78 |
private: |
|
79 |
||
80 |
CLtsyPhonebookEnHandler(CCtsyDispatcherCallback& aCtsyDispatcherCallback); |
|
81 |
void ConstructL(); |
|
82 |
||
83 |
private: |
|
84 |
||
85 |
// Not owned |
|
86 |
||
87 |
/** |
|
88 |
* Callback object in the CTSY Dispatcher. |
|
89 |
* |
|
90 |
* Used to complete a request back to the CTSY Dispatcher. |
|
91 |
*/ |
|
92 |
CCtsyDispatcherCallback& iCtsyDispatcherCallback; |
|
93 |
||
94 |
public: |
|
95 |
// Can be removed in real LTSY implementation. |
|
96 |
MTEST_DECLARE_MOCKLTSYENGINE |
|
97 |
||
98 |
}; // class CLtsyPhonebookEnHandler |
|
99 |
||
100 |
#endif // __CLTSYDISPATCHPHONEBOOKENHANDLER_H_ |
|
101 |