0
|
1 |
/*
|
|
2 |
* Copyright (c) 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 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#include "trkappui.h"
|
|
20 |
|
|
21 |
void CTrkAppUi::ConstructL()
|
|
22 |
{
|
|
23 |
BaseConstructL();
|
|
24 |
TInt err = iTrkSession.ConnectToServer();
|
|
25 |
iAppView = CTrkAppView::NewL(ClientRect(), iTrkSession);
|
|
26 |
}
|
|
27 |
|
|
28 |
CTrkAppUi::~CTrkAppUi()
|
|
29 |
{
|
|
30 |
delete iAppView;
|
|
31 |
iTrkSession.ShutDownServer();
|
|
32 |
iTrkSession.Close();
|
|
33 |
}
|
|
34 |
|
|
35 |
void CTrkAppUi::HandleCommandL(TInt aCommand)
|
|
36 |
{
|
|
37 |
switch (aCommand)
|
|
38 |
{
|
|
39 |
case EEikCmdExit:
|
|
40 |
{
|
|
41 |
Exit();
|
|
42 |
break;
|
|
43 |
}
|
|
44 |
}
|
|
45 |
}
|
|
46 |
|
|
47 |
|