ncdengine/debuglogger/inc/catalogsdebugdefs.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   Debug logging utility definitions
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CATALOGSDEBUGDEFS_H
       
    20 #define CATALOGSDEBUGDEFS_H
       
    21 
       
    22 #include <e32def.h>
       
    23 #include "catalogslogger.hrh"
       
    24 
       
    25 _LIT( KCatalogsDebugMsgQueueName, "CatalogsLoggerMsgQueue" );
       
    26 _LIT( KCatalogsDebugChunk1Name, "CatalogsLoggerChunk1" );
       
    27 _LIT( KCatalogsDebugChunk2Name, "CatalogsLoggerChunk2" );
       
    28 _LIT( KCatalogsDebugChunkWriteSemaphoreName, "CatalogsLoggerChunkSemaphore" );
       
    29 _LIT( KCatalogsDebugMutexName, "CatalogsLoggerMutex" );
       
    30 const TInt KCatalogsDebugChunkSize = 128*1024;
       
    31 _LIT8( KCatalogsDebugLineSeparator, "\n" );
       
    32 
       
    33 enum TCatalogsDebugFlags
       
    34     {
       
    35     ECatalogsDebugFlagEnableError = 1 << ECatalogsLoggerSettingError,       // DLERROR
       
    36     ECatalogsDebugFlagEnableWarning = 1 << ECatalogsLoggerSettingWarning,   // DLWARNING
       
    37     ECatalogsDebugFlagEnableTrace = 1 << ECatalogsLoggerSettingTrace,       // DLTRACEIN, DLTRACEOUT, DLTRACE
       
    38     ECatalogsDebugFlagEnableInfo = 1 << ECatalogsLoggerSettingInfo,         // DLINFO
       
    39     ECatalogsDebugFlagFlushChunk = 1 << ENrOfCatalogsLoggerSettings         // Chunk flushed
       
    40     };    
       
    41 
       
    42 struct TCatalogsDebugChunkHeader
       
    43     {
       
    44     TUint32 iFlags;     // Bit field of TCatalogsDebugFlags
       
    45     TUint32 iOffset;    // Offset to free space in chunk (relative to after header)
       
    46     };
       
    47 
       
    48 /*
       
    49 enum TCatalogsLoggerPropertyKeys 
       
    50     {
       
    51     ECatalogsLoggerSettingsProperty
       
    52     };
       
    53 
       
    54 const TUid KCatalogsDebugPropertyCat = { 0x0B5C26D8 };  // Same as logger application UID 
       
    55 */
       
    56 
       
    57 #endif  //CATALOGSDEBUGDEFS_H