homescreenapp/stateplugins/hsmenuworkerstateplugin/inc/hsviewappsettingsstate.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:43:04 +0300
changeset 46 23b5d6a29cce
parent 39 4e8ebe173323
child 69 87476091b3f5
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Menu Application Library state.
*
*/


#ifndef HSVIEWAPPSETTINGSSTATE_H
#define HSVIEWAPPSETTINGSSTATE_H

#include <QState>

#include "hsmenustates_global.h"
#include "hbmainwindow.h"

HS_STATES_TEST_CLASS(MenuStatesTest)

class HsMenuService;
class HbView;
class HbAction;
class CaNotifier;

class HsViewAppSettingsState : public QState
{
    Q_OBJECT

    HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)

public:

    HsViewAppSettingsState(QState *parent = 0);

    virtual ~HsViewAppSettingsState();
    
private slots:
    
    void settingsDone();
    
signals:
        void initialize(const QString &aUid);      
    void exit();

protected:

    void onEntry(QEvent *event);
    void onExit(QEvent *event);

private:

    void construct();
    
    HbMainWindow *mainWindow() const; 
    
    void subscribeForMemoryCardRemove(int entryId);

private:

    HbView *mView;

    HbView *mPreviousView;
    
    HbAction *mActionConfirm;
    
    CaNotifier *mNotifier;

};



#endif //HSVIEWAPPSETTINGSSTATE_H