First public contribution.
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // openwfpanics.h: panic definition for OpenWf Interop
18 #ifndef OPENWFPANICS_H
19 #define OPENWFPANICS_H
20 enum TOpenWfcPanic // used for OpenWf errors
21 { //low values are line numbers.
22 EPanicSetOrderError =10001,
23 EPanicUnexpectedErrorElementConstruct,
24 EPanicWfcNoDevForScreen,
25 EPanicWfcDeviceNotCreated,
26 EPanicWfcContextNotCreated,
27 EPanicWfcStartupErrorUnexpected,
29 EPanicWfcElementNotRemovedOnShutdown,
30 EPanicWfcSourceLookupOnElementRemoval,
32 EPanicWfcInvalidRotation,
33 EPanicWfcBadAttribute,
34 EPanicWfcNoStreamSurface,
35 EPanicWfcThreadManagerNotInitialised,
36 EPanicWfcThreadManagerCannotQueueJob,
37 EPanicUnexpectedErrorElementScene,
38 EPanicUnexpectedErrorElementRemoval,
39 EPanicMethodNotImplemented,
43 void Panic(TOpenWfcPanic aPanic);
46 #define OPENWFC_ASSERT_DEBUG(c, p) \
54 #define OPENWFC_ASSERT_DEBUG(c, p)
57 #define OPENWFC_ASSERT_ALWAYS(c, p) \
65 #endif /*OPENWFPANICS_H_*/