photosgallery/viewframework/plugins/fullscreenviewplugin/src/glxcameraalbumfullscreenviewplugin.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:45:44 +0200
changeset 0 4e91876724a2
child 32 78ad99c24f08
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* 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 "glxcameraalbumfullscreenviewplugin.h"

#include "glxfullscreenviewplugin.hrh"
#include <data_caging_path_literals.hrh>
#include <glxcommandhandlers.hrh>

#include <glxfullscreenviewdata.rsg>

#include "glxcommandhandlerdetails.h"
#include <AknUtils.h>
#include <avkon.hrh>
#include <bautils.h>
#include <glxcommandhandlerhelp.h>
#include <glxresourceutilities.h>                // for CGlxResourceUtilities
#include <mpxcollectionpath.h>
#include <mpxcollectionutility.h>
#include <mpxmediageneraldefs.h>
#include "glxfullscreenview.h"

_LIT(KGlxFullScreenResource,"glxfullscreenviewdata.rsc");

// ---------------------------------------------------------------------------
// C++ default constructor can NOT contain any code, that
// might leave.
// ---------------------------------------------------------------------------
//
CGlxCameraAlbumFullScreenViewPlugin::CGlxCameraAlbumFullScreenViewPlugin()

    {
    iResourceIds.iMenuId = R_GLX_FULLSCREEN_MENU;
    iResourceIds.iViewId = R_GLX_FULLSCREEN_VIEW;
    iResourceIds.iCbaId = R_GLX_FULLSCREEN_SOFTKEYS;
    iViewUID = KGlxCameraAlbumFullScreenViewImplementationId;
    
    
    }

// ---------------------------------------------------------------------------
// Symbian 2nd phase constructor can leave.
// ---------------------------------------------------------------------------
//
void CGlxCameraAlbumFullScreenViewPlugin::ConstructL()
    {
    // Do nothing
    }

// ---------------------------------------------------------------------------
// Two-phased constructor.
// ---------------------------------------------------------------------------
//
CGlxCameraAlbumFullScreenViewPlugin* CGlxCameraAlbumFullScreenViewPlugin::NewL()
    {
    CGlxCameraAlbumFullScreenViewPlugin* self = 
        new ( ELeave ) CGlxCameraAlbumFullScreenViewPlugin();
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop( self );
    return self;
    }

// ---------------------------------------------------------------------------
// Destructor
// ---------------------------------------------------------------------------
//
CGlxCameraAlbumFullScreenViewPlugin::~CGlxCameraAlbumFullScreenViewPlugin()
    {
    // Do nothing
    }

    
void CGlxCameraAlbumFullScreenViewPlugin::AddCommandHandlersL()
    {
    CGlxFullScreenViewPluginBase::AddCommandHandlersL();
      
    TGlxHelpContext helpInfo;
    helpInfo.iBrowseContext = LGAL_HLP_CAMERA_ALBUM_FULLSCRN;
    iFullScreenView->AddCommandHandlerL(CGlxCommandHandlerHelp::NewL(helpInfo)); 
    }

void CGlxCameraAlbumFullScreenViewPlugin::GetResourceFilenameL(TFileName& aResFile)
    {
    TParse parse;
    parse.Set(KGlxFullScreenResource, &KDC_APP_RESOURCE_DIR, NULL);
    aResFile.Append(parse.FullName()); 
    CGlxResourceUtilities::GetResourceFilenameL(aResFile);  
    }

//  End of File