1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/loggingservices/eventlogger/LogWrap/inc/LOGWRAP.RH Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,91 @@
1.4 +// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +// General
1.20 +#define ELogEnable 1
1.21 +#define ELogDisable 0
1.22 +#define ELogUnique 1
1.23 +#define ELogUndefined -1
1.24 +
1.25 +STRUCT CONFIG
1.26 + {
1.27 + WORD size;
1.28 + BYTE recent;
1.29 + LONG age;
1.30 + }
1.31 +
1.32 +
1.33 +// Used for definition of capabilities in logwrap.rss
1.34 +// There may be a maximum of 7 CAPABILITIES defined per operation in logwrap.rss because
1.35 +// 7 is the max number of TCapability(s) that can be used to instantiate a TSecurityPolicy.
1.36 +//
1.37 +STRUCT CAPABILITY
1.38 + {
1.39 + LONG cap;
1.40 + }
1.41 +
1.42 +// used to define a security policy in logwrap.rss. Each SECURITY
1.43 +// struct defines the capabilities required to read/write log events
1.44 +// of the type specified by 'uid'. These entries will be used as
1.45 +// constructor arguments to a TSecurityPolicy.
1.46 +// Note that SID-based security isn't supported in the Log Engine.
1.47 +//
1.48 +STRUCT SECURITY
1.49 + {
1.50 + LONG uid;
1.51 + STRUCT read_caps[];
1.52 + STRUCT write_caps[];
1.53 + }
1.54 +
1.55 +STRUCT ETYPE
1.56 + {
1.57 + LONG uid;
1.58 + LTEXT description;
1.59 + BYTE enabled = ELogEnable;
1.60 + }
1.61 +
1.62 +ENUM {EAsc,EDesc};
1.63 +
1.64 +STRUCT KEY
1.65 + {
1.66 + LTEXT col;
1.67 + WORD order = EAsc;
1.68 + WORD len = ELogUndefined;
1.69 + }
1.70 +
1.71 +ENUM { EDbCompareNormal, EDbCompareFolded, EDbCompareCollated };
1.72 +
1.73 +STRUCT INDEX
1.74 + {
1.75 + LTEXT name;
1.76 + LTEXT table;
1.77 + STRUCT keys[];
1.78 + BYTE unique = 0;
1.79 + BYTE compare = EDbCompareNormal;
1.80 + }
1.81 +
1.82 +STRUCT RECENT
1.83 + {
1.84 + BYTE id;
1.85 + WORD duplicate = 0;
1.86 + STRUCT conditions[];
1.87 + }
1.88 +
1.89 +STRUCT MATCH
1.90 + {
1.91 + WORD field;
1.92 + LTEXT string = "";
1.93 + LONG value = 0;
1.94 + }