|
1 // Copyright (c) 2006-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 the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // The class definitions for the simple application for testing using T_SynAppListAndFileUpdate.cpp |
|
15 // containing a single view with the text "App Installed !" drawn on it. |
|
16 // |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @test |
|
24 @internalComponent - Internal Symbian test code |
|
25 */ |
|
26 |
|
27 |
|
28 #ifndef __TESTAPPINSTALL_H |
|
29 #define __TESTAPPINSTALL_H |
|
30 |
|
31 #include <coeccntx.h> |
|
32 |
|
33 #include <eikenv.h> |
|
34 #include <eikappui.h> |
|
35 #include <eikapp.h> |
|
36 #include <eikdoc.h> |
|
37 #include <eikmenup.h> |
|
38 |
|
39 #include <eikon.hrh> |
|
40 |
|
41 #include <testappinstall.rsg> |
|
42 #include "testappinstall.hrh" |
|
43 |
|
44 |
|
45 |
|
46 //////////////////////////////////////////////////////////////////////// |
|
47 // |
|
48 // CExampleApplication |
|
49 // |
|
50 //////////////////////////////////////////////////////////////////////// |
|
51 |
|
52 class CExampleApplication : public CEikApplication |
|
53 { |
|
54 private: |
|
55 // Inherited from class CApaApplication |
|
56 CApaDocument* CreateDocumentL(); |
|
57 TUid AppDllUid() const; |
|
58 }; |
|
59 |
|
60 //////////////////////////////////////////////////////////////////////// |
|
61 // |
|
62 // CExampleAppView |
|
63 // |
|
64 //////////////////////////////////////////////////////////////////////// |
|
65 class CExampleAppView : public CCoeControl |
|
66 { |
|
67 public: |
|
68 static CExampleAppView* NewL(const TRect& aRect); |
|
69 CExampleAppView(); |
|
70 ~CExampleAppView(); |
|
71 void ConstructL(const TRect& aRect); |
|
72 |
|
73 private: |
|
74 // Inherited from CCoeControl |
|
75 void Draw(const TRect& /*aRect*/) const; |
|
76 |
|
77 private: |
|
78 HBufC* iExampleText; |
|
79 }; |
|
80 |
|
81 |
|
82 //////////////////////////////////////////////////////////////////////// |
|
83 // |
|
84 // CExampleAppUi |
|
85 // |
|
86 //////////////////////////////////////////////////////////////////////// |
|
87 class CExampleAppUi : public CEikAppUi |
|
88 { |
|
89 public: |
|
90 void ConstructL(); |
|
91 ~CExampleAppUi(); |
|
92 |
|
93 private: |
|
94 // Inherirted from class CEikAppUi |
|
95 void HandleCommandL(TInt aCommand); |
|
96 |
|
97 private: |
|
98 CCoeControl* iAppView; |
|
99 }; |
|
100 |
|
101 |
|
102 //////////////////////////////////////////////////////////////////////// |
|
103 // |
|
104 // CExampleDocument |
|
105 // |
|
106 //////////////////////////////////////////////////////////////////////// |
|
107 class CExampleDocument : public CEikDocument |
|
108 { |
|
109 public: |
|
110 static CExampleDocument* NewL(CEikApplication& aApp); |
|
111 CExampleDocument(CEikApplication& aApp); |
|
112 void ConstructL(); |
|
113 private: |
|
114 // Inherited from CEikDocument |
|
115 CEikAppUi* CreateAppUiL(); |
|
116 }; |
|
117 |
|
118 |
|
119 #endif |