diff -r 594d59766373 -r 7d48bed6ce0c satui/satapp/inc/satappconfirmprovider.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/satui/satapp/inc/satappconfirmprovider.h Tue Aug 31 15:45:17 2010 +0300 @@ -0,0 +1,72 @@ +/* +* 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 + +// 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 not about SetUpCall*/ + void showSetUpCallConfirm(SatAppAction &action); + +private: + + /** Own.*/ + HbMessageBox *mConfirmQuery; + + SatAppAction *mAction; + + /** For unit testing.*/ + friend class ConfirmProviderTest; +}; + +#endif /* SATAPPCONFIRMPROVIDER_H */