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