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

« back to all changes in this revision

Viewing changes to src/cadxcore/main/controllers/controladorenviohl7.cpp

  • 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:
18
18
#include <endpoint/endpoint.h>
19
19
#include "controladorenviohl7.h"
20
20
#include "controladorbbddhl7.h"
21
 
#include <api/controllers/icommandscontroller.h>
 
21
#include <main/controllers/commandcontroller.h>
22
22
#include <api/controllers/icontroladorlog.h>
23
23
#include "controladoreventos.h"
24
24
#include "configurationcontroller.h"
110
110
 
111
111
void GIL::HL7::ControladorEnvioHl7::Abortar() {
112
112
        m_Abortado = true;
113
 
        GNC::GCS::IControladorComandos::Instance()->AbortarComandosDeOwner(this);
 
113
        GNC::GCS::ICommandController::Instance()->AbortarComandosDeOwner(this);
114
114
        m_semaphore.Post();     
115
115
        m_semaphore.Post();
116
116
}
124
124
{
125
125
        m_Abortado = false;
126
126
 
 
127
        GNC::GCS::Threading::SetThreadName( GetId(), "HL7 Sender");
 
128
 
127
129
        while(!TestDestroy() && !m_Abortado) {
128
130
                if(TestDestroy() || m_Abortado){
129
131
            break;
139
141
                                //launch command...
140
142
                                GADAPI::SendHL7CommandParams* pParams = new GADAPI::SendHL7CommandParams(listaMensajes);
141
143
                                GADAPI::SendHL7Command* pCmd = new GADAPI::SendHL7Command(pParams);
142
 
                                GNC::GCS::IControladorComandos::Instance()->ProcessAsync("Send HL7", pCmd, this);
 
144
                                GNC::GCS::ICommandController::Instance()->ProcessAsync("Send HL7", pCmd, this);
143
145
                                m_semaphore.Wait();
144
146
                        } 
145
147
                }