stateproviders/ftustateprovider/inc/ftustatecenrephandler.h
changeset 2 66c26770985f
equal deleted inserted replaced
0:c464cd7e2753 2:66c26770985f
       
     1 /*
       
     2 * Copyright (c) 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:  Declaration of the wizard menu state.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef FTU_STATES_CENREPHANDLER_H
       
    20 #define FTU_STATES_CENREPHANDLER_H
       
    21 
       
    22 #include <QObject>
       
    23 #include "ftutest_global.h"
       
    24 
       
    25 class XQSettingsManager;
       
    26 
       
    27 /**
       
    28 * Ftu State provider
       
    29 */
       
    30 const qint32 KCrUidFtuStateProvider = {0x20026f99};
       
    31 
       
    32 //index 0 is unused in cenrep, 1 for datetime of last completed plugin
       
    33 const int KBaseIndex = 2;
       
    34 
       
    35 /** @ingroup group_ftustateprovider
       
    36  * @brief The state where wizard menu is shown
       
    37  *
       
    38  * @see StateMachine
       
    39  *
       
    40  * @lib ?library
       
    41  * @since S60 ?S60_version
       
    42  */
       
    43 class FtuStateCenrepHandler : public QObject
       
    44 {
       
    45     Q_OBJECT
       
    46 
       
    47 public:
       
    48 
       
    49     /**
       
    50      * Constructor.
       
    51      * @since S60 ?S60_version.     
       
    52      * @param aParent Owner.
       
    53      */
       
    54     FtuStateCenrepHandler(QObject *aParent = 0);
       
    55 
       
    56     /**
       
    57      * Destructor.
       
    58      * @since S60 ?S60_version.
       
    59      */
       
    60 	virtual ~FtuStateCenrepHandler();
       
    61 	
       
    62 
       
    63     /**
       
    64      * Gets info of plugin at an index 1 if complete, 0 if incomplete.
       
    65      * @since S60 ?S60_version.
       
    66      */
       
    67     int getPluginInfo(int index);
       
    68 	
       
    69 	/**
       
    70      * Updates plugin info in cenrep.
       
    71      * @since S60 ?S60_version.
       
    72      */
       
    73     int updatePluginInfo(int indexPluginCompleted);
       
    74     
       
    75     /**
       
    76      * Returns Total number of plugins registered.
       
    77      * @since S60 ?S60_version.
       
    78      */
       
    79     int registeredPluginCount();
       
    80 
       
    81 private:
       
    82 
       
    83     XQSettingsManager* mSettingsManager;
       
    84     int mTotalNumberOfPlugins;
       
    85 };
       
    86 
       
    87 #endif //FTU_STATES_CENREPHANDLER_H