From c4fea4934333faac2a6629c945333697d2d15142 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Tue, 24 Oct 2006 15:25:46 +0000 Subject: Cleanups Generate report in plain text (no UI yet) Copy information to clipboard --- hardinfo2/report.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'hardinfo2/report.h') diff --git a/hardinfo2/report.h b/hardinfo2/report.h index e2bfc912..7a168d4a 100644 --- a/hardinfo2/report.h +++ b/hardinfo2/report.h @@ -27,8 +27,14 @@ typedef struct _ReportContext ReportContext; struct _ReportContext { ReportDialog *rd; ShellModuleEntry *entry; + gpointer stream; - FILE *stream; + void (*header) (ReportContext *ctx); + void (*footer) (ReportContext *ctx); + void (*title) (ReportContext *ctx, gchar *text); + void (*subtitle) (ReportContext *ctx, gchar *text); + void (*subsubtitle) (ReportContext *ctx, gchar *text); + void (*keyvalue) (ReportContext *ctx, gchar *key, gchar *value); }; struct _ReportDialog { @@ -45,4 +51,16 @@ struct _ReportDialog { void report_dialog_show(); +void report_header(ReportContext *ctx); +void report_footer(ReportContext *ctx); +void report_title(ReportContext *ctx, gchar *text); +void report_subtitle(ReportContext *ctx, gchar *text); +void report_subsubtitle(ReportContext *ctx, gchar *text); +void report_key_value(ReportContext *ctx, gchar *key, gchar *value); +void report_table(ReportContext *ctx, gchar *text); + +ReportContext *report_context_html_new(ReportDialog *rd, gpointer stream); +ReportContext *report_context_text_new(ReportDialog *rd, gpointer stream); +ReportContext *report_context_string_new(ReportDialog *rd, gpointer string); + #endif /* __REPORT_H__ */ -- cgit v1.2.3