|
1 /* |
|
2 * Copyright (c) 2006 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: Inline implementation of collection engine |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ============================ MEMBER FUNCTIONS ============================== |
|
20 |
|
21 // ---------------------------------------------------------------------------- |
|
22 // Handle collection item change event |
|
23 // ---------------------------------------------------------------------------- |
|
24 // |
|
25 inline void CMPXCollectionEngine::HandleMessage(CMPXMessage* aMsg, TInt aError) |
|
26 { |
|
27 MPX_FUNC("CMPXCollectionEngine::HandleMessage"); |
|
28 for (TInt i=0; i<iContexts.Count(); ++i) |
|
29 { |
|
30 iContexts[i]->DoHandleMessage(aMsg, aError, EFalse); |
|
31 } |
|
32 } |
|
33 |
|
34 // ---------------------------------------------------------------------------- |
|
35 // Handle open event |
|
36 // ---------------------------------------------------------------------------- |
|
37 // |
|
38 inline void CMPXCollectionEngine::HandleOpen( |
|
39 CMPXMedia* /*aMedia*/, |
|
40 TInt /*aErr*/) |
|
41 { |
|
42 MPX_DEBUG1("WARNING!!! - CMPXCollectionEngine::HandleOpen aMedia should never be called"); |
|
43 } |
|
44 |
|
45 // ---------------------------------------------------------------------------- |
|
46 // Handle open event |
|
47 // ---------------------------------------------------------------------------- |
|
48 // |
|
49 inline void CMPXCollectionEngine::HandleOpen( |
|
50 CMPXMedia* /*aMedia*/, |
|
51 const CMPXCollectionPath* /*aPath*/, |
|
52 TInt /*aErr*/) |
|
53 { |
|
54 MPX_DEBUG1("WARNING!!! - CMPXCollectionEngine::HandleOpen aMedia should never be called"); |
|
55 } |
|
56 |
|
57 // ---------------------------------------------------------------------------- |
|
58 // Handle open event |
|
59 // ---------------------------------------------------------------------------- |
|
60 // |
|
61 inline void CMPXCollectionEngine::HandleOpen( |
|
62 CMPXCollectionPath* /*aPath*/, |
|
63 TInt /*aErr*/) |
|
64 { |
|
65 MPX_DEBUG1("WARNING!!! - CMPXCollectionEngine::HandleOpen aPath should never be called"); |
|
66 } |
|
67 |
|
68 // ---------------------------------------------------------------------------- |
|
69 // Callback of retrieving extended media property |
|
70 // ---------------------------------------------------------------------------- |
|
71 // |
|
72 inline void CMPXCollectionEngine::HandleMedia( |
|
73 CMPXMedia* /*aMedia*/, |
|
74 TInt /*aError*/) |
|
75 { |
|
76 MPX_DEBUG1("WARNING!!! - CMPXCollectionEngine::HandleMedia should never be called"); |
|
77 } |
|
78 |
|
79 // ---------------------------------------------------------------------------- |
|
80 // Callback of async CommandL |
|
81 // ---------------------------------------------------------------------------- |
|
82 // |
|
83 inline void CMPXCollectionEngine::HandleCommandComplete( |
|
84 CMPXCommand* /*aCommandResult*/, |
|
85 TInt /*aError*/) |
|
86 { |
|
87 |
|
88 } |
|
89 |
|
90 // ---------------------------------------------------------------------------- |
|
91 // Handle find all |
|
92 // ---------------------------------------------------------------------------- |
|
93 // |
|
94 inline void CMPXCollectionEngine::HandleFindAll( |
|
95 CMPXMedia* /*aMedia*/, |
|
96 TInt /*aError*/) |
|
97 { |
|
98 MPX_DEBUG1("WARNING!!! - CMPXCollectionEngine::HandleFindAll should never be called"); |
|
99 } |
|
100 |
|
101 // ---------------------------------------------------------------------------- |
|
102 // Handle delete all |
|
103 // ---------------------------------------------------------------------------- |
|
104 // |
|
105 inline void CMPXCollectionEngine::HandleRemove( |
|
106 const CDesCArray& /*aUriArray*/, |
|
107 TInt /*aError*/) |
|
108 { |
|
109 MPX_DEBUG1("WARNING!!! - CMPXCollectionEngine::HandleRemove should never be called"); |
|
110 } |
|
111 |
|
112 // ---------------------------------------------------------------------------- |
|
113 // Check if refreshing is ongoing |
|
114 // ---------------------------------------------------------------------------- |
|
115 // |
|
116 inline TBool CMPXCollectionEngine::IsRefreshing() |
|
117 { |
|
118 return iRefreshing; |
|
119 } |
|
120 |
|
121 // End of file |