|
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: Concrete get search keys operation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include <ximpprotocolconnection.h> |
|
21 #include <protocolsearchfeature.h> |
|
22 #include <protocolsearch.h> |
|
23 #include "operationgetsearchkeys.h" |
|
24 #include "ximphost.h" |
|
25 |
|
26 #include <ximprequestcompleteevent.h> |
|
27 #include "protocolsearchdatahostimp.h" |
|
28 #include "searchlogutils.h" |
|
29 |
|
30 |
|
31 |
|
32 // ======== MEMBER FUNCTIONS ======== |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // COperationGetSearchKeys::COperationGetSearchKeys() |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 EXPORT_C COperationGetSearchKeys::COperationGetSearchKeys() |
|
39 { |
|
40 } |
|
41 // --------------------------------------------------------------------------- |
|
42 // COperationGetSearchKeys::ConstructL |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 void COperationGetSearchKeys::ConstructL( const TDesC8& /*aParamPck*/) |
|
46 { |
|
47 XSearchLogger::Log(_L("COperationGetSearchKeys::ConstructL ")); |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // COperationGetSearchKeys::~COperationGetSearchKeys() |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 COperationGetSearchKeys::~COperationGetSearchKeys() |
|
55 { |
|
56 XSearchLogger::Log(_L("COperationGetSearchKeys::~COperationGetSearchKeys Start- End")); |
|
57 } |
|
58 |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // COperationGetSearchKeys::ProcessL() |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 void COperationGetSearchKeys::ProcessL() |
|
65 { |
|
66 XSearchLogger::Log(_L("COperationGetSearchKeys::ProcessL Started")); |
|
67 CXIMPOperationBase::ProcessL(); |
|
68 // Call to Adaptation. |
|
69 MProtocolSearchFeature* srhFeature =static_cast< MProtocolSearchFeature*> |
|
70 (iMyHost->GetConnection().GetProtocolInterface(MProtocolSearchFeature::KInterfaceId)); |
|
71 if( srhFeature ) |
|
72 { |
|
73 srhFeature->Search().DoGetSearchKeysL( iReqId ); |
|
74 } |
|
75 else |
|
76 { |
|
77 User::Leave(KErrNotSupported); // if NULL leave : not supported by protocol plugin |
|
78 } |
|
79 |
|
80 XSearchLogger::Log(_L("COperationGetSearchKeys::ProcessL Completed")); |
|
81 } |
|
82 |
|
83 // --------------------------------------------------------------------------- |
|
84 // COperationGetSearchKeys::RequestCompleted() |
|
85 // --------------------------------------------------------------------------- |
|
86 // |
|
87 void COperationGetSearchKeys::RequestCompletedL() |
|
88 { |
|
89 XSearchLogger::Log(_L("COperationGetSearchKeys::RequestCompletedL Started")); |
|
90 CXIMPOperationBase::RequestCompletedL(); |
|
91 XSearchLogger::Log(_L("COperationGetSearchKeys::RequestCompletedL Completed")); |
|
92 } |
|
93 |
|
94 // --------------------------------------------------------------------------- |
|
95 // COperationGetSearchKeys::Type() |
|
96 // --------------------------------------------------------------------------- |
|
97 // |
|
98 TInt COperationGetSearchKeys::Type() const |
|
99 { |
|
100 return NSearchOps::EGetSearchKeys; |
|
101 } |
|
102 |
|
103 |
|
104 // End of file |