loggingservices/eventlogger/LogWrap/inc/LOGWRAP.RH
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 1999-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 // General
       
    17 #define ELogEnable 1
       
    18 #define ELogDisable 0
       
    19 #define ELogUnique 1
       
    20 #define ELogUndefined -1
       
    21 
       
    22 STRUCT CONFIG
       
    23 	{
       
    24 	WORD size;
       
    25 	BYTE recent;
       
    26 	LONG age;
       
    27 	}
       
    28 
       
    29 
       
    30 // Used for definition of capabilities in logwrap.rss
       
    31 // There may be a maximum of 7 CAPABILITIES defined per operation in logwrap.rss because
       
    32 // 7 is the max number of TCapability(s) that can be used to instantiate a TSecurityPolicy.
       
    33 //
       
    34 STRUCT CAPABILITY
       
    35 	{
       
    36 	LONG cap;
       
    37 	}
       
    38 	
       
    39 // used to define a security policy in logwrap.rss.  Each SECURITY
       
    40 // struct defines the capabilities required to read/write log events
       
    41 // of the type specified by 'uid'.  These entries will be used as 
       
    42 // constructor arguments to a TSecurityPolicy.
       
    43 // Note that SID-based security isn't supported in the Log Engine.
       
    44 //
       
    45 STRUCT SECURITY
       
    46 	{
       
    47 	LONG uid;
       
    48 	STRUCT read_caps[];
       
    49 	STRUCT write_caps[];
       
    50 	}	
       
    51 
       
    52 STRUCT ETYPE
       
    53 	{
       
    54 	LONG uid;
       
    55 	LTEXT description;
       
    56 	BYTE enabled = ELogEnable;
       
    57 	}
       
    58 	
       
    59 ENUM {EAsc,EDesc};
       
    60 
       
    61 STRUCT KEY
       
    62 	{
       
    63 	LTEXT col;
       
    64 	WORD order = EAsc;
       
    65 	WORD len = ELogUndefined;
       
    66 	}
       
    67 
       
    68 ENUM { EDbCompareNormal, EDbCompareFolded, EDbCompareCollated };
       
    69 
       
    70 STRUCT INDEX
       
    71 	{
       
    72 	LTEXT name;
       
    73 	LTEXT table;
       
    74 	STRUCT keys[];
       
    75 	BYTE unique = 0;
       
    76 	BYTE compare = EDbCompareNormal;
       
    77 	}
       
    78 
       
    79 STRUCT RECENT
       
    80 	{
       
    81 	BYTE id;
       
    82 	WORD duplicate = 0;
       
    83 	STRUCT conditions[];
       
    84 	}
       
    85 
       
    86 STRUCT MATCH
       
    87 	{
       
    88 	WORD field;
       
    89 	LTEXT string = "";
       
    90 	LONG value = 0;
       
    91 	}