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 #ifndef DOWNLOADICON_H_ |
|
18 #define DOWNLOADICON_H_ |
|
19 |
|
20 #include <QObject> |
|
21 #include <QtGui> |
|
22 #include <QNetworkAccessManager> |
|
23 #include <QNetworkReply> |
|
24 |
|
25 #include "ui_mainwindow.h" |
|
26 |
|
27 class DownloadIcon : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 public: |
|
31 DownloadIcon(Ui::MainWindow &aMainUi); |
|
32 virtual ~DownloadIcon(); |
|
33 |
|
34 void GetIcon(const TDesC8& aContactName, const TDesC8& aUri, const TDesC8& aFileName); |
|
35 private: |
|
36 |
|
37 void DisplayMsgBox(QString str); |
|
38 void UpdateAvatarItem(); |
|
39 void ChangePathSlash(); |
|
40 |
|
41 QNetworkAccessManager *manager; |
|
42 QNetworkReply *reply; |
|
43 |
|
44 QString contactName; |
|
45 QString filePath; |
|
46 |
|
47 Ui::MainWindow &MainUi; |
|
48 |
|
49 private slots: |
|
50 void RequestFinished(); |
|
51 |
|
52 }; |
|
53 |
|
54 |
|
55 #endif /* DOWNLOADICON_H_ */ |