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 * The header file for tone fetcher. |
|
16 * |
|
17 */ |
|
18 #ifndef TONEFETCHER_H |
|
19 #define TONEFETCHER_H |
|
20 |
|
21 #include <xqserviceprovider.h> |
|
22 |
|
23 class HbMainWindow; |
|
24 class ToneFetcher : public XQServiceProvider |
|
25 { |
|
26 |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 explicit ToneFetcher(HbMainWindow *mainWindow = 0); |
|
31 ~ToneFetcher(); |
|
32 /* |
|
33 * return the tone's absolution path to the service requestor. |
|
34 */ |
|
35 void complete(); |
|
36 /* |
|
37 * currently only one request is allowed. |
|
38 */ |
|
39 bool isActive(); |
|
40 |
|
41 public slots: |
|
42 /* |
|
43 * tone fetcher service's operation |
|
44 */ |
|
45 void fetch(); |
|
46 |
|
47 private slots: |
|
48 /* |
|
49 * set the selected tone's path to be the return value |
|
50 */ |
|
51 void setSelectedPath(const QString &tonePath); |
|
52 |
|
53 private: |
|
54 HbMainWindow *mMainWindow; |
|
55 int mAsyncRequestIndex; |
|
56 QVariant mReturnValue; |
|
57 }; |
|
58 |
|
59 #endif // TONEFETCHER_H |