WebpagePrinterTool 2.0
Print a web page skip the browser's print preview
载入中...
搜索中...
未找到
RespPrintPage结构体 参考

打印页面 response 更多...

#include <WebInterface.h>

类 RespPrintPage 继承关系图:
RespPrintPage 的协作图:

静态 Public 成员函数

static QJsonObject toJsonObject (std::optional< int > uid, const QString &file_path, int page_id)
 

Public 属性

QString file_path {""}
 输出的文件路径,不包含后缀,(.pdf 或.png)
 
int page_id {0}
 sqlite中存储的对应数据的id
 
- Public 属性 继承自 RespBase
bool is_success = false
 是否成功
 
std::optional< int > uid
 uid,websocket 的消息request 和 resp 不限制对应关系,uid 保证了他们的联系, 也就是 uid 相同 的 request 和 response 对应 由request端生成
 

额外继承的成员函数

- Public 成员函数 继承自 RespBase
 RespBase ()=delete
 

详细描述

打印页面 response

参见
RespError

成员函数说明

◆ toJsonObject()

static QJsonObject RespPrintPage::toJsonObject ( std::optional< int > uid,
const QString & file_path,
int page_id )
inlinestatic

类成员变量说明

◆ file_path

QString RespPrintPage::file_path {""}

输出的文件路径,不包含后缀,(.pdf 或.png)

◆ page_id

int RespPrintPage::page_id {0}

sqlite中存储的对应数据的id


该结构体的文档由以下文件生成: