photosgallery/viewframework/plugins/fullscreenviewplugin/src/glxtagfullscreenviewplugin.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/photosgallery/viewframework/plugins/fullscreenviewplugin/src/glxtagfullscreenviewplugin.cpp Thu Dec 17 08:45:44 2009 +0200
@@ -0,0 +1,124 @@
+/*
+* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Implementation
+*
+*/
+
+
+
+
+// INCLUDE FILES
+
+#include "glxtagfullscreenviewplugin.h"
+#include "glxfullscreenviewplugin.hrh" // KGlxTagTileViewPluginImplementationUid
+
+#include <glxfullscreenviewdata.rsg>
+
+#include <bautils.h> //BaflUtils
+#include <data_caging_path_literals.hrh> //KDC_APP_RESOURCE_DIR
+#include <glxcommandhandlerremovefrom.h> //CGlxCommandHandlerRemoveFrom
+#include <glxcommandhandlerhelp.h>
+#include <glxtracer.h>
+#include <glxlog.h>
+
+#include <glxresourceutilities.h> // for CGlxResourceUtilities
+
+
+
+_LIT(KGlxTileResource,"glxfullscreenviewdata.rsc"); //TagTileView Resource File
+
+// ---------------------------------------------------------------------------
+// C++ default constructor can NOT contain any code, that
+// might leave.
+// ---------------------------------------------------------------------------
+CGlxTagFullScreenViewPlugin::CGlxTagFullScreenViewPlugin()
+ {
+ TRACER("CGlxTagFullScreenViewPlugin::CGlxTagFullScreenViewPlugin()");
+
+ iResourceIds.iViewId = R_GLX_TAGFULLSCREEN_VIEW;
+ iResourceIds.iMenuId = R_GLX_TAGFULLSCREEN_MENU;
+ iResourceIds.iCbaId = R_GLX_FULLSCREEN_SOFTKEYS;
+ iViewUID = KGlxTagFullScreenViewPluginImplementationUid;
+
+
+ }
+
+// ---------------------------------------------------------------------------
+// Symbian 2nd phase constructor can leave.
+// ---------------------------------------------------------------------------
+void CGlxTagFullScreenViewPlugin::ConstructL()
+ {
+ TRACER("CGlxTagFullScreenViewPlugin::CGlxTagFullScreenViewPlugin()");
+ // Do nothing
+ }
+
+
+// ---------------------------------------------------------------------------
+// Two-phased constructor.
+// ---------------------------------------------------------------------------
+ CGlxTagFullScreenViewPlugin* CGlxTagFullScreenViewPlugin::NewL()
+ {
+
+ TRACER( "CGlxTagFullScreenViewPlugin::NewL");
+
+ CGlxTagFullScreenViewPlugin* self = new ( ELeave ) CGlxTagFullScreenViewPlugin();
+ CleanupStack::PushL( self );
+ self->ConstructL();
+ CleanupStack::Pop( self );
+ return self;
+ }
+
+// ---------------------------------------------------------------------------
+// Destructor
+// ---------------------------------------------------------------------------
+CGlxTagFullScreenViewPlugin::~CGlxTagFullScreenViewPlugin()
+ {
+ // Do nothing
+ }
+
+// ---------------------------------------------------------------------------
+// Adds Command Handlers to the view
+//-----------------------------------------------------------------------------
+void CGlxTagFullScreenViewPlugin::AddCommandHandlersL()
+ {
+ TRACER( "CGlxTagFullScreenViewPlugin::AddCommandHandlersL");
+
+ CGlxFullScreenViewPluginBase::AddCommandHandlersL();
+
+ //For tag tile view
+ GLX_LOG_INFO("Adding CGlxCommandHandlerRemoveFrom");
+ //iTileView->AddCommandHandlerL(CGlxCommandHandlerRemoveFrom::NewL(iTileView, EMPXTag));
+
+ // set up help context info
+ TGlxHelpContext helpInfo;
+ helpInfo.iBrowseContext = LGAL_HLP_TAGS_GRID;
+ helpInfo.iBrowseContext = LGAL_HLP_TAGS_FULLSCREEN;
+
+ iFullScreenView->AddCommandHandlerL(CGlxCommandHandlerHelp::NewL(helpInfo));
+ }
+
+//-----------------------------------------------------------------------------
+// Get the Resource File Name
+//-----------------------------------------------------------------------------
+
+void CGlxTagFullScreenViewPlugin::GetResourceFilenameL(TFileName& aResFile)
+ {
+ TRACER( "CGlxTagFullScreenViewPlugin::GetResourceFilenameL"); //Logging
+ TParse parse;
+ parse.Set(KGlxTileResource, &KDC_APP_RESOURCE_DIR, NULL);
+ aResFile.Append(parse.FullName());
+ CGlxResourceUtilities::GetResourceFilenameL(aResFile);
+ }
+
+//End Of File