~ubuntu-branches/ubuntu/raring/ginkgocadx/raring-proposed

« back to all changes in this revision

Viewing changes to src/cadxcore/main/controllers/controladorhistorial.h

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-07-14 16:17:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110714161751-6wngu3xs307thgpr
Tags: 2.5.1.0-1
* New upstream version (all patches applied)
  Closes: #630877
* debian/patches/drop_rpath.patch: Fix remaining rpath issue
* debian/{mime,sharedmimeinfo}: Mime info for DICOM images
  Closes: #631205
* Add upstream manpage + desktop file
* Fixed Vcs fields
* debian/rules:
   - Add new extension liblightvisualizator
   - remove get-orig-source target which becames void because
     upstream dropped the debian/ dir
   - Hack around explicite rpath definitions
* debian/install: move conformance.xml into place
* debian/watch: drop useless comments
* debian/ginkgocadx.lintian-overrides: Drop unneeded overrides
  as well as those which stay in effect.  These should vanish
  once rpath is correctly fixed - so the warning should not
  be hidden here.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *
3
 
 *  $Id: controladorhistorial.h 3669 2011-04-11 10:59:33Z tovar $
 
3
 *  $Id: controladorhistorial.h 3963 2011-07-11 14:03:51Z tovar $
4
4
 *  Ginkgo CADx Project
5
5
 *
6
6
 *  Copyright 2008-10 MetaEmotion S.L. All rights reserved.
28
28
                class EXTAPI ControladorHistorial: public GNC::GCS::IControladorHistorial {
29
29
                public:
30
30
 
 
31
                        typedef struct TAddError {
 
32
                                typedef enum TError {
 
33
                                        TE_FileNotExist,
 
34
                                        TE_WrongFormat,
 
35
                                        TE_DICOMDir
 
36
                                } TError;
 
37
                                TError error;
 
38
                                std::string path;
 
39
 
 
40
                                TAddError(TError error, const std::string& path) {
 
41
                                        this->error = error;
 
42
                                        this->path = path;
 
43
                                }
 
44
                        } TAddError;
 
45
                        typedef std::list<TAddError> TAddErrorList;
 
46
 
31
47
                        void RecargarHistorial();
32
48
 
33
49
        //region "Patron singleton"
39
55
        //endregion
40
56
 
41
57
                        //region "metodos propios del historial"
42
 
                        bool AddFiles(const ListaPaths& listaPaths,ListaModelosDCM& listaModelos, ListaPaths& listaSobreescritos, bool forzarSobreescribir, GNC::IProxyNotificadorProgreso* pNotificador = NULL, bool soloLeer = false, bool mover = false);
 
58
                        bool AddFiles(const ListaPaths& listaPaths,ListaModelosDCM& listaModelos, ListaPaths& listaSobreescritos, TAddErrorList& errorList, bool forzarSobreescribir, GNC::IProxyNotificadorProgreso* pNotificador = NULL, bool soloLeer = false, bool mover = false);
43
59
 
44
60
                        bool EliminarFichero(const std::string& pathAbsolutoFichero, bool eliminarDelDisco);
45
61
                        bool EliminarPaciente(const std::string& idPaciente, bool eliminarDelDisco);
120
136
                        virtual char GetSeriesOrientation(const std::string& uidSerie);
121
137
 
122
138
                        virtual VectorPaths GetPathsSerieOrdenados(const std::string& uidSerie);
 
139
                        
 
140
                        virtual VectorPaths GetPathsStudyOfSeries(const std::string& uidSeries);
 
141
 
 
142
                        virtual void GetStudyModelsFromPatient(ListaModelosEstudios& estudyList, const std::string& patientId, const std::string& uidImporter = "");
 
143
                        virtual void GetSeriesModelsFromStudy(ListaModelosSeries& seriesList, const std::string& uidStudy, const std::string& uidImporter = "");
123
144
 
124
145
 
125
146
                        //thumbnails...
133
154
 
134
155
                        //region "helpers"
135
156
                        //devuelve false si !copia y no esta donde deberia
136
 
                        bool RellenaDCM(ModeloDCM& modelo,const std::string& pathAbsoluto,ListaPaths& listaSobreescritos, bool forzarSobreescribir = false, bool copia = false, bool mover = false);
 
157
                        bool RellenaDCM(ModeloDCM& modelo,const std::string& pathAbsoluto,ListaPaths& listaSobreescritos, TAddErrorList& errorList, bool forzarSobreescribir = false, bool copia = false, bool mover = false);
137
158
 
138
159
                        bool EliminarFicheros(const std::list<std::string>& pathsRelativosFicheros, bool eliminarDeDisco);
139
160
                        bool QuitarFicheros(const std::list<std::string>& pathsFicheros);