os/graphics/graphicsdeviceinterface/directgdi/src/directgdipaniccodes.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef DIRECTGDIPANICCODES_H
sl@0
    17
#define DIRECTGDIPANICCODES_H
sl@0
    18
sl@0
    19
#include <e32std.h>
sl@0
    20
sl@0
    21
_LIT(KComponentPanicCategory, "DGDI");
sl@0
    22
#define SYMBIAN_PANIC_CATEGORY KComponentPanicCategory
sl@0
    23
#include <graphics/directgdipanics.h>
sl@0
    24
sl@0
    25
/**
sl@0
    26
Enumeration of DirectGDI panic codes. These should be used in conjunction with
sl@0
    27
the GRAPHICS_ASSERT_ALWAYS and GRAPHICS_PANIC_ALWAYS macros defined in directgdipanics.inl.
sl@0
    28
sl@0
    29
@internalComponent
sl@0
    30
*/
sl@0
    31
enum TDirectGdiPanicCode
sl@0
    32
	{
sl@0
    33
	/** The requested functionality has not been implemented - do not use.
sl@0
    34
	*/ 
sl@0
    35
	EDirectGdiPanicNotImplemented = 1,
sl@0
    36
sl@0
    37
	/** An assertion has evaluated to false.
sl@0
    38
	*/ 
sl@0
    39
	EDirectGdiPanicAssertionFailure = 2,
sl@0
    40
		
sl@0
    41
	/**	Valid reference to rendering engine	not found. 
sl@0
    42
	*/
sl@0
    43
	EDirectGdiPanicRenderingEngineNotSet = 3,
sl@0
    44
	
sl@0
    45
	/**	Valid reference to rendering target not found. 
sl@0
    46
	*/
sl@0
    47
	EDirectGdiPanicRenderingTargetNotSet = 4,
sl@0
    48
	
sl@0
    49
	/**	Valid reference to DirectGDI driver not initialised. 
sl@0
    50
	*/
sl@0
    51
	EDirectGdiPanicDirectGdiDriverNotInitialised = 5,
sl@0
    52
	
sl@0
    53
	/**	Invalid reference count to DirectGDI driver.
sl@0
    54
	*/
sl@0
    55
	EDirectGdiPanicDriverInvalidRefCount = 6,
sl@0
    56
	
sl@0
    57
	/** Context has not been activated. 
sl@0
    58
	*/
sl@0
    59
	EDirectGdiPanicContextNotActivated = 7,
sl@0
    60
	
sl@0
    61
	/** Invalid brush pattern passed to SetBrushPattern().
sl@0
    62
	*/
sl@0
    63
	EDirectGdiPanicInvalidBrushPattern = 8,
sl@0
    64
	
sl@0
    65
	/** Attempt to use a brush with brush style style is EPatternedBrush but a pattern has not 
sl@0
    66
	    been successfully set using SetBrushPattern().
sl@0
    67
	*/
sl@0
    68
	EDirectGdiPanicBrushPatternNotSet = 9,
sl@0
    69
	
sl@0
    70
	/** Invalid brush style.
sl@0
    71
	*/
sl@0
    72
	EDirectGdiPanicInvalidBrushStyle = 10,
sl@0
    73
	
sl@0
    74
	/** No valid font has been selected.
sl@0
    75
	*/
sl@0
    76
	EDirectGdiPanicNoFontSelected = 11,
sl@0
    77
	
sl@0
    78
	/** Invalid font.
sl@0
    79
	*/
sl@0
    80
	EDirectGdiPanicInvalidFont = 12,
sl@0
    81
	
sl@0
    82
	/** UpdateJustification called wrongly.
sl@0
    83
	*/
sl@0
    84
	EDirectGdiPanicAutoUpdateJustificationUsed = 13,
sl@0
    85
	
sl@0
    86
	/** A check on the open count in CDirectGdiDriver::Open() failed.
sl@0
    87
	*/
sl@0
    88
	EDirectGdiPanicDriverOpenCountError = 14,
sl@0
    89
	
sl@0
    90
	/** A check on the open count in CDirectGdiDriver::~CDirectGdiDriver() failed.
sl@0
    91
	*/
sl@0
    92
	EDirectGdiPanicDriverDestructorOpenCountError = 15,
sl@0
    93
	
sl@0
    94
	/** The RDirectGdiImageTarget object has no pointer to the DirectGDI driver
sl@0
    95
	*/
sl@0
    96
	EDirectGdiPanicImageTargetWithoutDriver = 16,
sl@0
    97
	
sl@0
    98
	/** The RDirectGdiImageTarget object already has an image target in use in CDirectGdiDriver::CreateImageTarget()
sl@0
    99
	*/
sl@0
   100
	EDirectGdiPanicImageTargetAlreadyExists = 17,
sl@0
   101
	
sl@0
   102
	/** The RDirectGdiDrawableSource object has no pointer to the DirectGDI driver
sl@0
   103
	*/
sl@0
   104
	EDirectGdiPanicDrawableSourceWithoutDriver = 18,
sl@0
   105
	
sl@0
   106
	/** The RDirectGdiDrawableSource object already has a drawable source in use in CDirectGdiDriver::CreateDrawableSource()
sl@0
   107
	*/
sl@0
   108
	EDirectGdiPanicDrawableSourceAlreadyExists = 19,
sl@0
   109
	
sl@0
   110
	/** GetInfo failed for an image in CDirectGdiDriver::CreateDrawableSource()
sl@0
   111
	 */
sl@0
   112
	EDirectGdiPanicImageSourceInfoError = 20,
sl@0
   113
	
sl@0
   114
	/** GetInfo failed for an image in CDirectGdiDriver::CreateImageTarget()
sl@0
   115
	 */
sl@0
   116
	EDirectGdiPanicImageTargetInfoError = 21,
sl@0
   117
	
sl@0
   118
	/** Bad parameter is passed to the function
sl@0
   119
	 */
sl@0
   120
	EDirectGdiPanicBadParameter = 22,
sl@0
   121
	};
sl@0
   122
sl@0
   123
#endif /*DIRECTGDIPANICCODES_H*/