33 #ifndef CXACTIVEDATA_H
34 #define CXACTIVEDATA_H
36 #include "cxResourceExport.h"
39 #include "boost/shared_ptr.hpp"
45 typedef boost::shared_ptr<class Data>
DataPtr;
46 typedef boost::shared_ptr<class Image>
ImagePtr;
61 virtual QList<DataPtr> getActiveDataHistory()
const;
62 virtual DataPtr getActive()
const;
63 virtual DataPtr getActiveUsingRegexp(QString typeRegexp)
const;
65 boost::shared_ptr<DATA> getActive()
const;
66 virtual ImagePtr getDerivedActiveImage()
const;
67 virtual void setActive(
DataPtr activeData);
68 virtual void setActive(QString uid);
69 virtual QString getActiveImageUid();
70 virtual void remove(
DataPtr dataToBeRemoved);
73 virtual bool isNull()
const {
return false;}
75 void activeImageChanged(
const QString& uId);
76 void activeDataChanged(
const QString& uId);
79 QList<DataPtr> mActiveData;
84 void emitSignals(
DataPtr activeData);
85 void emitActiveDataChanged();
86 void emitActiveImageChanged();
87 QString getChangedUid(
DataPtr activeData)
const;
88 QList<DataPtr> getActiveDataHistory(QString typeRegexp)
const;
89 QString getStringToSave()
const;
90 QStringList getActiveDataStringList()
const;
91 void loadFromString(
const QString activeDatas);
97 boost::shared_ptr<DATA> retval;
99 for(
int i = activeDataList.size() - 1; i >= 0; --i)
101 retval = boost::dynamic_pointer_cast<DATA>(activeDataList.at(i));
111 #endif // CXACTIVEDATA_H
virtual QList< DataPtr > getActiveDataHistory() const
Provides the last active data of warious types.
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class ActiveData > ActiveDataPtr
virtual bool isNull() const
boost::shared_ptr< class Data > DataPtr
virtual DataPtr getActive() const
cxLogicManager_EXPORT SessionStorageServicePtr sessionStorageService()
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class PatientStorage > PatientStoragePtr
boost::shared_ptr< class SessionStorageService > SessionStorageServicePtr