diff -r b183ec05bd8c -r 19bba8228ff0 syncmlfw/syncmlnotifier/inc/SyncMLMessageQueryDialog.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/syncmlfw/syncmlnotifier/inc/SyncMLMessageQueryDialog.h Wed Sep 01 12:27:42 2010 +0100 @@ -0,0 +1,93 @@ +/* +* Copyright (c) 2005 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: Message Query Dialog +* +*/ + + + +#ifndef CSYNCMLMESSAGEQUERYDIALOG_H +#define CSYNCMLMESSAGEQUERYDIALOG_H + +// INCLUDES +#include + + +// CLASS DECLARATION + +/** +* Message query with timeout. +* +* @lib SyncMLNotifier +* @since Series 60 3.0 +*/ +NONSHARABLE_CLASS ( CSyncMLMessageQueryDialog ) : public CAknMessageQueryDialog + + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CSyncMLMessageQueryDialog* NewL(TBool& aKeyPress); + + + /** + * Destructor. + */ + virtual ~CSyncMLMessageQueryDialog(); + + public: // Functions from base classes + /** + * Calls the exit of the Dialog launched + * @param None. + * @return None. + */ + void ExitL(); + + protected: // Functions from base classes + + + /** + * From CEikDialog: Determines if the dialog can be closed. + * @param aButtonId Identifier of the button pressed. + * @return whether to close the dialog or not. + */ + TBool OkToExitL( TInt aButtonId ); + + /** + * Called by OfferkeyEventL(), gives a change to dismiss the query even with + * keys different than Enter of Ok. + * @param aKeyEvent has the key event details + * @return whether to dismiss the dialog or not. + */ + TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent); + + + private: + + /** + * C++ default constructor. + */ + CSyncMLMessageQueryDialog(TBool& aKeyPress ); + + + private: // Data + + TBool& iKeyPress; + }; + +#endif // CSYNCMLMESSAGEQUERYDIALOG_H + +// End of File