blob: b51252a8f38c94e493e47ddc7e4f2d7adba63530 (
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
56
57
58
59
|
/*
* 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 { /* XXX progress data or the like, strip non-progress data */
const char *title;
const char *status;
char *jobname;
char *url;
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;
};
struct extrusion_train_data {
uint_fast8_t id;
double temperature;
};
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 */
|