~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/plugins/generic/yandexnarodplugin/uploadmanager.h

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    uploadmanger.h
3
 
 
4
 
        Copyright (c) 2011 by Evgeny Khryukin
5
 
 
6
 
 ***************************************************************************
7
 
 *                                                                         *
8
 
 *   This program is free software; you can redistribute it and/or modify  *
9
 
 *   it under the terms of the GNU General Public License as published by  *
10
 
 *   the Free Software Foundation; either version 2 of the License, or     *
11
 
 *   (at your option) any later version.                                   *
12
 
 *                                                                         *
13
 
 ***************************************************************************
14
 
*/
15
 
 
16
 
#ifndef UPLOADMANAGER_H
17
 
#define UPLOADMANAGER_H
18
 
 
19
 
 
20
 
#include <QNetworkCookie>
21
 
 
22
 
class QNetworkAccessManager;
23
 
class QFile;
24
 
class HttpDevice;
25
 
 
26
 
class UploadManager : public QObject
27
 
{
28
 
        Q_OBJECT
29
 
public:
30
 
        UploadManager(QObject* p = 0);
31
 
        ~UploadManager();
32
 
        void go(const QString& file);
33
 
        void setCookies(const QList<QNetworkCookie>& cookies);
34
 
        bool success() const { return success_; };
35
 
 
36
 
signals:
37
 
        void transferProgress(qint64, qint64);
38
 
        void uploaded();
39
 
        void statusText(const QString&);
40
 
        void uploadFileURL(const QString&);
41
 
 
42
 
private slots:
43
 
        void getStorageFinished();
44
 
        void uploadFinished();
45
 
        void verifyingFinished();
46
 
 
47
 
private:
48
 
        void doUpload(const QUrl& url);
49
 
 
50
 
private:
51
 
        QNetworkAccessManager* manager_;
52
 
        QString fileName_;
53
 
        bool success_;
54
 
        HttpDevice *hd_;
55
 
};
56
 
 
57
 
#endif // UPLOADMANAGER_H