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 |
30 #include <apgtask.h> |
28 #include <apgtask.h> |
31 #include <eikenv.h> |
29 #include <eikenv.h> |
32 #include <eikappui.h> |
30 #include <eikappui.h> |
33 #include <eikapp.h> |
31 #include <eikapp.h> |
34 #include <eikdoc.h> |
32 #include <eikdoc.h> |
35 #include <eikmenup.h> |
33 #include <mw/eikmenup.h> |
36 |
34 |
37 #include <ecom.h> |
35 #include <ecom/ecom.h> |
38 #include <implementationproxy.h> |
36 #include <ecom/implementationproxy.h> |
39 |
37 |
40 #include "TAppEmbedUids.h" |
38 #include "TAppEmbedUids.h" |
41 |
39 |
42 _LIT(KExampleText, "This test application defines KAppEmbeddableOnly in it's AIF file"); |
40 _LIT(KExampleText, "This test application defines KAppEmbeddableOnly in it's AIF file"); |
43 |
41 |
44 |
42 |
45 //////////////////////////////////////////////////////////////////////// |
43 // |
46 // |
44 // |
47 // CExampleAppView |
45 // CExampleAppView |
48 // |
46 // |
49 //////////////////////////////////////////////////////////////////////// |
47 // |
50 class CExampleAppView : public CCoeControl |
48 class CExampleAppView : public CCoeControl |
51 { |
49 { |
52 public: |
50 public: |
53 static CExampleAppView* NewL(const TRect& aRect); |
51 static CExampleAppView* NewL(const TRect& aRect); |
54 CExampleAppView(); |
52 CExampleAppView(); |
102 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
100 gc.DrawText(*iExampleText,drawRect,baselineOffset,CGraphicsContext::ECenter, 0); |
103 gc.DiscardFont(); |
101 gc.DiscardFont(); |
104 } |
102 } |
105 |
103 |
106 |
104 |
107 //////////////////////////////////////////////////////////////////////// |
105 // |
108 // |
106 // |
109 // CExampleAppUi |
107 // CExampleAppUi |
110 // |
108 // |
111 //////////////////////////////////////////////////////////////////////// |
109 // |
112 class CExampleAppUi : public CEikAppUi |
110 class CExampleAppUi : public CEikAppUi |
113 { |
111 { |
114 public: |
112 public: |
115 void ConstructL(); |
113 void ConstructL(); |
116 ~CExampleAppUi(); |
114 ~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 |