diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-10-13 10:30:38 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-10-13 10:30:38 +0200 |
commit | c73d1d01ba6b57f664c21a189fa9297e2c75456a (patch) | |
tree | df2964307e2e11aa642d0af3af798c5edf904482 /client/pcpviewer.cc | |
parent | ffc19fdcd0845dbd85c2bba990c590fcc5fba670 (diff) |
Finished Praxisd code. Now it works both in sync and async modes.
Diffstat (limited to 'client/pcpviewer.cc')
-rw-r--r-- | client/pcpviewer.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/client/pcpviewer.cc b/client/pcpviewer.cc index f0059f4..f5347d6 100644 --- a/client/pcpviewer.cc +++ b/client/pcpviewer.cc @@ -27,24 +27,24 @@ */ #include "pcpviewer.h" -PCPViewer::PCPViewer(QString patientid) : praxisd("gargamel", 10000) +#include <stdio.h> + +PCPViewer::PCPViewer(QString patientid) : praxisd("localhost", 10000) { this->patientid = patientid; - /* - std::string j = praxisd.journal_get_by_cpr(patientid.toStdString()); - printf("%s\n", j.c_str()); - std::vector<Praxisd::dokmenu_t> d = - praxisd.dokmenu_get_all_by_cpr(patientid.toStdString()); - std::vector<Praxisd::dokmenu_t>::iterator di = d.begin(); + // QString j = praxisd.journal_get_by_cpr(patientid); + // printf("%s\n", j.toStdString().c_str()); + + DokMenuVector d = praxisd.dokmenu_get_all_by_cpr(patientid); + DokMenuVector::iterator di = d.begin(); while(di != d.end()) { printf("%s %s %s %d %s\n", - di->group.c_str(), - di->subject.c_str(), - di->filename.c_str(), + di->group.toStdString().c_str(), + di->subject.toStdString().c_str(), + di->filename.toStdString().c_str(), di->filesize, - di->date.c_str()); + di->date.toStdString().c_str()); di++; } - */ } |