WebpagePrinterTool 2.0
Print a web page skip the browser's print preview
载入中...
搜索中...
未找到
PrintedPage.h
浏览该文件的文档.
1#pragma once
2// #include "../excep/FatalError.h"
3#include <QString>
4// #include <qloggingcategory.h>
5struct PrintedPage {
6 // PrintedPage(const PrintedPage&&) {
7 // assert(false && "PrintedPage should not be moved");
8 // throw FatalError("PrintedPage should not be moved");
9 // };
10 PrintedPage() = default;
15 int id;
21
31 QString time;
36 QString status;
41 QString from_ip;
51 QString page_url;
67};
68
69bool inline operator==(const PrintedPage& lhs, const PrintedPage& rhs) {
70 return lhs.id == rhs.id && lhs.config_id == rhs.config_id && lhs.time == rhs.time &&
71 lhs.status == rhs.status && lhs.from_ip == rhs.from_ip && lhs.page_url == rhs.page_url &&
72 lhs.page_file_path == rhs.page_file_path &&
76}
bool operator==(const PrintedPage &lhs, const PrintedPage &rhs)
定义 PrintedPage.h:69
定义 PrintedPage.h:5
int id
主键id
定义 PrintedPage.h:15
QString page_url
打印的网页, 如果是磁盘上的文件,请添加 file://前缀
定义 PrintedPage.h:51
QString error_message
错误信息
定义 PrintedPage.h:66
QString time
打印时间
定义 PrintedPage.h:31
QString page_file_path
.png|.pdf 文件路径位j置
定义 PrintedPage.h:46
int config_id
配置id
定义 PrintedPage.h:20
int end_cmd_exec_status
最终执行命令的返回状态
定义 PrintedPage.h:56
QString page_loaded_or_js_request
PAGE_LOADED(页面加载完毕) or JS_REQUEST(window.print()被调用)
定义 PrintedPage.h:26
QString end_cmd_exec_message
最终执行命令的返回信息
定义 PrintedPage.h:61
PrintedPage()=default
QString from_ip
来源ip
定义 PrintedPage.h:41
QString status
状态 STEP
定义 PrintedPage.h:36