From 628f73e00b51fd378c922f7eb7eca9e26c695ec5 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Tue, 8 Nov 2011 08:49:22 +0100 Subject: Activate getPatient + add missing init of error status. --- client/praxisd.cc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'client') diff --git a/client/praxisd.cc b/client/praxisd.cc index a77e287..001eb90 100644 --- a/client/praxisd.cc +++ b/client/praxisd.cc @@ -297,6 +297,9 @@ PraxisdSync::PraxisdSync(QString host, unsigned short int port) this->port = port; this->running = true; + error = false; + errorStr = ""; + start(); } @@ -367,7 +370,7 @@ QString PraxisdSync::errorString() void PraxisdSync::networkError(QString err) { error = true; - errorStr = err; + errorStr = "Network error: " + err; rsem.release(); quit(); } @@ -411,8 +414,13 @@ CaveVector PraxisdSync::diverse_get_cave(QString sogenr) Patient PraxisdSync::patient_get_by_cpr(QString cpr) { - cpr = ""; - return Patient(); + request_type = Praxisd::patient; + request_cpr = cpr; + + wsem.release(); + rsem.acquire(); + + return patient; } DokMenuVector PraxisdSync::dokmenu_get_all_by_cpr(QString cpr) -- cgit v1.2.3