--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/phoneapp/phoneuiqtviewadapter/inc/telephonyservice.h Tue Aug 31 15:14:29 2010 +0300
@@ -0,0 +1,68 @@
+/*!
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Telephony Service API to be used through Qt Highway.
+*
+*/
+
+#ifndef TELEPHONYSERVICE_H
+#define TELEPHONYSERVICE_H
+
+#include <QObject>
+#include <QString>
+#include <xqserviceprovider.h>
+
+class PhoneUIQtViewAdapter;
+
+
+class TelephonyService : public XQServiceProvider
+{
+ Q_OBJECT
+public:
+ TelephonyService(PhoneUIQtViewAdapter *phoneView, QObject *parent = 0);
+ ~TelephonyService();
+
+public slots:
+
+ /*!
+ \fn void start()
+
+ Start launches telephony UI service.
+ serviceId '0': Brings phoneapp to foreground.
+ serviceId '1': Starts incall dialer, note if there is no ongoing calls and client uses value '1'
+ then dialer launches on top of empty call handling.
+
+ Usage example:
+ QString service("phoneui");
+ QString interface(""com.nokia.symbian.IStart");
+ QString operation("start(int)");
+ XQApplicationManager appManager;
+ QScopedPointer<XQAiwRequest> request(appManager.create(service, interface, operation, false));
+ if (request == NULL) {
+ //Service not found
+ }
+ QList<QVariant> args;
+ args << 1; // open dialpad
+ request->setArguments(args);
+ if (request->send()) {
+ //error
+ }
+ */
+ void start(const int serviceId);
+
+private:
+
+ PhoneUIQtViewAdapter *m_viewAdapter;
+};
+
+#endif // TELEPHONYSERVICE_H