API Documentation
Loading...
Searching...
No Matches
NCCustomReport.h
Go to the documentation of this file.
1#pragma once
4#include "include/ncreport.h"
5namespace NDEVR
6{
7 class NCCustomReport : public NCReport
8 {
9 public:
11 : NCReport()
12 {
13
14 }
15 virtual void setToDefaults()
16 {
17
18 }
20 {
21 return m_options;
22 }
23 virtual void setReportOptions(const ReportOptions& format_source)
24 {
25 m_options = format_source;
26 reset();
27 NCReportSource* source = new NCReportSource();
28 source->setSourceType(NCReportSource::File);
29 source->setFileName(m_options.format_source.getAs<QString>(), false);
30 setReportSource(source);
32 }
33 virtual void setupReport()
34 {
35 };
36 const String& reportName() const
37 {
38 return m_report_name;
39 }
40 const String& reportIcon() const
41 {
42 return m_report_icon;
43 }
45 {
47 }
48 protected:
53 };
54}
Definition NCCustomReport.h:8
const String & reportName() const
Definition NCCustomReport.h:36
virtual void setReportOptions(const ReportOptions &format_source)
Definition NCCustomReport.h:23
String m_report_icon
Definition NCCustomReport.h:51
virtual void setupReport()
Definition NCCustomReport.h:33
ReportOptions m_options
Definition NCCustomReport.h:49
String m_report_name
Definition NCCustomReport.h:50
const ReportOptions & reportOptions() const
Definition NCCustomReport.h:19
const String & reportDescription() const
Definition NCCustomReport.h:44
NCCustomReport()
Definition NCCustomReport.h:10
const String & reportIcon() const
Definition NCCustomReport.h:40
virtual void setToDefaults()
Definition NCCustomReport.h:15
String m_report_description
Definition NCCustomReport.h:52
Definition ReportOptions.h:9
String format_source
Definition ReportOptions.h:11
The core String class for the NDEVR API.
Definition String.h:69
t_type getAs() const
Converts a string into an object. To use this function an object must have overwritten StringStream<t...
Definition String.h:143
Definition ACIColor.h:37