51
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 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: Searchdatafeature datahost.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include <ximpobjectcollection.h>
|
|
20 |
#include <ximpidentity.h>
|
|
21 |
#include <ximpdatasubscriptionstate.h>
|
|
22 |
#include <ximpstatus.h>
|
|
23 |
|
|
24 |
#include "ximphost.h"
|
|
25 |
#include "searchdatacacheimp.h"
|
|
26 |
#include "searchoperationdefs.h"
|
|
27 |
#include "searchlogutils.h"
|
|
28 |
#include "protocolsearchdatahostimp.h"
|
|
29 |
#include "protocolsearchfeaturedatahostimp.h"
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
// ============================ MEMBER FUNCTIONS =============================
|
|
34 |
|
|
35 |
|
|
36 |
// ---------------------------------------------------------------------------
|
|
37 |
// CProtocolSearchFeatureDataHostImp::CProtocolSearchFeatureDataHostImp()
|
|
38 |
// ---------------------------------------------------------------------------
|
|
39 |
//
|
|
40 |
CProtocolSearchFeatureDataHostImp::CProtocolSearchFeatureDataHostImp( MXIMPHost& aHost )
|
|
41 |
:iHost( aHost )
|
|
42 |
{
|
|
43 |
}
|
|
44 |
|
|
45 |
|
|
46 |
// ---------------------------------------------------------------------------
|
|
47 |
// CProtocolSearchFeatureDataHostImp::ConstructL()
|
|
48 |
// ---------------------------------------------------------------------------
|
|
49 |
//
|
|
50 |
void CProtocolSearchFeatureDataHostImp::ConstructL()
|
|
51 |
{
|
|
52 |
}
|
|
53 |
|
|
54 |
|
|
55 |
// ---------------------------------------------------------------------------
|
|
56 |
// CProtocolSearchFeatureDataHostImp::NewL()
|
|
57 |
// ---------------------------------------------------------------------------
|
|
58 |
//
|
|
59 |
EXPORT_C CProtocolSearchFeatureDataHostImp* CProtocolSearchFeatureDataHostImp::NewL( MXIMPHost& aHost )
|
|
60 |
{
|
|
61 |
CProtocolSearchFeatureDataHostImp* self = new( ELeave ) CProtocolSearchFeatureDataHostImp( aHost );
|
|
62 |
CleanupStack::PushL( self );
|
|
63 |
self->ConstructL();
|
|
64 |
CleanupStack::Pop( self );
|
|
65 |
return self;
|
|
66 |
}
|
|
67 |
|
|
68 |
// ---------------------------------------------------------------------------
|
|
69 |
// Implement supported interface access.
|
|
70 |
// ---------------------------------------------------------------------------
|
|
71 |
//
|
|
72 |
XIMPIMP_IF_BASE_GET_INTERFACE_BEGIN( CProtocolSearchFeatureDataHostImp,
|
|
73 |
MProtocolSearchFeatureDataHost )
|
|
74 |
XIMPIMP_IF_BASE_GET_INTERFACE_END()
|
|
75 |
|
|
76 |
|
|
77 |
XIMPIMP_IF_BASE_GET_CONST_INTERFACE_BEGIN( CProtocolSearchFeatureDataHostImp,
|
|
78 |
MProtocolSearchFeatureDataHost )
|
|
79 |
XIMPIMP_IF_BASE_GET_INTERFACE_END()
|
|
80 |
|
|
81 |
// ---------------------------------------------------------------------------
|
|
82 |
// CProtocolSearchFeatureDataHostImp::~CProtocolSearchFeatureDataHostImp()
|
|
83 |
// ---------------------------------------------------------------------------
|
|
84 |
//
|
|
85 |
CProtocolSearchFeatureDataHostImp::~CProtocolSearchFeatureDataHostImp()
|
|
86 |
{
|
|
87 |
}
|
|
88 |
|
|
89 |
|
|
90 |
// ---------------------------------------------------------------------------
|
|
91 |
// CProtocolSearchFeatureDataHostImp::HandleSearchResultsL
|
|
92 |
// ---------------------------------------------------------------------------
|
|
93 |
//
|
|
94 |
TXIMPRequestId CProtocolSearchFeatureDataHostImp::HandleSearchResultsL(MXIMPIdentity* aSearchId,
|
|
95 |
MXIMPObjectCollection* aSearchResults)
|
|
96 |
{
|
|
97 |
XSearchLogger::Log(_L("CProtocolSearchFeatureDataHostImp::HandleSearchResultsL Started"));
|
|
98 |
return iHost.AddNewOperationL( NSearchOps::EHandleSearchResults,aSearchId,aSearchResults);
|
|
99 |
|
|
100 |
}
|
|
101 |
// ---------------------------------------------------------------------------
|
|
102 |
// CProtocolSearchFeatureDataHostImp::HandleSearchKeysL
|
|
103 |
// ---------------------------------------------------------------------------
|
|
104 |
//
|
|
105 |
TXIMPRequestId CProtocolSearchFeatureDataHostImp::HandleSearchKeysL( MXIMPObjectCollection* aSearchKeyInfos )
|
|
106 |
{
|
|
107 |
XSearchLogger::Log(_L("CProtocolSearchFeatureDataHostImp::HandleSearchKeysL Started"));
|
|
108 |
return iHost.AddNewOperationL( NSearchOps::EHandleSearchKeys, aSearchKeyInfos );
|
|
109 |
|
|
110 |
}
|