satui/satapp/inc/satappconfirmprovider.h
author hgs
Fri, 15 Oct 2010 13:21:28 +0300
changeset 53 25b8d29b7c59
parent 33 8d5d7fcf9b59
permissions -rw-r--r--
201041

/*
* 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: Provides SAT user confim notes
*
*/

#ifndef SATAPPCONFIRMPROVIDER_H
#define SATAPPCONFIRMPROVIDER_H

// includes
#include <QObject>

// forward declarations
class HbMessageBox;
class SatAppAction;

class SatAppConfirmProvider : public QObject
{
    Q_OBJECT

public:
    /** Constructor */
    SatAppConfirmProvider(QObject *parent = 0);

    /** Destructor */
    virtual ~SatAppConfirmProvider();

public slots:

    /**
    * General confirmation request
    * @param userAccepted Indicates whether the command was accepted.
    */
    void confirmCommand(SatAppAction &action);

    /** clear the current dialog in screen */
    void clearScreen();

    /** reset some data members */
    void resetState();

private:

    /** Shows the confirm note about Open Channel */
    void showOpenChannelConfirm(SatAppAction &action);

    /** Shows the confirmation note about SetUpCall*/
    void showSetUpCallConfirm(SatAppAction &action);
    
    /** Shows the confirmation note about LaunchBrowser*/
    void showLaunchBrowserConfirm(SatAppAction &action);

private:

    /** Own.*/
    HbMessageBox *mConfirmQuery;
    
    SatAppAction *mAction;

    /** For unit testing.*/ 
    friend class ConfirmProviderTest;
};

#endif /* SATAPPCONFIRMPROVIDER_H */