Sending a message to the applications ProgressBar. More...
#include <mitkSocketClient.h>

Public Member Functions | |
| virtual const char * | GetClassName () const |
| void | open (const char *ipAdress, unsigned short port) |
| void | setMaxConnectionAdvance (int maxConnectionAdvance) |
| bool | send (unsigned int messagetype, unsigned int bodySize=0, char *body=NULL) |
Static Public Member Functions | |
| static SocketClient * | GetInstance () |
| static void | SetImplementationInstance (SocketClientImplementation *implementation) |
Protected Member Functions | |
| SocketClient () | |
| virtual | ~SocketClient () |
Static Protected Attributes | |
| static SocketClientImplementation * | m_Implementation = NULL |
| static SocketClient * | m_Instance = NULL |
Sending a message to the applications ProgressBar.
Holds a GUI dependent ProgressBarImplementation and sends the progress further. All mitk-classes use this class to display progress on GUI-ProgressBar. The mainapplication has to set the internal held ProgressBarImplementation with SetImplementationInstance(..).
Definition at line 38 of file mitkSocketClient.h.
| mitk::SocketClient::SocketClient | ( | ) | [protected] |
| mitk::SocketClient::~SocketClient | ( | ) | [protected, virtual] |
Definition at line 80 of file mitkSocketClient.cpp.
{
}
| virtual const char* mitk::SocketClient::GetClassName | ( | ) | const [virtual] |
| SocketClient * mitk::SocketClient::GetInstance | ( | ) | [static] |
Definition at line 66 of file mitkSocketClient.cpp.
References m_Instance, and SocketClient().
{
if (m_Instance == NULL)
{
m_Instance = new SocketClient();
}
return m_Instance;
}
| void mitk::SocketClient::open | ( | const char * | ipAdress, |
| unsigned short | port | ||
| ) |
Definition at line 29 of file mitkSocketClient.cpp.
References m_Implementation, and mitk::SocketClientImplementation::open().
{
if (m_Implementation)
{
m_Implementation->open( ipAdress, port );
}
}
| bool mitk::SocketClient::send | ( | unsigned int | messagetype, |
| unsigned int | bodySize = 0, |
||
| char * | body = NULL |
||
| ) |
Definition at line 45 of file mitkSocketClient.cpp.
References m_Implementation, and mitk::SocketClientImplementation::send().
{
if (m_Implementation)
{
return m_Implementation->send( messagetype, bodySize, body);
}
else
{
return false;
}
}
| void mitk::SocketClient::SetImplementationInstance | ( | SocketClientImplementation * | implementation ) | [static] |
Definition at line 57 of file mitkSocketClient.cpp.
References m_Implementation.
{
if ( m_Implementation == implementation )
{
return;
}
m_Implementation = implementation;
}
| void mitk::SocketClient::setMaxConnectionAdvance | ( | int | maxConnectionAdvance ) |
Definition at line 37 of file mitkSocketClient.cpp.
References m_Implementation, and mitk::SocketClientImplementation::setMaxConnectionAdvance().
{
if (m_Implementation)
{
m_Implementation->setMaxConnectionAdvance( maxConnectionAdvance );
}
}
SocketClientImplementation * mitk::SocketClient::m_Implementation = NULL [static, protected] |
Definition at line 58 of file mitkSocketClient.h.
Referenced by open(), send(), SetImplementationInstance(), and setMaxConnectionAdvance().
SocketClient * mitk::SocketClient::m_Instance = NULL [static, protected] |
Definition at line 59 of file mitkSocketClient.h.
Referenced by GetInstance().
1.7.2