|
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: Full screen view plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include "shwslideshowviewplugin.h" |
|
24 |
|
25 #include <glxlog.h> |
|
26 #include <glxtracer.h> |
|
27 #include <glxcommandhandlerback.h> |
|
28 |
|
29 #include "shwslideshowview.h" |
|
30 |
|
31 // ======== MEMBER FUNCTIONS ======== |
|
32 |
|
33 // --------------------------------------------------------------------------- |
|
34 // C++ default constructor can NOT contain any code, that |
|
35 // might leave. |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 CShwSlideshowViewPlugin::CShwSlideshowViewPlugin() |
|
39 { |
|
40 // Do nothing |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // Symbian 2nd phase constructor can leave. |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 void CShwSlideshowViewPlugin::ConstructL() |
|
48 { |
|
49 // Do nothing |
|
50 } |
|
51 |
|
52 // --------------------------------------------------------------------------- |
|
53 // Two-phased constructor. |
|
54 // --------------------------------------------------------------------------- |
|
55 // |
|
56 CShwSlideshowViewPlugin* CShwSlideshowViewPlugin::NewL() |
|
57 { |
|
58 TRACER("CShwSlideshowViewPlugin::NewL"); |
|
59 GLX_LOG_INFO("CShwSlideshowViewPlugin::NewL" ); |
|
60 CShwSlideshowViewPlugin* self = new ( ELeave ) CShwSlideshowViewPlugin(); |
|
61 CleanupStack::PushL( self ); |
|
62 self->ConstructL(); |
|
63 CleanupStack::Pop( self ); |
|
64 return self; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------------------------- |
|
68 // Destructor |
|
69 // --------------------------------------------------------------------------- |
|
70 // |
|
71 CShwSlideshowViewPlugin::~CShwSlideshowViewPlugin() |
|
72 { |
|
73 // Do nothing |
|
74 } |
|
75 |
|
76 // --------------------------------------------------------------------------- |
|
77 // From CMPXAknViewPlugin |
|
78 // Construct Avkon view. |
|
79 // --------------------------------------------------------------------------- |
|
80 // |
|
81 CAknView* CShwSlideshowViewPlugin::ConstructViewLC() |
|
82 { |
|
83 TRACER("CShwSlideshowViewPlugin::ConstructViewLC"); |
|
84 GLX_LOG_INFO("CShwSlideshowViewPlugin::ConstructViewLC" ); |
|
85 CShwSlideshowView* view = CShwSlideshowView::NewLC(); |
|
86 |
|
87 // add the back command handler to get us to previous view |
|
88 view->AddCommandHandlerL( |
|
89 CGlxCommandHandlerBack::NewPreviousViewCommandHandlerL( ) ); |
|
90 |
|
91 return view; |
|
92 } |
|
93 |
|
94 // End of File |