phoneapp/phoneuiqtviewadapter/inc/telephonyservice.h
changeset 21 92ab7f8d0eab
child 46 bc5a64e5bc3c
equal deleted inserted replaced
4:c84cf270c54f 21:92ab7f8d0eab
       
     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 API to be used through Qt Highway.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef TELEPHONYSERVICE_H
       
    19 #define TELEPHONYSERVICE_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QString>
       
    23 #include <xqserviceprovider.h>
       
    24 
       
    25 class PhoneUIQtViewAdapter;
       
    26 
       
    27 
       
    28 class TelephonyService : public XQServiceProvider
       
    29 {
       
    30     Q_OBJECT
       
    31 public:
       
    32     TelephonyService(PhoneUIQtViewAdapter *phoneView, QObject *parent = 0);
       
    33     ~TelephonyService();
       
    34     
       
    35 public slots:
       
    36 
       
    37     /*!
       
    38         \fn void start()
       
    39         
       
    40         Start launches telephony UI service.
       
    41         serviceId '0': Brings phoneapp to foreground.
       
    42         serviceId '1': Starts incall dialer, note if there is no ongoing calls and client uses value '1'
       
    43                        then dialer launches on top of empty call handling.
       
    44         
       
    45         Usage example:
       
    46         int inCallDialer(1);
       
    47         XQServiceRequest snd("com.nokia.services.telephonyservices.starter", "start(int)", false);
       
    48         snd << inCallDialer;
       
    49         QVariant err;
       
    50         snd.send(err);
       
    51     */
       
    52     void start(const int serviceId);
       
    53     
       
    54 private:
       
    55     
       
    56     PhoneUIQtViewAdapter *m_viewAdapter;
       
    57 };
       
    58 
       
    59 #endif // TELEPHONYSERVICE_H