photosgallery/viewframework/plugins/fullscreenviewplugin/src/glxcameraalbumfullscreenviewplugin.cpp
changeset 0 4e91876724a2
child 32 78ad99c24f08
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-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:    Implementation 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 
       
    23 #include "glxcameraalbumfullscreenviewplugin.h"
       
    24 
       
    25 #include "glxfullscreenviewplugin.hrh"
       
    26 #include <data_caging_path_literals.hrh>
       
    27 #include <glxcommandhandlers.hrh>
       
    28 
       
    29 #include <glxfullscreenviewdata.rsg>
       
    30 
       
    31 #include "glxcommandhandlerdetails.h"
       
    32 #include <AknUtils.h>
       
    33 #include <avkon.hrh>
       
    34 #include <bautils.h>
       
    35 #include <glxcommandhandlerhelp.h>
       
    36 #include <glxresourceutilities.h>                // for CGlxResourceUtilities
       
    37 #include <mpxcollectionpath.h>
       
    38 #include <mpxcollectionutility.h>
       
    39 #include <mpxmediageneraldefs.h>
       
    40 #include "glxfullscreenview.h"
       
    41 
       
    42 _LIT(KGlxFullScreenResource,"glxfullscreenviewdata.rsc");
       
    43 
       
    44 // ---------------------------------------------------------------------------
       
    45 // C++ default constructor can NOT contain any code, that
       
    46 // might leave.
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 CGlxCameraAlbumFullScreenViewPlugin::CGlxCameraAlbumFullScreenViewPlugin()
       
    50 
       
    51     {
       
    52     iResourceIds.iMenuId = R_GLX_FULLSCREEN_MENU;
       
    53     iResourceIds.iViewId = R_GLX_FULLSCREEN_VIEW;
       
    54     iResourceIds.iCbaId = R_GLX_FULLSCREEN_SOFTKEYS;
       
    55     iViewUID = KGlxCameraAlbumFullScreenViewImplementationId;
       
    56     
       
    57     
       
    58     }
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // Symbian 2nd phase constructor can leave.
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 void CGlxCameraAlbumFullScreenViewPlugin::ConstructL()
       
    65     {
       
    66     // Do nothing
       
    67     }
       
    68 
       
    69 // ---------------------------------------------------------------------------
       
    70 // Two-phased constructor.
       
    71 // ---------------------------------------------------------------------------
       
    72 //
       
    73 CGlxCameraAlbumFullScreenViewPlugin* CGlxCameraAlbumFullScreenViewPlugin::NewL()
       
    74     {
       
    75     CGlxCameraAlbumFullScreenViewPlugin* self = 
       
    76         new ( ELeave ) CGlxCameraAlbumFullScreenViewPlugin();
       
    77     CleanupStack::PushL( self );
       
    78     self->ConstructL();
       
    79     CleanupStack::Pop( self );
       
    80     return self;
       
    81     }
       
    82 
       
    83 // ---------------------------------------------------------------------------
       
    84 // Destructor
       
    85 // ---------------------------------------------------------------------------
       
    86 //
       
    87 CGlxCameraAlbumFullScreenViewPlugin::~CGlxCameraAlbumFullScreenViewPlugin()
       
    88     {
       
    89     // Do nothing
       
    90     }
       
    91 
       
    92     
       
    93 void CGlxCameraAlbumFullScreenViewPlugin::AddCommandHandlersL()
       
    94     {
       
    95     CGlxFullScreenViewPluginBase::AddCommandHandlersL();
       
    96       
       
    97     TGlxHelpContext helpInfo;
       
    98     helpInfo.iBrowseContext = LGAL_HLP_CAMERA_ALBUM_FULLSCRN;
       
    99     iFullScreenView->AddCommandHandlerL(CGlxCommandHandlerHelp::NewL(helpInfo)); 
       
   100     }
       
   101 
       
   102 void CGlxCameraAlbumFullScreenViewPlugin::GetResourceFilenameL(TFileName& aResFile)
       
   103     {
       
   104     TParse parse;
       
   105     parse.Set(KGlxFullScreenResource, &KDC_APP_RESOURCE_DIR, NULL);
       
   106     aResFile.Append(parse.FullName()); 
       
   107     CGlxResourceUtilities::GetResourceFilenameL(aResFile);  
       
   108     }
       
   109 
       
   110 //  End of File