diff options
author | deva <deva> | 2010-05-27 09:41:29 +0000 |
---|---|---|
committer | deva <deva> | 2010-05-27 09:41:29 +0000 |
commit | 73934812611cc7120175e26761d71fae9233c1e8 (patch) | |
tree | d02a57f4d9f67ec073e330e4461e4f8cf98b4de5 /client/viewer.cc | |
parent | 3d48d173bc89b8868bf28f22d875ff0667a24021 (diff) |
Use new commit/discard methods in netcom.
Diffstat (limited to 'client/viewer.cc')
-rw-r--r-- | client/viewer.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/client/viewer.cc b/client/viewer.cc index 09b6e47..c4bd3f5 100644 --- a/client/viewer.cc +++ b/client/viewer.cc @@ -81,7 +81,12 @@ Viewer::Viewer(QString cpr, QString templs, QString host, quint16 port, this->templs = templs.split(QRegExp("\\W+"), QString::SkipEmptyParts); connect(&updatetimer, SIGNAL(timeout()), this, SLOT(update())); - netcom = new NetCom(host, port, user, cpr); + netcom = new NetCom(host, port); + netcom->user = user; + netcom->patientid = cpr; + netcom->sessionid = ""; + netcom->initConnection(); + host = host; port = port; user = user; this->cpr = cpr; this->journalpath = journalpath; @@ -109,6 +114,8 @@ Viewer::Viewer(QString cpr, QString templs, QString host, quint16 port, Viewer::~Viewer() { + updatetimer.stop(); + netcom->discard(); // Make sure sessionid is removed. delete netcom; delete journal; } |