summaryrefslogtreecommitdiffstats
path: root/src/print_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/print_data.h')
-rw-r--r--src/print_data.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/print_data.h b/src/print_data.h
index adebb20..5d901f3 100644
--- a/src/print_data.h
+++ b/src/print_data.h
@@ -11,18 +11,28 @@
#define _PRINT_DATA_H
#include <Eina.h>
+#include <Eldbus.h>
#include <stdint.h>
-struct print_data {
- uint_fast32_t time;
- double progress;
+#include "procedures.h"
+#include "settings_data.h"
+#include "ui_widgets.h"
+
+struct print_data { /* XXX progress data or the like, strip non-progress data */
+ const char *title;
+ const char *status;
+ char *jobname;
char *url;
- char *name;
- Eina_Bool name_changed;
+ int_fast32_t time;
+ int_fast32_t total_time;
+ double value; /* progress */
char *flags;
double material;
Eina_Bool block;
Eina_Bool block_active;
+ Eldbus_Pending *(*method_set)(struct settings_dial_data *dial_data);
+ Eldbus_Pending *(*method_get)(struct procedure_data *procedure);
+ enum procedure_key proc_key;
};
enum printer_status {
@@ -39,4 +49,6 @@ enum printer_status {
PAUSED,
};
+void print_clear(struct print_data *print);
+
#endif /* _PRINT_DATA_H */