1 /* |
|
2 * Copyright (c) 2005, 2006 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: Implementation of AppUI class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 |
|
21 #include "USBClassChangeUIAppUi.h" |
|
22 #include "USBClassChangeUIDocument.h" |
|
23 #include "USBClassChangeUIDebug.h" |
|
24 #include "USBClassChangeUIPluginInterface.h" |
|
25 |
|
26 #include <avkon.hrh> |
|
27 |
|
28 #include <gsplugininterface.h> |
|
29 |
|
30 const TUid KUidImpl = { 0x1027478F }; // implementation UID of the plugin |
|
31 |
|
32 // ================= MEMBER FUNCTIONS ========================================= |
|
33 // |
|
34 |
|
35 // ---------------------------------------------------------------------------- |
|
36 // CUSBClassChangeUIAppUi::ConstructL() |
|
37 // Symbian 2nd phase constructor can leave. |
|
38 // ---------------------------------------------------------------------------- |
|
39 // |
|
40 void CUSBClassChangeUIAppUi::ConstructL() |
|
41 { |
|
42 FLOG(_L("[CUSBClassChangeUI]\t CUSBClassChangeUIAppUi::ConstructL()")); |
|
43 |
|
44 BaseConstructL( EAknEnableSkin | EAknEnableMSK |EAknSingleClickCompatible); |
|
45 |
|
46 // Create the view using the GSPluginInterface |
|
47 // |
|
48 CUSBClassChangeUIPluginInterface* mainView = |
|
49 CUSBClassChangeUIPluginInterface::NewL( KUidImpl, this ); |
|
50 |
|
51 CleanupStack::PushL( mainView ); |
|
52 AddViewL( mainView ); // Transfer ownership to CAknViewAppUi |
|
53 CleanupStack::Pop( mainView ); |
|
54 |
|
55 ActivateLocalViewL( mainView->Id() ); |
|
56 |
|
57 FLOG( _L("[CUSBClassChangeUI]\t CUSBClassChangeUIAppUi::ConstructL complete")); |
|
58 } |
|
59 |
|
60 // ---------------------------------------------------------------------------- |
|
61 // CUSBClassChangeUIAppUi::~CUSBUIAppUi() |
|
62 // Destructor |
|
63 // Frees reserved resources |
|
64 // ---------------------------------------------------------------------------- |
|
65 // |
|
66 CUSBClassChangeUIAppUi::~CUSBClassChangeUIAppUi() |
|
67 { |
|
68 FLOG( _L("[CUSBClassChangeUI]\t CUSBClassChangeUIAppUi::Destructor (empty) complete")); |
|
69 } |
|
70 |
|
71 // ---------------------------------------------------------------------------- |
|
72 // CUSBClassChangeUIAppUi::HandleCommandL(TInt aCommand) |
|
73 // Takes care of command handling |
|
74 // ---------------------------------------------------------------------------- |
|
75 // |
|
76 void CUSBClassChangeUIAppUi::HandleCommandL(TInt aCommand) |
|
77 { |
|
78 FLOG( _L("[CUSBClassChangeUI]\t CUSBClassChangeUIAppUi::HandleCommandL()")); |
|
79 switch ( aCommand ) |
|
80 { |
|
81 case EAknSoftkeyExit: |
|
82 case EEikCmdExit: |
|
83 { |
|
84 Exit(); |
|
85 break; |
|
86 } |
|
87 |
|
88 default: |
|
89 { |
|
90 FLOG( _L("[CUSBClassChangeUI]\t CUSBClassChangeUIAppUi::HandleCommandL default switch")); |
|
91 break; |
|
92 } |
|
93 } |
|
94 |
|
95 FLOG( _L("[CUSBClassChangeUI]\t CUSBClassChangeUIAppUi::HandleCommandL complete")); |
|
96 } |
|
97 // End of File |
|