ModuleInterface Class Reference

Base class for MedCenter's modules Modules can display a widget ; have access to Patient data and should give their name and a path to an logo image A module does not always need to be displayed. This depends on the information attached to the Patient. More...

#include <Module/ModuleInterface.h>

List of all members.

Public Member Functions

virtual void createGui (QWidget *parent=0)=0
 Construct the interface of the module using parent
virtual void setPatientData (Patient *pPatient, const QString &folderName)=0
 Defines the Patient data for the module.
virtual bool needDisplay ()=0
 Informs if the module should be displayed.
virtual const QString & name ()=0
virtual const QUrl & imageSource ()=0
virtual QWidget * getWidget ()=0
 Gets the widget created by the module.
virtual Q_SIGNAL void clientChanged (Patient *pPatient)=0
 Signal sent when the patient data changed.

Protected Attributes

QString m_moduleName
QUrl m_logoSource

Detailed Description

Base class for MedCenter's modules Modules can display a widget ; have access to Patient data and should give their name and a path to an logo image A module does not always need to be displayed. This depends on the information attached to the Patient.


Member Function Documentation

void ModuleInterface::clientChanged ( Patient pPatient  )  [pure virtual]

Signal sent when the patient data changed.

Parameters:
pPatient pointer to the patient data
void ModuleInterface::createGui ( QWidget *  parent = 0  )  [pure virtual]

Construct the interface of the module using parent

Parameters:
parent 
QWidget * ModuleInterface::getWidget (  )  [pure virtual]

Gets the widget created by the module.

Returns:
a pointer to the widget
const QUrl & ModuleInterface::imageSource (  )  [pure virtual]
Returns:
the path to the logo image
const QString & ModuleInterface::name (  )  [pure virtual]
Returns:
the name of the module
bool ModuleInterface::needDisplay (  )  [pure virtual]

Informs if the module should be displayed.

Returns:
true if the module has something to show depending on the Patient data
void ModuleInterface::setPatientData ( Patient pPatient,
const QString &  folderName 
) [pure virtual]

Defines the Patient data for the module.

Parameters:
pPatient the data
folderName the folder to use

Member Data Documentation

QString ModuleInterface::m_moduleName [protected]

The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Properties
Generated on Tue Sep 13 01:46:00 2011 for MedCenter by  doxygen 1.6.3