equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 #ifndef __AGMUTIL_H__ |
|
17 #define __AGMUTIL_H__ |
|
18 |
|
19 #include <e32std.h> |
|
20 #include "agmpanic.h" |
|
21 |
|
22 #if defined(_DEBUG) |
|
23 #define DBG_PANIC(m) Panic(m) |
|
24 #else |
|
25 #define DBG_PANIC(m) |
|
26 #endif |
|
27 |
|
28 IMPORT_C TUint32 GenerateHash8L(const TDesC8& aString); |
|
29 IMPORT_C TUint32 FoldAndGenerateHashL(const TDesC& aFileName); |
|
30 |
|
31 /** |
|
32 @internalAll |
|
33 @released |
|
34 */ |
|
35 enum TBits |
|
36 { |
|
37 EBit0= 0x00, |
|
38 EBit1= 0x01, |
|
39 EBit2= 0x02, |
|
40 EBit3= 0x04, |
|
41 EBit4= 0x08, |
|
42 EBit5= 0x10, |
|
43 EBit6= 0x20, |
|
44 EBit7= 0x40, |
|
45 EBit8= 0x80, |
|
46 EBit9= 0x100, |
|
47 EBit10= 0x200, |
|
48 EBit11= 0x400, |
|
49 EBit12= 0x800, |
|
50 EBit13= 0x1000, |
|
51 EBit14= 0x2000, |
|
52 EBit15= 0x4000, |
|
53 EBit16= 0x8000, |
|
54 EBit17= 0x10000, |
|
55 EBit18= 0x20000, |
|
56 EBit19= 0x40000, |
|
57 EBit20= 0x80000, |
|
58 EBit21= 0x100000, |
|
59 EBit22= 0x200000, |
|
60 EBit23= 0x400000, |
|
61 EBit24= 0x800000, |
|
62 EBit25= 0x1000000, |
|
63 EBit26= 0x2000000, |
|
64 EBit27= 0x4000000, |
|
65 EBit28= 0x8000000, |
|
66 EBit29= 0x10000000, |
|
67 EBit30= 0x20000000, |
|
68 EBit31= 0x40000000, |
|
69 EBit32= 0x80000000 |
|
70 }; |
|
71 |
|
72 |
|
73 #endif |