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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <mmf/common/mmfcontrollerpluginresolver.h> |
|
20 |
|
21 #include "ccontentpublishinginterface.h" |
|
22 #include "cpdebug.h" |
|
23 #include "cpglobals.h" |
|
24 #include "cpclient.h" |
|
25 #include "cpclientiterable.h" |
|
26 |
|
27 using namespace LIW; |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 CContentPublishingInterface* CContentPublishingInterface::NewL() |
|
34 { |
|
35 CContentPublishingInterface* self = CContentPublishingInterface::NewLC( ); |
|
36 CleanupStack::Pop( self ); |
|
37 return self; |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 // --------------------------------------------------------------------------- |
|
43 // |
|
44 CContentPublishingInterface* CContentPublishingInterface::NewLC() |
|
45 { |
|
46 CContentPublishingInterface* self = |
|
47 new( ELeave ) CContentPublishingInterface; |
|
48 CleanupStack::PushL( self ); |
|
49 self->ConstructL( ); |
|
50 return self; |
|
51 } |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 CContentPublishingInterface::~CContentPublishingInterface() |
|
57 { |
|
58 CP_DEBUG( _L8("CContentPublishingInterface::~CContentPublishingInterface") ); |
|
59 } |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 CContentPublishingInterface::CContentPublishingInterface() |
|
66 { |
|
67 |
|
68 } |
|
69 |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 // --------------------------------------------------------------------------- |
|
73 // |
|
74 void CContentPublishingInterface::ConstructL() |
|
75 { |
|
76 CP_DEBUG( _L8("CContentPublishingInterface::ConstructL") ); |
|
77 CDataSourceInterface::ConstructL(); |
|
78 } |
|
79 |
|
80 |
|
81 // --------------------------------------------------------------------------- |
|
82 // |
|
83 // --------------------------------------------------------------------------- |
|
84 // |
|
85 void CContentPublishingInterface::ProcessCommandL( const TDesC8& aCmdName, |
|
86 const CLiwGenericParamList& aInParamList, |
|
87 CLiwGenericParamList& aOutParamList, TUint aCmdOptions, |
|
88 MLiwNotifyCallback* aCallback ) |
|
89 { |
|
90 CP_DEBUG( _L8("CContentPublishingInterface::ProcessCommandL") ); |
|
91 |
|
92 if ( aCmdName.CompareF( KExecuteAction ) == 0 ) |
|
93 { |
|
94 iCPClient->ExecuteActionL( aInParamList ); |
|
95 } |
|
96 else |
|
97 { |
|
98 CDataSourceInterface::ProcessCommandL(aCmdName, |
|
99 aInParamList, aOutParamList, aCmdOptions, aCallback); |
|
100 } |
|
101 } |
|