equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of the License "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 // |
7 // |
8 // Initial Contributors: |
8 // Initial Contributors: |
9 // Nokia Corporation - initial contribution. |
9 // Nokia Corporation - initial contribution. |
15 // to query the apparc server for applications which define |
15 // to query the apparc server for applications which define |
16 // different embeddability values in their AIF files. |
16 // different embeddability values in their AIF files. |
17 // |
17 // |
18 // |
18 // |
19 |
19 |
20 |
|
21 |
|
22 /** |
20 /** |
23 @file |
21 @file |
24 @internalComponent - Internal Symbian test code |
22 @internalComponent - Internal Symbian test code |
25 */ |
23 */ |
26 |
24 |
29 #include <apgtask.h> |
27 #include <apgtask.h> |
30 #include <eikenv.h> |
28 #include <eikenv.h> |
31 #include <eikappui.h> |
29 #include <eikappui.h> |
32 #include <eikapp.h> |
30 #include <eikapp.h> |
33 #include <eikdoc.h> |
31 #include <eikdoc.h> |
34 #include <eikmenup.h> |
32 #include <mw/eikmenup.h> |
35 |
33 |
36 #include <ecom.h> |
34 #include <ecom/ecom.h> |
37 #include <implementationproxy.h> |
35 #include <ecom/implementationproxy.h> |
38 |
36 |
39 #include "TAppEmbedUids.h" |
37 #include "TAppEmbedUids.h" |
40 |
38 |
41 _LIT(KExampleText, "This test application defines KAppEmbeddable in it's AIF file"); |
39 _LIT(KExampleText, "This test application defines KAppEmbeddable in it's AIF file"); |
42 |
40 |
43 |
41 |
44 //////////////////////////////////////////////////////////////////////// |
42 // |
45 // |
43 // |
46 // CExampleAppView |
44 // CExampleAppView |
47 // |
45 // |
48 //////////////////////////////////////////////////////////////////////// |
46 // |
49 class CExampleAppView : public CCoeControl |
47 class CExampleAppView : public CCoeControl |
50 { |
48 { |
51 public: |
49 public: |
52 static CExampleAppView* NewL(const TRect& aRect); |
50 static CExampleAppView* NewL(const TRect& aRect); |
53 CExampleAppView(); |
51 CExampleAppView(); |
101 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
99 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
102 gc.DiscardFont(); |
100 gc.DiscardFont(); |
103 } |
101 } |
104 |
102 |
105 |
103 |
106 //////////////////////////////////////////////////////////////////////// |
104 // |
107 // |
105 // |
108 // CExampleAppUi |
106 // CExampleAppUi |
109 // |
107 // |
110 //////////////////////////////////////////////////////////////////////// |
108 // |
111 class CExampleAppUi : public CEikAppUi |
109 class CExampleAppUi : public CEikAppUi |
112 { |
110 { |
113 public: |
111 public: |
114 void ConstructL(); |
112 void ConstructL(); |
115 ~CExampleAppUi(); |
113 ~CExampleAppUi(); |
143 break; |
141 break; |
144 } |
142 } |
145 } |
143 } |
146 |
144 |
147 |
145 |
148 //////////////////////////////////////////////////////////////////////// |
146 // |
149 // |
147 // |
150 // CExampleDocument |
148 // CExampleDocument |
151 // |
149 // |
152 //////////////////////////////////////////////////////////////////////// |
150 // |
153 class CExampleDocument : public CEikDocument |
151 class CExampleDocument : public CEikDocument |
154 { |
152 { |
155 public: |
153 public: |
156 static CExampleDocument* NewL(CEikApplication& aApp); |
154 static CExampleDocument* NewL(CEikApplication& aApp); |
157 CExampleDocument(CEikApplication& aApp); |
155 CExampleDocument(CEikApplication& aApp); |
171 return new(ELeave) CExampleAppUi; |
169 return new(ELeave) CExampleAppUi; |
172 } |
170 } |
173 |
171 |
174 |
172 |
175 |
173 |
176 //////////////////////////////////////////////////////////////////////// |
174 // |
177 // |
175 // |
178 // CExampleApplication |
176 // CExampleApplication |
179 // |
177 // |
180 //////////////////////////////////////////////////////////////////////// |
178 // |
181 |
179 |
182 class CExampleApplication : public CEikApplication |
180 class CExampleApplication : public CEikApplication |
183 { |
181 { |
184 private: |
182 private: |
185 // from CApaApplication |
183 // from CApaApplication |
227 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
225 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
228 { |
226 { |
229 aTableCount=sizeof(ImplementationTable)/sizeof(ImplementationTable[0]); |
227 aTableCount=sizeof(ImplementationTable)/sizeof(ImplementationTable[0]); |
230 return ImplementationTable; |
228 return ImplementationTable; |
231 } |
229 } |
|
230 |