~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
namespace GADAPI {
33
33
 
34
34
        namespace PACS {
35
 
 
36
 
                typedef enum TipoAccion {
37
 
                        TAC_Buscar,
38
 
                        TAC_Descargar,
39
 
                        TAC_AbortarTodos
40
 
                } TipoAccion;
41
 
 
42
35
                class IComandoPACSNotificador{
43
36
                public:
44
37
                        virtual ~IComandoPACSNotificador() {}
50
43
        class ComandoPACSParams : public GNC::GCS::IComandoParams {
51
44
 
52
45
        public:
53
 
 
54
46
                typedef enum TipoAmbito {
55
47
                        TA_Paciente,
56
48
                        TA_Estudio,
62
54
                ComandoPACSParams(const std::string& pacienteID, const std::string& pacienteNombre, const std::string& studyUID,
63
55
                        const std::string& estudioAccNumber, const std::string& estudioModalidad, const std::string& estudioFechaDesde,
64
56
                        const std::string& estudioFechaHasta, const std::string& studyTimeFrom, const std::string& studyTimeTo, const std::string& serverSeleccionado,
65
 
                        TipoAmbito ambito, GNC::GCS::Ptr<IModeloDicom> pModeloDicom, GADAPI::PACS::IComandoPACSNotificador* pNotificador) :
66
 
                m_pacienteID(pacienteID),
67
 
                m_pacienteNombre(pacienteNombre),
68
 
                m_studyUID(studyUID),
69
 
                m_accessionNumber(estudioAccNumber),
70
 
                m_estudioModalidad(estudioModalidad),
71
 
                m_estudioFechaDesde(estudioFechaDesde),
72
 
                m_estudioFechaHasta(estudioFechaHasta),
73
 
                m_studyTimeFrom(studyTimeFrom),
74
 
                m_studyTimeTo(studyTimeTo),
75
 
                m_pNotificador(pNotificador),
76
 
                m_pModelo(pModeloDicom),
77
 
                m_Ambito(ambito),
78
 
                m_transferSyntax(GIL::DICOM::SendDefault)
79
 
                {
80
 
                        
81
 
                        if(serverSeleccionado == "") {
82
 
                                if(DicomServerList::Instance()->GetList() != NULL) {
83
 
                                        m_serverSeleccionado = DicomServerList::Instance()->GetDefaultServer()->ID;
84
 
                                } else {
85
 
                                        throw GIL::DICOM::PACSException(_Std("There is not any Remote PACS configured"));
86
 
                                }
87
 
                        } else {
88
 
                                m_serverSeleccionado = serverSeleccionado;
89
 
                        }
90
 
                        m_informar=true;
91
 
                        m_error = "";
92
 
 
93
 
                        m_TipoAccion=GADAPI::PACS::TAC_Buscar;
94
 
                        GTRACE("<< ComandoPACSParams::ComandoPACSParams(): " << this);
95
 
                }
96
 
 
97
 
                //download only specifying 
98
 
                ComandoPACSParams(const std::string& serverSeleccionado, const GIL::DICOM::DicomDataset& base) :
99
 
                        m_transferSyntax(GIL::DICOM::SendDefault),
100
 
                        m_pNotificador(NULL)
101
 
 
102
 
                {
103
 
                        m_Ambito = TA_NotSpecified;
104
 
                        
105
 
                        m_base = base;
106
 
                        m_pModelo = GNC::GCS::Ptr<IModeloDicom>(new IModeloDicom());
107
 
 
108
 
                        if(serverSeleccionado == "") {
109
 
                                //usaremos el primer servidor (por defecto)
110
 
                                if(DicomServerList::Instance()->GetFirst() !=NULL) {
111
 
                                        m_serverSeleccionado = DicomServerList::Instance()->GetDefaultServer()->ID;
112
 
                                } else {
113
 
                                        throw GIL::DICOM::PACSException(_Std("There is not any Remote PACS configured"));
114
 
                                }
115
 
                        } else {
116
 
                                m_serverSeleccionado = serverSeleccionado;
117
 
                        }
118
 
 
119
 
                        m_informar = false;
120
 
                        m_error = "";
121
 
 
122
 
                        m_TipoAccion=GADAPI::PACS::TAC_Descargar;
123
 
                        GTRACE("<< ComandoPACSParams::ComandoPACSParams(): " << this);
124
 
                }
125
 
 
126
 
                virtual ~ComandoPACSParams() {
127
 
                        GTRACE(">> ComandoPACSParams::~ComandoPACSParams(): " << this);
128
 
                        m_pNotificador = NULL;
129
 
                        m_listaRutas.clear();
130
 
                        GTRACE("<< ComandoPACSParams::~ComandoPACSParams(): " << this);
131
 
                }
 
57
                        TipoAmbito ambito, GNC::GCS::Ptr<IModeloDicom> pModeloDicom, GADAPI::PACS::IComandoPACSNotificador* pNotificador) ;
 
58
 
 
59
                virtual ~ComandoPACSParams();
132
60
 
133
61
        public:
134
62
                std::string              m_pacienteID;
141
69
                std::string                                      m_studyTimeTo;
142
70
                std::string                                      m_studyUID;
143
71
 
144
 
                std::list<std::string>   m_listaUID;
145
 
                std::list<std::string>   m_listaUIDImagenes;
146
 
 
147
72
                std::string              m_serverSeleccionado;
148
 
 
149
 
                std::list<std::string> m_listaRutas;
150
 
 
151
73
                bool                     m_informar;
152
74
 
153
75
                TipoAmbito               m_Ambito;
155
77
 
156
78
                GADAPI::PACS::IComandoPACSNotificador* m_pNotificador;
157
79
                GNC::GCS::Ptr<IModeloDicom> m_pModelo;
158
 
 
159
 
                GNC::GCS::Ptr<GIL::IModeloIntegracion> m_pModeloIntegracion;
160
 
 
161
 
                GIL::DICOM::DicomDataset m_base;
162
 
 
163
 
                GADAPI::PACS::TipoAccion m_TipoAccion;
164
 
                GIL::DICOM::TipoTransferSyntaxEnvio m_transferSyntax;
165
 
        };
166
 
 
167
 
        class ComandoPACSResult : public GNC::GCS::IComandoResult {
168
 
        public:
169
 
                ComandoPACSResult() {
170
 
                }
171
 
 
172
 
        };
 
80
        };
 
81
 
 
82
 
173
83
 
174
84
        class EXTAPI ComandoPACS : public GNC::GCS::IComando {
175
85
        public:
179
89
                virtual void Execute();
180
90
                virtual void Update();
181
91
 
182
 
                virtual void Search();
183
 
                virtual void Download();
184
 
 
185
92
    public:
186
 
 
187
93
                virtual bool NotificarProgreso(float progresoNormalizado, const std::string &texto);
188
94
 
189
95
                void LiberarRecursos();