6
* Copyright 2008-14 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/ihistorytool.h>
17
#include <api/observers/ieventsobserver.h>
23
class AcquireFromURLCommandParameters : public GNC::GCS::IComandoParams {
26
//download only specifying
27
AcquireFromURLCommandParameters(const std::list<std::string>& urlList);
28
virtual ~AcquireFromURLCommandParameters();
31
std::list<std::string> m_urlList;
33
wxSemaphore* m_pSemWait;
38
class AcquireFromURLCommand : public GNC::GCS::IComando, public GNC::GCS::IEventsObserver {
40
AcquireFromURLCommand(AcquireFromURLCommandParameters* pParams);
43
virtual void Execute();
44
virtual void Update();
48
virtual bool NotificarProgreso(float progresoNormalizado, const std::string &texto);
50
virtual void LiberarRecursos();
51
virtual void ProcesarEvento(GNC::GCS::Events::IEvent *evt);
53
AcquireFromURLCommandParameters* m_pAcquireParams;