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