|
1 // Copyright (c) 2007-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 /** |
|
17 @file |
|
18 @test |
|
19 @internalComponent - Internal Symbian test code |
|
20 */ |
|
21 |
|
22 #ifndef __TESTAPPSLOW_H |
|
23 #define __TESTAPPSLOW_H |
|
24 |
|
25 const TInt KTestAppMilliToMicro = 1000; |
|
26 const TInt KTestAppSlowTimeoutInMilliSeconds = 800; |
|
27 const TInt KTestAppSlowTimeout = KTestAppSlowTimeoutInMilliSeconds * KTestAppMilliToMicro; |
|
28 |
|
29 |
|
30 /** |
|
31 Application class |
|
32 */ |
|
33 #include <eikapp.h> |
|
34 class CTestApplication : public CEikApplication |
|
35 { |
|
36 public: |
|
37 static CApaApplication* NewApplication(); |
|
38 ~CTestApplication(); |
|
39 |
|
40 private: |
|
41 CTestApplication(); |
|
42 |
|
43 // from CApaApplication |
|
44 TUid AppDllUid() const; |
|
45 CApaDocument* CreateDocumentL(); |
|
46 }; |
|
47 |
|
48 /** |
|
49 Document class |
|
50 */ |
|
51 #include <eikdoc.h> |
|
52 class CEikAppUi; |
|
53 class CEikApplication; |
|
54 class CTestDocument : public CEikDocument |
|
55 { |
|
56 public: |
|
57 static CTestDocument* NewL(CEikApplication& aApp); |
|
58 ~CTestDocument(); |
|
59 |
|
60 private: |
|
61 CTestDocument(CEikApplication& aApp); |
|
62 |
|
63 // from CEikDocument |
|
64 CEikAppUi* CreateAppUiL(); |
|
65 }; |
|
66 |
|
67 /** |
|
68 Application UI class, root of all graphical user interface in this application |
|
69 */ |
|
70 #include <eikappui.h> |
|
71 class CTestAppUi : public CEikAppUi |
|
72 { |
|
73 public: |
|
74 CTestAppUi(); |
|
75 ~CTestAppUi(); |
|
76 |
|
77 // from CEikAppUi |
|
78 void ConstructL(); |
|
79 }; |
|
80 |
|
81 #endif // __TESTAPPSLOW_H |