~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/commands/acquirefromurlcommand.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-01-09 07:37:09 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20140109073709-rpuh5x3p3finvtze
Tags: 3.6.0.1228.33+dfsg-1
New upstream release [December 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
*  
 
3
*  $Id: comandopacs.h $
 
4
*  Ginkgo CADx Project
 
5
*
 
6
*  Copyright 2008-14 MetaEmotion S.L. All rights reserved.
 
7
*  http://ginkgo-cadx.com
 
8
*
 
9
*  This file is licensed under LGPL v3 license.
 
10
*  See License.txt for details
 
11
*
 
12
*/
 
13
#pragma once
 
14
#include <api/globals.h>
 
15
#include <api/icommand.h>
 
16
#include <api/ihistorytool.h>
 
17
#include <api/observers/ieventsobserver.h>
 
18
 
 
19
class wxSemaphore;
 
20
 
 
21
 
 
22
namespace GADAPI {
 
23
        class AcquireFromURLCommandParameters : public GNC::GCS::IComandoParams {
 
24
 
 
25
        public:
 
26
                //download only specifying 
 
27
                AcquireFromURLCommandParameters(const std::list<std::string>& urlList);
 
28
                virtual ~AcquireFromURLCommandParameters();
 
29
 
 
30
        public:
 
31
                std::list<std::string> m_urlList;
 
32
                std::string m_error;
 
33
                wxSemaphore* m_pSemWait;
 
34
        };
 
35
 
 
36
 
 
37
 
 
38
        class AcquireFromURLCommand : public GNC::GCS::IComando, public GNC::GCS::IEventsObserver {
 
39
        public:
 
40
                AcquireFromURLCommand(AcquireFromURLCommandParameters* pParams);
 
41
 
 
42
    protected:
 
43
                virtual void Execute();
 
44
                virtual void Update();
 
45
 
 
46
    public:
 
47
 
 
48
                virtual bool NotificarProgreso(float progresoNormalizado, const std::string &texto);
 
49
 
 
50
                virtual void LiberarRecursos();
 
51
                virtual void ProcesarEvento(GNC::GCS::Events::IEvent *evt);
 
52
 
 
53
                AcquireFromURLCommandParameters* m_pAcquireParams;
 
54
        };
 
55
}