|
1 /* |
|
2 * Copyright (c) 2005 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: Includes some common defines used in the Splash Screen |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef SPLASHSCREENDEFINES_H |
|
20 #define SPLASHSCREENDEFINES_H |
|
21 |
|
22 //CONSTANTS |
|
23 _LIT(KSplashBitmapName, "Z:SPLASHSCREEN.MIF"); |
|
24 _LIT(KPanicMsg,"SplashScreen"); |
|
25 |
|
26 _LIT(KSplashScreenWindowGroup, "S60SplashScreenGroup"); |
|
27 #define END_SPLASHSCREEN_EVENT (EEventUser + 999) |
|
28 |
|
29 _LIT_SECURITY_POLICY_C1(KReadPolicy, ECapabilityReadDeviceData); |
|
30 _LIT_SECURITY_POLICY_C1(KWritePolicy, ECapabilityWriteDeviceData); |
|
31 |
|
32 // MACROS |
|
33 #define TRACE_ADDPREFIX(aText) (TPtrC((const TText *)L"SplashScreen: \"" L##aText L"\"")) |
|
34 |
|
35 #ifdef _DEBUG |
|
36 #define TRACES(aMsg) RDebug::Print( TRACE_ADDPREFIX(aMsg) ) |
|
37 #define TRACES1(aFormat,aP1) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1) ) |
|
38 #define TRACES2(aFormat,aP1,aP2) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2) ) |
|
39 #define TRACES3(aFormat,aP1,aP2,aP3) RDebug::Print( TRACE_ADDPREFIX(aFormat),(aP1),(aP2),(aP3) ) |
|
40 #else |
|
41 #define TRACES(aMsg) |
|
42 #define TRACES1(aFormat,aP1) |
|
43 #define TRACES2(aFormat,aP1,aP2) |
|
44 #define TRACES3(aFormat,aP1,aP2,aP3) |
|
45 #endif |
|
46 |
|
47 const TInt KTriesToConnectServer( 2 ); |
|
48 const TInt KTimeBeforeRetryingServerConnection( 50000 ); |
|
49 |
|
50 #endif // SPLASHSCREENDEFINES_H |
|
51 |
|
52 // End of File |