API Documentation
Loading...
Searching...
No Matches
ReportIterator Class Reference

#include <ReportIterator.h>

Inheritance diagram for ReportIterator:
[legend]
Collaboration diagram for ReportIterator:
[legend]

Public Member Functions

 ReportIterator (QTModelManager *manager)
 
 ReportIterator (const Buffer< const ReportHandler * > &reports, QTModelManager *manager)
 
 ReportIterator (const Buffer< const ReportHandler * > &reports, const Buffer< UUID > &objects_to_report, QTModelManager *manager)
 
QWidget * getReport (uint04 report_index) const override
 
void setObjectsToReport (const Buffer< UUID > &objects_to_report)
 
void updateAvailableReports ()
 
JSONNode createJSONNode () const
 
void saveReportMetaData (const File &file) const
 
void setReportHandlers (const Buffer< const ReportHandler * > &handlers)
 
virtual bool canHandle (UUID model_id, QTModelManager *)
 
const Buffer< const ReportHandler * > & reportHandlers ()
 
- Public Member Functions inherited from WidgetIterator
 WidgetIterator ()
 
 WidgetIterator (const Buffer< QWidget * > &objects_to_report)
 
virtual ~WidgetIterator ()
 
virtual void setCustomReport (uint04 index, QWidget *widget)
 
uint04 reportCount () const
 
QSize preferredSize () const
 

Protected Member Functions

void sortIDs ()
 

Protected Attributes

Buffer< UUIDm_objects_to_report
 
Buffer< std::pair< const ReportHandler *, UUID > > m_report_objects
 
QTModelManagerm_manager
 
Buffer< const ReportHandler * > m_report_handlers
 
- Protected Attributes inherited from WidgetIterator
Buffer< QWidget * > m_widgets
 
QSize m_prefered_size
 

Constructor & Destructor Documentation

◆ ReportIterator() [1/3]

◆ ReportIterator() [2/3]

ReportIterator ( const Buffer< const ReportHandler * > & reports,
QTModelManager * manager )

◆ ReportIterator() [3/3]

ReportIterator ( const Buffer< const ReportHandler * > & reports,
const Buffer< UUID > & objects_to_report,
QTModelManager * manager )

Member Function Documentation

◆ canHandle()

bool canHandle ( UUID model_id,
QTModelManager * manager )
virtual

◆ createJSONNode()

JSONNode createJSONNode ( ) const

◆ getReport()

QWidget * getReport ( uint04 report_index) const
overridevirtual

Reimplemented from WidgetIterator.

◆ reportHandlers()

const Buffer< const ReportHandler * > & reportHandlers ( )
inline

◆ saveReportMetaData()

void saveReportMetaData ( const File & file) const

◆ setObjectsToReport()

void setObjectsToReport ( const Buffer< UUID > & objects_to_report)

◆ setReportHandlers()

void setReportHandlers ( const Buffer< const ReportHandler * > & handlers)

◆ sortIDs()

void sortIDs ( )
protected

◆ updateAvailableReports()

void updateAvailableReports ( )

Member Data Documentation

◆ m_manager

QTModelManager* m_manager
protected

◆ m_objects_to_report

Buffer<UUID> m_objects_to_report
protected

◆ m_report_handlers

Buffer<const ReportHandler*> m_report_handlers
protected

◆ m_report_objects

Buffer<std::pair<const ReportHandler*, UUID> > m_report_objects
protected

The documentation for this class was generated from the following files: