photosgallery/slideshow/settingsdialog/src/shwslideshowsettingsplugin.cpp
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:    The slideshow settings dialog ecom plugin
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 //  CLASS HEADER
       
    22 #include "shwslideshowsettingsplugin.h"
       
    23 
       
    24 
       
    25 //  EXTERNAL INCLUDES
       
    26 #include <AknDialog.h>  	 			// for CAknDialog
       
    27 #include <mpxcustomcommandobserver.h>	// for MMPXCustomCommandObserver
       
    28 #include <e32std.h>
       
    29 #include <ecom/implementationproxy.h>
       
    30 
       
    31 //  INTERNAL INCLUDES
       
    32 #include <glxlog.h>
       
    33 #include <glxtracer.h>
       
    34 #include "shwslideshowsettingsdialog.h"
       
    35 
       
    36 #include <shwsettingsdialog.rsg>
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // C++ Constructor. 
       
    40 // -----------------------------------------------------------------------------
       
    41 inline CShwSlideshowSettingsPlugin::CShwSlideshowSettingsPlugin() 
       
    42 	{
       
    43 	// No implementation required
       
    44 	}
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // NewL. Static construction
       
    48 // -----------------------------------------------------------------------------
       
    49 CShwSlideshowSettingsPlugin* CShwSlideshowSettingsPlugin::NewL()
       
    50 	{
       
    51 	TRACER("CShwSlideshowSettingsPlugin::NewL");
       
    52 	GLX_LOG_INFO("CShwSlideshowSettingsPlugin::NewL");
       
    53 	CShwSlideshowSettingsPlugin* self = new(ELeave) CShwSlideshowSettingsPlugin;
       
    54 	return self;
       
    55 	}
       
    56 
       
    57 // ---------------------------------------------------------------------------
       
    58 // Destructor
       
    59 // ---------------------------------------------------------------------------
       
    60 CShwSlideshowSettingsPlugin::~CShwSlideshowSettingsPlugin()
       
    61     {
       
    62     // Do nothing
       
    63     }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // From CMPXAknDialogPlugin
       
    67 // Construct Avkon dialog.
       
    68 // ---------------------------------------------------------------------------
       
    69 CAknDialog* CShwSlideshowSettingsPlugin::ConstructDialogL()
       
    70     {
       
    71     TRACER("CShwSlideshowSettingsPlugin::ConstructDialogL");
       
    72     GLX_LOG_INFO("CShwSlideshowSettingsPlugin::ConstructDialogL");
       
    73     return CShwSlideshowSettingsDialog::NewL();
       
    74     }
       
    75     
       
    76 // ---------------------------------------------------------------------------
       
    77 // From CMPXAknDialogPlugin
       
    78 // Resource ID.
       
    79 // ---------------------------------------------------------------------------
       
    80 TInt CShwSlideshowSettingsPlugin::ResourceId()
       
    81     {
       
    82     TRACER("CShwSlideshowSettingsPlugin::ResourceId");
       
    83     GLX_LOG_INFO("CShwSlideshowSettingsPlugin::ResourceId");
       
    84     return R_SHW_SETTINGS_DLG; // Resource Id of settings dialog
       
    85     }
       
    86 
       
    87 //  End of File