|
1 /** |
|
2 * Copyright (c) 2005-2009 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: |
|
15 * CExampleAppUi handles the system events and menu events |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file |
|
24 @internalComponent |
|
25 @test |
|
26 */ |
|
27 class CExampleAppUi : public CEikAppUi |
|
28 { |
|
29 public: |
|
30 void ConstructL(); |
|
31 ~CExampleAppUi(); |
|
32 |
|
33 private: |
|
34 // Inherited from class CEikAppUi |
|
35 void HandleCommandL(TInt aCommand); |
|
36 TBool ProcessCommandParametersL(CApaCommandLine& aCommandLine); |
|
37 }; |
|
38 |
|
39 |
|
40 /** |
|
41 * CExampleDocument for creating the application UI |
|
42 * |
|
43 */ |
|
44 class CExampleDocument : public CEikDocument |
|
45 { |
|
46 public: |
|
47 // creates a CExampleDocument object |
|
48 static CExampleDocument* NewL(CEikApplication& aApp); |
|
49 CExampleDocument(CEikApplication& aApp); |
|
50 void ConstructL(); |
|
51 private: |
|
52 // Inherited from CEikDocument for creating the AppUI |
|
53 CEikAppUi* CreateAppUiL(); |
|
54 }; |
|
55 |
|
56 |
|
57 |
|
58 /** |
|
59 * CExampleApplication creates a new instance of the document |
|
60 * associated with this application |
|
61 * |
|
62 */ |
|
63 class CExampleApplication : public CEikApplication |
|
64 { |
|
65 private: |
|
66 // Inherited from class CApaApplication to create a new instance of the document |
|
67 CApaDocument* CreateDocumentL(); |
|
68 //gets the Application's UID |
|
69 TUid AppDllUid() const; |
|
70 }; |
|
71 |