Foxit PDF SDK
foxit::pdf::TimeStampServer类 参考
类 foxit::pdf::TimeStampServer 继承关系图:
foxit::Base

Public 类型

enum  SendRequestResult {
  e_SendResultSuccess = 0, e_SendResultFailToCreateSocket = 1, e_SendResultFailToConnect = 2, e_SendResultFailToSendData = 3,
  e_SendResultFailToReceiveData = 4, e_SendResultFailToRequest = 5, e_SendResultFailToGetData = 6, e_SendResultOutOfMemory = 7
}
 发送时间戳请求结果的枚举。 更多...
 

Public 成员函数

 TimeStampServer (const TimeStampServer &other)
 构造函数,使用另一个时间戳服务器对象。 更多...
 
 ~TimeStampServer ()
 析构函数。
 
String GetTimeStampMessage ()
 获取时间戳消息。 更多...
 
bool IsEmpty () const
 检查当前对象是否为空。 更多...
 
bool operator != (const TimeStampServer &other) const
 不相等操作符。 更多...
 
TimeStampServeroperator= (const TimeStampServer &other)
 赋值操作符。 更多...
 
bool operator== (const TimeStampServer &other) const
 相等操作符。 更多...
 
SendRequestResult SendTimeStampRequest (const String &request)
 发送时间戳请求。 更多...
 
- Public 成员函数 继承自 foxit::Base
FS_HANDLE Handle () const
 获取当前对象的句柄。 更多...
 

详细描述

此类表示时间戳服务器。它可以用于发送时间戳请求并获取消息。

成员枚举类型说明

◆ SendRequestResult

发送时间戳请求结果的枚举。

此枚举的值应单独使用。

枚举值
e_SendResultSuccess 

成功发送请求。

e_SendResultFailToCreateSocket 

在发送请求过程中创建套接字失败。

e_SendResultFailToConnect 

在发送请求过程中连接失败。

e_SendResultFailToSendData 

在发送请求过程中发送数据失败。

e_SendResultFailToReceiveData 

在发送请求过程中接收数据失败。

e_SendResultFailToRequest 

在发送请求过程中请求失败。

e_SendResultFailToGetData 

在发送请求过程中获取数据失败。

e_SendResultOutOfMemory 

在发送请求过程中内存不足。

构造及析构函数说明

◆ TimeStampServer()

foxit::pdf::TimeStampServer::TimeStampServer ( const TimeStampServer other)

构造函数,使用另一个时间戳服务器对象。

参数
[in]other另一个时间戳服务器对象。

成员函数说明

◆ GetTimeStampMessage()

String foxit::pdf::TimeStampServer::GetTimeStampMessage ( )

获取时间戳消息。

此函数用于在函数TimeStampServer::SendTimeStampRequest成功运行后获取时间戳消息。

返回
时间戳消息。

◆ IsEmpty()

bool foxit::pdf::TimeStampServer::IsEmpty ( ) const

检查当前对象是否为空。

当当前对象为空时,表示当前对象无用。

返回
true表示当前对象为空,false表示不为空。

◆ operator !=()

bool foxit::pdf::TimeStampServer::operator != ( const TimeStampServer other) const

不相等操作符。

参数
[in]other另一个时间戳服务器对象。此函数将检查当前对象是否与此对象不相等。
返回
true表示不相等,false表示相等。

◆ operator=()

TimeStampServer& foxit::pdf::TimeStampServer::operator= ( const TimeStampServer other)

赋值操作符。

参数
[in]other另一个时间戳服务器对象,其值将被赋给当前对象。
返回
对当前对象自身的引用。

◆ operator==()

bool foxit::pdf::TimeStampServer::operator== ( const TimeStampServer other) const

相等操作符。

参数
[in]other另一个时间戳服务器对象。此函数将检查当前对象是否与此对象相等。
返回
true表示相等,false表示不相等。

◆ SendTimeStampRequest()

SendRequestResult foxit::pdf::TimeStampServer::SendTimeStampRequest ( const String request)

发送时间戳请求。

参数
[in]request要发送的时间戳请求。不应为空字符串。
返回
发送请求过程的结果值。请参考从 TimeStampServer::e_SendResultSuccess开始的值,这将是这些值中的一个。