homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsallcollectionsstate.h
branchRCL_3
changeset 82 5f0182e07bfb
equal deleted inserted replaced
79:f00a6757af32 82:5f0182e07bfb
       
     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 All Collections state.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef HSALLCOLLECTIONSSTATE_H
       
    19 #define HSALLCOLLECTIONSSTATE_H
       
    20 
       
    21 #include "hsbaseviewstate.h"
       
    22 
       
    23 HS_STATES_TEST_CLASS(MenuStatesTest)
       
    24 
       
    25 class QPointF;
       
    26 class HsMenuViewBuilder;
       
    27 class HbAbstractViewItem;
       
    28 class HbAction;
       
    29 class HbMainWindow;
       
    30 class HsMenuItemModel;
       
    31 class HsMenuView;
       
    32 class HsMainWindow;
       
    33 class HsMenuModeWrapper;
       
    34 
       
    35 class HsAllCollectionsState: public HsBaseViewState
       
    36 {
       
    37     Q_OBJECT
       
    38     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
       
    39 public:
       
    40     HsAllCollectionsState(HsMenuViewBuilder &menuViewBuilder,
       
    41                           HsMenuModeWrapper &menuMode,
       
    42                           HsMainWindow &mainWindow,
       
    43                           QState *parent = 0);
       
    44     ~HsAllCollectionsState();
       
    45 protected:
       
    46 signals:
       
    47     void toAppLibraryState();
       
    48 
       
    49 private slots:
       
    50     void createNewCollection();
       
    51     void createArrangeCollection();
       
    52     void normalModeEntered();
       
    53     void normalModeExited();
       
    54     void stateExited();
       
    55 private:
       
    56     void construct();
       
    57     void setMenuOptions();
       
    58     void setContextMenuOptions(HbAbstractViewItem *item, EntryFlags flags);
       
    59 };
       
    60 
       
    61 #endif // HSALLCOLLECTIONSSTATE_H