NorMIT-nav  22.09
An IGT application
cxtestSender.cpp
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #include "cxtestSender.h"
13 
14 #include "cxTypeConversions.h"
15 
16 namespace cxtest
17 {
18 
19 bool TestSender::isReady() const
20 {
21  return true;
22 }
23 
25 {
26  mPackage = package;
27  emit newPackage();
28 }
29 
31 {
32  return mPackage;
33 }
34 
35 } /* namespace cxtest */
cxtestSender.h
cxtest::TestSender::newPackage
void newPackage()
cxtest::TestSender::send
virtual void send(cx::PackagePtr package)
Definition: cxtestSender.cpp:24
cxtest::TestSender::getSentPackage
cx::PackagePtr getSentPackage()
Definition: cxtestSender.cpp:30
cxTypeConversions.h
cxtest
Definition: cxtestDirectSignalListener.cpp:13
cx::PackagePtr
boost::shared_ptr< struct Package > PackagePtr
Definition: cxMHDImageStreamer.h:27
cxtest::TestSender::isReady
virtual bool isReady() const
Definition: cxtestSender.cpp:19