summaryrefslogtreecommitdiff
path: root/client/praxisd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/praxisd.cc')
-rw-r--r--client/praxisd.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/praxisd.cc b/client/praxisd.cc
index 5309b66..740825e 100644
--- a/client/praxisd.cc
+++ b/client/praxisd.cc
@@ -181,6 +181,7 @@ static DokMenuVector getDokMenu(QByteArray data)
Praxisd::Praxisd(QString host, unsigned short int port)
{
qRegisterMetaType<CaveVector>("CaveVector");
+ qRegisterMetaType<Patient>("Patient");
qRegisterMetaType<DokMenuVector>("DokMenuVector");
QUrl url;
@@ -305,6 +306,9 @@ void PraxisdSync::run()
connect(&praxisd, SIGNAL(gotCaveList(CaveVector)),
this, SLOT(gotCaveList(CaveVector)), Qt::DirectConnection);
+ connect(&praxisd, SIGNAL(gotPatient(Patient)),
+ this, SLOT(gotPatient(Patient)), Qt::DirectConnection);
+
connect(&praxisd, SIGNAL(gotDokMenu(DokMenuVector)),
this, SLOT(gotDokMenu(DokMenuVector)), Qt::DirectConnection);
@@ -318,6 +322,7 @@ void PraxisdSync::run()
praxisd.diverse_get_cave(request_sogenr);
break;
case Praxisd::patient:
+ praxisd.patient_get_by_cpr(request_cpr);
break;
case Praxisd::dokmenu:
praxisd.dokmenu_get_all_by_cpr(request_cpr);
@@ -334,7 +339,13 @@ void PraxisdSync::gotCaveList(CaveVector cl)
{
cavelist = cl;
rsem.release();
+ quit();
+}
+void PraxisdSync::gotPatient(Patient p)
+{
+ patient = p;
+ rsem.release();
quit();
}