-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindow.hpp
More file actions
88 lines (68 loc) · 1.83 KB
/
Window.hpp
File metadata and controls
88 lines (68 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/*********************************************************************
* Thumbnail me 2.5
*
* Thumbnail me is a user interface for Movie thumbnailer.
* Generate thumbnails from any movie is now easier !
*
* @package Thumbnail me 2.5
* @author Christ Azika-Eros <christ@azika-eros.org>
* @copyright Quentin Rousseau (c) 2010 2009, Quentin Rousseau
* @license Creative Commons GNU GPL
* http://creativecommons.org/licenses/GPL/2.0/
* @link http://thumbnailme.sourceforge.net/
* @version 2.5
*
* @filesource Window.hpp
* @role The header of the Window class.
* This class create the main widget. Tests are made
* through this widget.
*
*********************************************************************/
#ifndef HEADER_WINDOW
#define HEADER_WINDOW
#include <QDebug>
#include <QNetworkProxy>
#include <QTimer>
#include <QWidget>
#include "ImageShackObject.hpp"
#include "ImageShackUploader.hpp"
#include "ImageShackError.hpp"
/**
* Window Class
*
* @author Christ Azika-Eros <christ@azika-eros.org>
**/
class Window : public QObject
{
Q_OBJECT
public : // public methods
/**
* Constructor
*
* @param QWidget parent The parent Widget
**/
Window();
/**
* Destructor
**/
~Window();
private : // Private objects or variables
/**
* Uploader to ImageShack
**/
ImageShackUploader * uploader;
QList<ImageShackObject *> listeImages ;
QList<ImageShackObject *> listeImages2 ;
bool secondUpload;
private slots :
/**
* Manage Response
*
**/
void manageResponse(bool response);
void manageEndUpload();
void oneUploadDone(ImageShackResponse * reponse);
void handleErrors(ImageShackError::UploadError);
void handleProgressions(ImageShackObject * fic, qint64 rec, qint64 total);
};
#endif