author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 46 | bc5a64e5bc3c |
permissions | -rw-r--r-- |
37 | 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: telephony service |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#include <xqserviceutil.h> |
|
19 |
#include "telephonyservice.h" |
|
20 |
#include "phoneuiqtviewadapter.h" |
|
21 |
#include "tphonecmdparaminteger.h" |
|
22 |
#include "qtphonelog.h" |
|
23 |
||
24 |
TelephonyService::TelephonyService( PhoneUIQtViewAdapter *viewAdapter, QObject* parent) : |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
25 |
XQServiceProvider(QLatin1String("phoneui.com.nokia.symbian.IStart"), parent), |
37 | 26 |
m_viewAdapter (viewAdapter) |
27 |
{ |
|
28 |
PHONE_DEBUG("TelephonyService::TelephonyService"); |
|
29 |
publishAll(); |
|
30 |
} |
|
31 |
||
32 |
TelephonyService::~TelephonyService() |
|
33 |
{ |
|
34 |
PHONE_DEBUG("TelephonyService::~TelephonyService"); |
|
35 |
} |
|
36 |
||
37 |
void TelephonyService::start(const int serviceId) |
|
38 |
{ |
|
39 |
PHONE_DEBUG2("TelephonyService::start:", serviceId); |
|
40 |
switch (serviceId) { |
|
41 |
case 0: { |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
42 |
m_viewAdapter->ExecuteCommandL(EPhoneViewBringPhoneAppToForeground); |
37 | 43 |
break; |
44 |
} |
|
45 |
case 1: { |
|
46 |
m_viewAdapter->ExecuteCommandL( EPhoneViewOpenDialer ); |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
47 |
m_viewAdapter->ExecuteCommandL(EPhoneViewBringPhoneAppToForeground); |
37 | 48 |
break; |
49 |
} |
|
50 |
default: { |
|
51 |
// do nothing |
|
52 |
break; |
|
53 |
} |
|
54 |
} |
|
55 |
} |