equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 |
|
19 #ifndef __DOWNLOADS_H__ |
|
20 #define __DOWNLOADS_H__ |
|
21 |
|
22 #include <QObject> |
|
23 |
|
24 class QWebPage; |
|
25 |
|
26 class DownloadController; |
|
27 class Download; |
|
28 |
|
29 namespace GVA { |
|
30 |
|
31 class Downloads : public QObject |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 Downloads(); |
|
37 virtual ~Downloads(); |
|
38 |
|
39 void handlePage(QWebPage * page); |
|
40 |
|
41 private slots: |
|
42 void reportDownloadCreated(Download * download); |
|
43 void reportDownloadStarted(Download * download); |
|
44 void reportDownloadSuccess(Download * download); |
|
45 void reportDownloadFailure(Download * download, const QString & error); |
|
46 |
|
47 signals: |
|
48 void downloadCreated(const QString & messageHTML); |
|
49 void downloadStarted(const QString & messageHTML); |
|
50 void downloadSuccess(const QString & messageHTML); |
|
51 void downloadFailure(const QString & messageHTML); |
|
52 void downloadsCleared(); |
|
53 |
|
54 private: |
|
55 DownloadController * m_downloadController; |
|
56 }; |
|
57 |
|
58 } // namespace GVA |
|
59 |
|
60 #endif // __DOWNLOADS_H__ |