blob: b3c5d7f197290517cf821d72eab25c7823c5a569 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*
* function and data types for print information
*
* Copyright (c) 2015 Ultimaker B.V.
* Author: Olliver Schinagl <o.schinagl@ultimaker.com>
*
* SPDX-License-Identifier: AGPL-3.0+
*/
#ifndef _PRINT_DATA_H
#define _PRINT_DATA_H
#include <Eina.h>
#include <Eldbus.h>
#include <stdint.h>
#include "procedures.h"
#include "settings_data.h"
#include "ui_widgets.h"
struct print_data {
char *jobname;
char *url;
int_fast32_t time;
int_fast32_t total_time;
double progress;
char *name; /* TODO deletion pending */
char *flags;
double material;
Eina_Bool name_changed;
Eina_Bool jobname_changed;
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 {
UNKNOWN,
DISCONNECTED,
ERROR,
FIRST_RUN_WIZZARD,
IDLE,
SLICING,
HEATING,
PRINTING,
COOLING,
WAIT_FOR_REMOVAL,
PAUSED,
};
void print_clear(struct print_data *print);
#endif /* _PRINT_DATA_H */
|