summaryrefslogtreecommitdiff
path: root/client/pcpviewer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'client/pcpviewer.cc')
-rw-r--r--client/pcpviewer.cc24
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++;
}
- */
}