|
1 /* |
|
2 * Copyright (c) 2009 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: Implement of the CMPXViewPlugin class for testing the protect function |
|
15 * |
|
16 */ |
|
17 #include "dummyMPXViewPlugin.h" |
|
18 |
|
19 // CDummyMPXViewPlugin construct |
|
20 CDummyMPXViewPlugin::CDummyMPXViewPlugin(const TUid& aUid,MMPXCustomCommandObserver* aCommandObserver) |
|
21 { |
|
22 iMPXViewPlugin = CMPXViewPlugin::NewL(aUid,aCommandObserver); |
|
23 } |
|
24 |
|
25 // delete CDummyMPXViewPlugin |
|
26 CDummyMPXViewPlugin::~CDummyMPXViewPlugin() |
|
27 { |
|
28 if(iMPXViewPlugin!=NULL) |
|
29 { |
|
30 delete iMPXViewPlugin; |
|
31 } |
|
32 } |
|
33 |
|
34 // OverWrite the CreateViewL() function of the CMPXViewPlugin class |
|
35 void CDummyMPXViewPlugin::CreateViewL() |
|
36 { |
|
37 iMPXViewPlugin->CreateViewL(); |
|
38 } |
|
39 |
|
40 // OverWrite the DestroyView() function of the CMPXViewPlugin class |
|
41 void CDummyMPXViewPlugin::DestroyView() |
|
42 { |
|
43 iMPXViewPlugin->DestroyView(); |
|
44 } |
|
45 |
|
46 // OverWrite the ActivateViewL() function of the CMPXViewPlugin class |
|
47 void CDummyMPXViewPlugin:: ActivateViewL( const TDesC* /*aParam*/ ) |
|
48 { |
|
49 iMPXViewPlugin->ActivateViewL(/*aParam*/); |
|
50 } |
|
51 |
|
52 // OverWrite the SetAsDefaultViewL() function of the CMPXViewPlugin class |
|
53 void CDummyMPXViewPlugin:: SetAsDefaultViewL() |
|
54 { |
|
55 iMPXViewPlugin->SetAsDefaultViewL(); |
|
56 } |
|
57 |
|
58 // OverWrite the DeactivateView() function of the CMPXViewPlugin class |
|
59 void CDummyMPXViewPlugin:: DeactivateView() |
|
60 { |
|
61 iMPXViewPlugin->DeactivateView(); |
|
62 } |