diff -r f15ac8e65a02 -r 779871d1e4f4 vtuis/videotelui/inc/VtUiPanic.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vtuis/videotelui/inc/VtUiPanic.h Wed Sep 01 12:29:12 2010 +0100 @@ -0,0 +1,83 @@ +/* +* Copyright (c) 2004 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: Panic methods and reasons for Video Telephone application. +* +*/ + + + +#ifndef VTUIPANIC_H +#define VTUIPANIC_H + +// INCLUDES +#include + +// DATA TYPES + +/** +* Enumerates all panic reasons. +*/ +enum TVtUiPanicReason + { + // Invalid index passed to VtUiLayout::Resolve. + EVtUiPanicInvalidBitmapId = 10, + // Invalid bitmap file in VtUiLayout::Resolve. + EVtUiPanicInvalidBitmapFile = 11, + // Reset must not fail. + EVtUiPanicResetFailed = 12, + // Communication not supported. + EVtUiPanicCommsNotSupported = 13, + // EIKON server handle not found. + EVtUiPanicEikonServerNotFound = 14, + // Prepare view finder not supported. + EVtUiPanicPrepareViewFinderNotSupported = 15, + // Prepare remote render not supported. + EVtUiPanicPrepareRemoteRenderNotSupported = 16, + // Mismatch in bitmap file names. + EVtUiPanicMismatchInBitmapFileNames = 17, + // Default color requirement mismatch. + EVtUiPanicDefaultColorRequireMismatch = 18, + // Application shutdown has timeouted. + EVtUiPanicApplicationShutdownTimeout = 100, + // Engine functionality does not match with required. + EVtUiPanicEngineFunctionalityAssert = 101, + // Renderer instance is not available + EVtUiPanicRendererNotFound = 200, + // Values out of range + EVtUiPanicOutOfRange = 300 + }; + +// CLASS DECLARATION + +/** +* Panic methods and reasons for Video Telephone application. +* +* @since Series 60 2.6 +*/ +class VtUiPanic + { + public: // New functions + + /** + * Panics this process. + * @param aReason reason of panic. + */ + static void Panic( + TVtUiPanicReason aReason ); + + }; + +#endif // VTUIPANIC_H + +// End of File