diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-08 08:49:22 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-08 08:49:22 +0100 |
commit | 628f73e00b51fd378c922f7eb7eca9e26c695ec5 (patch) | |
tree | 6e27de4b99a60bfe7e8dd7c3f2dd5cd56f5e8e30 | |
parent | db2851d0d8ad618e36eca9a61b02bdb999dca7b2 (diff) |
Activate getPatient + add missing init of error status.
-rw-r--r-- | client/praxisd.cc | 14 |
1 files changed, 11 insertions, 3 deletions
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) |