coreapplicationuis/powersaveutilities/pluginlauncher/src/mainview.cpp
branchRCL_3
changeset 20 c2c61fdca848
parent 19 924385140d98
child 21 9af619316cbf
equal deleted inserted replaced
19:924385140d98 20:c2c61fdca848
     1 /*
       
     2 * Copyright (c) 2010 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:  
       
    15 *
       
    16 */
       
    17 #include "mainview.h"
       
    18 #include <hbmenu.h>
       
    19 #include <hbaction.h>
       
    20 #include <qcoreapplication.h>
       
    21 #include <cppluginlauncher.h>
       
    22 #include <QStringList>
       
    23 #include <cpbasesettingview.h>
       
    24 #include <hbmessagebox.h>
       
    25 #include <e32debug.h>
       
    26 
       
    27 
       
    28 MainView::MainView(QGraphicsItem *parent/* = 0*/)
       
    29 : HbView(parent)
       
    30 {
       
    31 	RDebug::Print( _L("plugin launcher MainView begin  ") ); 
       
    32 	init();
       
    33 	RDebug::Print( _L("plugin launcher MainView end  ") ); 
       
    34 }
       
    35 
       
    36 MainView::~MainView()
       
    37 {
       
    38 RDebug::Print( _L("plugin launcher MainView desructor  ") ); 
       
    39 }
       
    40 
       
    41 void MainView::init()
       
    42 {
       
    43 	RDebug::Print( _L("plugin launcher MainView init begin  ") ); 
       
    44     launchInProcessProfileView();
       
    45   RDebug::Print( _L("plugin launcher MainView init end  ") ) ;   
       
    46 }
       
    47 
       
    48 void MainView::launchInProcessProfileView()
       
    49 {
       
    50    RDebug::Print( _L("plugin launcher MainView launchInProcessProfileView begin  ") );  
       
    51     //static function which launches the psmplugin view
       
    52    CpPluginLauncher::launchSettingView("C:/resource/qt/plugins/controlpanel/cppsmplugin.dll","psm_view");
       
    53    RDebug::Print( _L("plugin launcher MainView launchInProcessProfileView end  "));  
       
    54 }
       
    55 
       
    56 
       
    57 
       
    58 //End of File