coreapplicationuis/powersaveutilities/cppsmplugin/src/cppsmplugin.h
branchRCL_3
changeset 19 924385140d98
equal deleted inserted replaced
18:0818dd463d41 19:924385140d98
       
     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 #ifndef	CPPSMPLUGIN_H
       
    18 #define	CPPSMPLUGIN_H
       
    19 
       
    20 #include <qobject.h>
       
    21 #include <cpplugininterface.h>
       
    22 #include <cplauncherinterface.h>
       
    23 #include <hbtranslator.h>
       
    24 
       
    25 class CpBaseSettingView;
       
    26 class QVariant;
       
    27 
       
    28 class CpPsmPlugin : public QObject, public CpPluginInterface,public CpLauncherInterface
       
    29 {
       
    30     Q_OBJECT
       
    31     Q_INTERFACES(CpPluginInterface)
       
    32     Q_INTERFACES(CpLauncherInterface)
       
    33 public:
       
    34     CpPsmPlugin();
       
    35     virtual ~CpPsmPlugin();
       
    36     //from CpPluginInterface
       
    37     virtual QList<CpSettingFormItemData*> createSettingFormItemData(CpItemDataHelper &itemDataHelper) const;
       
    38     //from CpLauncherInterface
       
    39     virtual CpBaseSettingView *createSettingView(const QVariant &hint) const;
       
    40 private:
       
    41     HbTranslator* iTrans;
       
    42 };
       
    43 
       
    44 #endif	//CPPSMPLUGIN_H