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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-05-02 08:09:26 UTC
  • Revision ID: james.westby@ubuntu.com-20110502080926-bql5wep49c7hg91t
Tags: upstream-2.4.1.1
ImportĀ upstreamĀ versionĀ 2.4.1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
*  
 
3
*  $Id: comandogenerarthumbnails.h 3571 2011-03-21 09:51:24Z tovar $
 
4
*  Ginkgo CADx Project
 
5
*
 
6
*  Copyright 2008-10 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/icomando.h>
 
15
#include <api/api.h>
 
16
 
 
17
class wxImage;
 
18
 
 
19
namespace GADAPI {
 
20
        class ComandoGenerarThumbnailsParams;
 
21
 
 
22
        class EXTAPI INotificadorThumbnail
 
23
        {
 
24
        public:
 
25
                INotificadorThumbnail(){};
 
26
                ~INotificadorThumbnail(){};
 
27
                virtual void SetImage(const std::string& ruta, wxImage* pImage) = 0;
 
28
        };
 
29
 
 
30
        class EXTAPI ComandoGenerarThumbnails : public GNC::GCS::IComando {
 
31
        public:
 
32
                ComandoGenerarThumbnails(const std::string& ruta, INotificadorThumbnail* pNotificador);
 
33
 
 
34
                wxImage* GetImage();
 
35
 
 
36
    protected:
 
37
                void Execute();
 
38
                void Update();
 
39
 
 
40
        protected:
 
41
                wxImage* GetImageFromBD();
 
42
                void GuardarImagen();
 
43
 
 
44
                ComandoGenerarThumbnailsParams* m_pThumbParams;
 
45
                bool                            m_Error;
 
46
 
 
47
        };
 
48
}