homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsdeletecollectionitemstate.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:
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef HSDELETECOLLECTIONITEMSTATE_H
       
    19 #define HSDELETECOLLECTIONITEMSTATE_H
       
    20 
       
    21 #include <QState>
       
    22 
       
    23 #include "hsmenustates_global.h"
       
    24 HS_STATES_TEST_CLASS(MenuStatesTest)
       
    25 
       
    26 class QAction;
       
    27 class HbAction;
       
    28 class HbMessageBox;
       
    29 class HsShortcutService;
       
    30 class HsMenuService;
       
    31 
       
    32 class HsDeleteCollectionItemState: public QState
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
       
    37 
       
    38 public:
       
    39 
       
    40     HsDeleteCollectionItemState(QState *parent = 0);
       
    41 
       
    42     virtual ~HsDeleteCollectionItemState();
       
    43 
       
    44 protected:
       
    45 
       
    46     void onEntry(QEvent *event);
       
    47 
       
    48 private slots:
       
    49 
       
    50     void deleteMessageFinished(HbAction* finishedAction);
       
    51 
       
    52     void cleanUp();
       
    53 
       
    54 signals:
       
    55 
       
    56     void exit();
       
    57 
       
    58 private:
       
    59 
       
    60     void construct();
       
    61 
       
    62 private:
       
    63 
       
    64     int mItemId;
       
    65 
       
    66     int mCollectionId;
       
    67 
       
    68     HbMessageBox *mDeleteMessage; // deletes itself automatically on close
       
    69 
       
    70     QAction *mConfirmAction; // child for mDeleteMessage
       
    71 
       
    72 };
       
    73 
       
    74 #endif //HSDELETECOLLECTIONITEMSTATE_H