diff -r 000000000000 -r 7f656887cf89 libraries/btrace_parser/inc/btrace_parser_defs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libraries/btrace_parser/inc/btrace_parser_defs.h Wed Jun 23 15:52:26 2010 +0100 @@ -0,0 +1,105 @@ +// btrace_parser_defs.h +// +// Copyright (c) 2008 - 2010 Accenture. All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the "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: +// Accenture - Initial contribution +// + +#ifndef __BTRACE_PARSER_DEFS_H__ +#define __BTRACE_PARSER_DEFS_H__ + +#include +#include + +// BTrace category +const TUint KAmTraceCategory = BTrace::ESymbianExtentionsFirst; + +// BTrace subcategories +enum TAmTraceSubCategory + { + // Subcategories for trace generated by autometric components + EAmTraceSubCategoryEvCapture = 0, + EAmTraceSubCategoryScreenDriver = 1, + EAmTraceSubCategoryScreenText = 2, + EAmTraceSubCategoryWindowGroupName = 3, + EAmTraceSubCategoryReaderSync = 4, + EAmTraceSubCategoryWindowGroupFocus = 5, + EAmTraceSubCategoryViewActivated = 6, + EAmTraceSubCategoryThreadKilled = 7, + EAmTraceSubCategoryThreadTerminated = 8, + EAmTraceSubCategoryThreadPanicked = 9, + EAmTraceSubCategoryProcessKilled = 10, + EAmTraceSubCategoryProcessTerminated = 11, + EAmTraceSubCategoryProcessPanicked = 12, + EAmTraceSubCategoryScreenshot = 13, + EAmTraceSubCategoryFreeRAM = 14, + + // Btrace frames with subcategory number higher than this are parsed by CBtraceDomainEvent. + EAmTraceSubCategoryDomainEventBase = 64, + + // Subcategories for trace generated by other subsystems. + EAmTraceSubCategoryMultimediaAudio = 65, + EAmTraceSubCategoryMultimediaVideo = 66, + EAmTraceSubCategoryCompatibilityPlaceHolder = 67, // Was previously EAmTraceSubCategoryScreenshot. + }; + + +/** + * Enumeration specifying the event types which can be provided in frames with + * the EAmTraceSubCategoryEvCapture subcategory. + */ +enum TAmTraceEventEvCapture + { + EAmTraceEventEvCaptureKeyPress = 2, + EAmTraceEventEvCapturePointer = 3, + EAmTraceEventEvCaptureUnclassified = 4, + EAmTraceEventEvCaptureSystemAppResponse = 5, + EAmTraceEventEvCaptureRawScan = 6, + }; + + +/** + * Enumeration specifying the event types which can be provided in frames with + * the EAmTraceSubCategoryMultimediaVideo subcategory. + * + * Note: in future, these should move into a separate, video-specific header. + */ +enum TAmTraceEventMultimediaVideo + { + EAmTraceEventMultimediaVideoStart = 1, + EAmTraceEventMultimediaVideoFrame = 2, + EAmTraceEventMultimediaVideoStop = 3, + EAmTraceEventMultimediaVideoUnderflowError = 4, + EAmTraceEventMultimediaVideoOverflowError = 5, + + // Error other than underflow or overflow + EAmTraceEventMultimediaVideoError = 6 + }; + +enum TAmTraceEventMultimediaAudio + { + EAmTraceEventMultimediaAudioStart = 1, + EAmTraceEventMultimediaAudioFrame = 2, + EAmTraceEventMultimediaAudioStop = 3, + EAmTraceEventMultimediaAudioUnderflowError = 4, + EAmTraceEventMultimediaAudioOverflowError = 5, + + // Error other than underflow or overflow + EAmTraceEventMultimediaAudioError = 6 + }; + +/** + * Enumeration specifying the event types which can be provided in frames with + * the EAmTraceSubCategoryScreenDriver subcategory. + */ +enum TAmTraceEventScreenDriver + { + EAmTraceEventScreenDriverRectangleUpdated + }; + +#endif // __BTRACE_PARSER_DEFS_H__