-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageShackObject.cpp
More file actions
152 lines (138 loc) · 3.15 KB
/
ImageShackObject.cpp
File metadata and controls
152 lines (138 loc) · 3.15 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*********************************************************************
* Thumbnail me 3.0
*
* Thumbnail me is a user interface for Movie thumbnailer.
* Generate thumbnails from any movie is now easier !
*
* @package Thumbnail me 3.0
* @author Christ Azika-Eros <[email protected]>
* @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 3.0
*
* @filesource ImageShackUploader.cpp
* @role The Implementation of the ImageShackUploader class.
* This class handle ImageShack upload response
*
*********************************************************************/
#include "ImageShackObject.hpp"
/**
* Constructor
*
* QString imagePath the object path
* QString tags comma-separeted list of tags related
* to the image/video to upload
* QString resizeOption resize option for image, no impact on video
**/
ImageShackObject::ImageShackObject(QString objectPath ,
QString tags ,
bool publicObject ,
QString resizeOption )
{
this->objectPath = objectPath;
this->publicObject = publicObject;
this->tags = tags;
this->resizeOption = resizeOption;
}
/**
* Constructor
*
* QString imagePath the object path
* QString tags comma-separeted list of tags related
* to the image/video to upload
* QString resizeOption resize option for image, no impact on video
**/
ImageShackObject::ImageShackObject(QString objectPath ,
QStringList tags ,
bool publicObject ,
QString resizeOption )
{
this->objectPath = objectPath;
this->publicObject = publicObject;
this->resizeOption = resizeOption;
this->tags = tags.join(",");
}
/**
* Destructor
*
**/
ImageShackObject::~ImageShackObject(void)
{
}
/**----------
* Getters and Setters
**----------*/
/**
* Getter of objectPath attribute
*
**/
QString ImageShackObject::getObjectPath()
{
return this->objectPath;
}
/**
* Getter of resizeOption attribute
*
**/
QString ImageShackObject::getResizeOption()
{
return this->resizeOption;
}
/**
* Getter of tags attribute
*
**/
QString ImageShackObject::getTags()
{
return this->tags;
}
/**
* Getter of publicObject attribute
* @return bool publicObject attribute
**/
bool ImageShackObject::isPublic()
{
return this->publicObject;
}
/**
* Setter of objectPath attribute
*
**/
void ImageShackObject::setObjectPath(QString objectPath)
{
this->objectPath = objectPath;
}
/**
*
* Setter of publicObject attribute
**/
void ImageShackObject::setPublic(bool publicObject)
{
this->publicObject = publicObject;
}
/**
* Setter of tags attribute
*
**/
void ImageShackObject::setTags(QString tags)
{
this->tags = tags;
}
/**
* Setter of tags attribute
*
**/
void ImageShackObject::setTags(QStringList tags)
{
this->tags = tags.join(",");
}
/**
* Setter of resizeOption attribute
*
**/
void ImageShackObject::setResizeOption(QString resizeOption)
{
this->resizeOption = resizeOption;
}