homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsmenubasestate.h
branchGCC_SURGE
changeset 68 4c11ecddf6b2
parent 53 f75922b9e380
parent 61 2b1b11a301d2
equal deleted inserted replaced
53:f75922b9e380 68:4c11ecddf6b2
     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: Menu Base state
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef HSMENUBASESTATE_H
       
    19 #define HSMENUBASESTATE_H
       
    20 
       
    21 #include <qstate.h>
       
    22 #include <QVariant>
       
    23 
       
    24 #include "hsmenustates_global.h"
       
    25 HS_STATES_TEST_CLASS(MenuStatesTest)
       
    26 
       
    27 class HsShortcutService;
       
    28 class HsContentService;
       
    29 
       
    30 class HsMenuBaseState: public QState
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
       
    35 
       
    36 public:
       
    37 
       
    38     HsMenuBaseState(const QString &objectName, QState *parent = 0);
       
    39 
       
    40     virtual ~HsMenuBaseState();
       
    41 
       
    42 protected:
       
    43 
       
    44     void construct(const QString &objectName);
       
    45 
       
    46     void requestServices(const QVariantList &services);
       
    47 
       
    48     void requestService(const QVariant &service);
       
    49 
       
    50     HsShortcutService *shortcutService() const;
       
    51 
       
    52     HsContentService *contentService() const;
       
    53 
       
    54 private:
       
    55 
       
    56     QVariant propertyWithChecking(const char *propertyName) const;
       
    57 
       
    58 
       
    59 };
       
    60 
       
    61 #endif //HSMENUBASESTATE_H