diff options
author | Lars Bisballe Jensen <larsbisballe@gmail.com> | 2011-10-14 10:42:27 +0200 |
---|---|---|
committer | Lars Bisballe Jensen <larsbisballe@gmail.com> | 2011-10-14 10:42:27 +0200 |
commit | 2e574b6dfcb824239079a485527d420497b27b01 (patch) | |
tree | f49be56d98f0e952461b856d41eb54218b5f135b /client/pcpviewer.cc | |
parent | 2d5f72a787426b59658d1b66cfe0ea602ea66b61 (diff) | |
parent | d602bdeb65d0e4007a8a02e5c6d4b9b271287aa9 (diff) |
Merge branch 'master' of http://git.aasimon.org/public/pracro
Diffstat (limited to 'client/pcpviewer.cc')
-rw-r--r-- | client/pcpviewer.cc | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/client/pcpviewer.cc b/client/pcpviewer.cc new file mode 100644 index 0000000..f5347d6 --- /dev/null +++ b/client/pcpviewer.cc @@ -0,0 +1,50 @@ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ +/* vim: set et sw=2 ts=2: */ +/*************************************************************************** + * pcpviewer.cc + * + * Tue Oct 11 14:13:34 CEST 2011 + * Copyright 2011 Bent Bisballe Nyeng + * deva@aasimon.org + ****************************************************************************/ + +/* + * This file is part of Pracro. + * + * Pracro is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Pracro is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Pracro; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ +#include "pcpviewer.h" + +#include <stdio.h> + +PCPViewer::PCPViewer(QString patientid) : praxisd("localhost", 10000) +{ + this->patientid = patientid; + + // 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.toStdString().c_str(), + di->subject.toStdString().c_str(), + di->filename.toStdString().c_str(), + di->filesize, + di->date.toStdString().c_str()); + di++; + } +} |