homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsviewappdetailsstate.h
changeset 51 4785f57bf3d4
child 60 30f14686fb04
equal deleted inserted replaced
46:23b5d6a29cce 51:4785f57bf3d4
       
     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:  Menu Application Library state.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSVIEWAPPDETAILSSTATE_H_
       
    19 #define HSVIEWAPPDETAILSSTATE_H_
       
    20 
       
    21 #include <QState>
       
    22 #include <QVariant>
       
    23 
       
    24 #include "hsmenustates_global.h"
       
    25 HS_STATES_TEST_CLASS(MenuStatesTest)
       
    26 
       
    27 class HbListWidget;
       
    28 class HsMenuItemModel;
       
    29 class HbDialog;
       
    30 class CaNotifier;
       
    31 
       
    32 class HsViewAppDetailsState: public QState
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
       
    37 
       
    38 public:
       
    39 
       
    40     HsViewAppDetailsState(QState *parent = 0);
       
    41 
       
    42     virtual ~HsViewAppDetailsState();
       
    43 
       
    44 protected:
       
    45 
       
    46     void onEntry(QEvent *event);
       
    47     void onExit(QEvent *event);
       
    48 
       
    49 private slots:
       
    50 
       
    51     void stateExited();
       
    52     void memoryCardRemoved();
       
    53     
       
    54 signals:
       
    55     void exit();    
       
    56 
       
    57 private:
       
    58 
       
    59     void construct();
       
    60     void subscribeForMemoryCardRemove(int entryId);
       
    61 
       
    62 private:
       
    63 
       
    64     HbDialog *mDialog;
       
    65     
       
    66     QObjectList mObjectList;
       
    67     
       
    68     CaNotifier *mNotifier;
       
    69 };
       
    70 
       
    71 #endif /* HSVIEWAPPDETAILSSTATE_H_ */