Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[c5ae6f]: src / plugins / tasks / uploadtask / UploadTask.cpp Maximize Restore History

Download this file

UploadTask.cpp    44 lines (33 with data), 953 Bytes

 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
/*
* File: DownloadTask.cpp
* Author: HoelscJ
*
* Created on 19. Oktober 2011, 11:41
*/
#include "org/esb/core/PluginContext.h"
#include "UploadTask.h"
#include "org/esb/lang/Ptr.h"
namespace plugin {
UploadTask::UploadTask() {
}
UploadTask::~UploadTask() {
}
void UploadTask::prepare() {
}
org::esb::core::OptionsDescription UploadTask::getOptionsDescription() {
org::esb::core::OptionsDescription result("uploadtask");
result.add_options()
("uploadtask.src", boost::program_options::value<std::string > ()->required(), "Upload task file source")
("uploadtask.trg", boost::program_options::value<std::string > ()->required(), "Upload task file target");
return result;
}
int UploadTask::getPadTypes() {
return Task::SOURCE;
}
void UploadTask::execute() {
Task::execute();
setProgressLength(1);
setProgress(1);
}
REGISTER_TASK("UploadTask", UploadTask);
}