homescreensrv_plat/statemodel_api/hsstatefactory.h
branchGCC_SURGE
changeset 105 e7325f632549
parent 81 5ef31a21fdd5
parent 104 9b022b1f357c
equal deleted inserted replaced
81:5ef31a21fdd5 105:e7325f632549
     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:  State factory.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HSSTATEFACTORY_H
       
    20 #define HSSTATEFACTORY_H
       
    21 
       
    22 #include <QObject>
       
    23 
       
    24 #include "hsstatemodel_global.h"
       
    25 #include "hsistateprovider.h"
       
    26 
       
    27 class QState;
       
    28 class HsStateFactoryPrivate;
       
    29 
       
    30 class HSSTATEMODEL_EXPORT HsStateFactory : public QObject
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     HsStateFactory(const QString& aPluginManifestDirectory,
       
    36                  const QString& aPluginDirectory,
       
    37                  QObject* aParent = 0);
       
    38 
       
    39     virtual ~HsStateFactory();
       
    40 
       
    41     QList<HsStateToken> states();
       
    42     QState* createState(const HsStateToken& aToken);
       
    43 
       
    44 private:
       
    45 
       
    46     Q_DISABLE_COPY(HsStateFactory)
       
    47 
       
    48 private:
       
    49     HsStateFactoryPrivate* mD;
       
    50     friend class HsStateFactoryPrivate;
       
    51 
       
    52 };
       
    53 
       
    54 #endif