equal
deleted
inserted
replaced
|
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 #ifndef IRCONTROLSERVICE_H |
|
19 #define IRCONTROLSERVICE_H |
|
20 |
|
21 // System includes |
|
22 #include <QObject> |
|
23 #include <xqserviceprovider.h> |
|
24 |
|
25 // User includes |
|
26 #include "irservicedef.h" |
|
27 |
|
28 // Forward declarations |
|
29 class IRApplication; |
|
30 |
|
31 class IrControlService : public XQServiceProvider |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 explicit IrControlService(IRApplication *aIrApp, QObject *aParent = 0); |
|
37 virtual ~IrControlService(); |
|
38 |
|
39 public slots: |
|
40 int handleCmd(int aCmdId); // service interface, called via Qt Highway |
|
41 |
|
42 private: |
|
43 IrServiceResult::Type handleLaunchNowPlayingViewCmd(); |
|
44 IrServiceResult::Type handleLaunchNormallyCmd(); |
|
45 IrServiceResult::Type handlePlayCmd(); |
|
46 IrServiceResult::Type handleStopCmd(); |
|
47 IrServiceResult::Type handleCancelCmd(); |
|
48 |
|
49 private: |
|
50 IRApplication *mIrApp; |
|
51 |
|
52 Q_DISABLE_COPY(IrControlService) |
|
53 |
|
54 }; |
|
55 |
|
56 #endif // IRCONTROLSERVICE_H |