diff -r f5050f1da672 -r 04becd199f91 javauis/runtimeui_akn/src.s60/runtimeuiavkon.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/javauis/runtimeui_akn/src.s60/runtimeuiavkon.h Tue Apr 27 16:30:29 2010 +0300 @@ -0,0 +1,56 @@ +/* +* Copyright (c) 2007 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: +* +*/ + + +#ifndef RUNTIMEUIAVKON_H +#define RUNTIMEUIAVKON_H + +#include "javaosheaders.h" +#include + +namespace java +{ +namespace runtimeui +{ + +class ConfirmData +{ +public: + inline ConfirmData(const TDesC& aQuestion, std::vector aAnswerOptions, int aAnswerSuggestion) + : iQuestion(aQuestion), iAnswerOptions(aAnswerOptions), iAnswerSuggestion(aAnswerSuggestion), iAnswer(NO_ANSWER) {} + + // constant identifying that the answer is not available + static const int NO_ANSWER = -1; + + // public members + const TDesC& iQuestion; + std::vector iAnswerOptions; + int iAnswerSuggestion; + int iAnswer; +}; + +class RuntimeUiAvkon +{ +public: + OS_IMPORT static void error(const TDesC& aAppName, const TDesC& aShortMsg, const TDesC& aDetailedMsg); + OS_IMPORT static bool confirm(const TDesC& aAppName, ConfirmData& aConfirmData, bool aIdentified); +}; + +} //end namespace runtimeui +} //end namespace java + +#endif // RUNTIMEUIAVKON_H