3
* $Id: cloupuploadcommand.h $
6
* Copyright 2008-12 MetaEmotion S.L. All rights reserved.
7
* http://ginkgo-cadx.com
9
* This file is licensed under LGPL v3 license.
10
* See License.txt for details
14
#include <api/globals.h>
15
#include <api/icommand.h>
16
#include <api/dicom/idicom.h>
21
class CloudCommandParams : public ::GNC::GCS::IComandoParams {
25
typedef enum ActionType {
32
CloudCommandParams(ActionType action);
33
~CloudCommandParams();
36
const ActionType m_action;
43
class CloudGetCommandParams : public CloudCommandParams {
46
CloudGetCommandParams(const std::string& url, bool base64);
47
~CloudGetCommandParams();
50
std::string m_baseDir;
53
class CloudFindCommandParams : public CloudCommandParams {
56
typedef std::map<std::string, std::string> ResultTuple;
57
typedef std::list<ResultTuple> Results;
59
CloudFindCommandParams(const std::string& bucketId, const std::string& userNameQuery, const std::string& descriptionQuery, const std::string& modalitiesQuery, const std::string& fromDateQuery, const std::string& toDateQuery);
60
~CloudFindCommandParams();
62
const std::string m_bucketId;
63
const std::string m_userNameQuery;
64
const std::string m_descriptionQuery;
65
const std::string m_modalitiesQuery;
66
const std::string m_fromDateQuery;
67
const std::string m_toDateQuery;
74
class CloudCommand : public GNC::GCS::IComando {
76
CloudCommand(::GNC::GCS::CloudCommandParams* pParams);
79
virtual void Execute();
80
virtual void Update();
83
void doGet(GNC::GCS::CloudGetCommandParams* pParams);
84
void doFind(GNC::GCS::CloudFindCommandParams* pParams);
88
::GNC::GCS::CloudCommandParams* m_pCloudParams;
b'\\ No newline at end of file'