Foxit PDF SDK
fs_ofdoesseal.h
1 #ifndef FS_OFD_OESSEAL_H_
2 #define FS_OFD_OESSEAL_H_
3 
4 #include "common/fs_common.h"
5 #include "common/fs_image.h"
6 
12 namespace foxit {
16 namespace ofd {
20 namespace ofdseal {
22 class Seal FS_FINAL : public Base {
23  public:
25  ~Seal();
26 
32  Seal(const Seal& other);
33 
40  Seal& operator = (const Seal& other);
41 
49  bool operator == (const Seal& other) const;
50 
58  bool operator != (const Seal& other) const;
59 
67  bool IsEmpty() const;
68 
74  String GetID() const;
75 
81  String GetName() const;
82 
88  String GetVersion() const;
89 
95  String GetCompany() const;
96 
102  String GetExtend() const;
103 
109  String GetSignMethod() const;
110 
116  String GetDigestMethod() const;
117 
124 
130  int GetImageWidth() const;
131 
137  int GetImageHeight() const;
138 
139  explicit Seal(FS_HANDLE handle);
140  };
141 
143 class Oes FS_FINAL : public Base {
144  public:
150  explicit Oes(const char* oes_lib_path);
151 
157  explicit Oes(const String& oes_lib_path);
158 
160  ~Oes();
161 
167  Oes(const Oes& other);
168 
176  Oes& operator = (const Oes& other);
177 
185  bool operator == (const Oes& other) const;
186 
194  bool operator != (const Oes& other) const;
195 
203  bool IsEmpty() const;
204 
212  bool Login(const String& passowrd);
213 
222  bool SetExtendParam(const String& param_name, const String& param_value);
223 
229  int GetSealCount() const;
230 
239  Seal GetSeal(int index) const;
240 
246  bool Clear() const;
247 
253  String GetLastErrorMessage() const;
254 
255  explicit Oes(FS_HANDLE handle);
256 };
257 
258 } // namespace ofdseal
259 } // namespace ofd
260 } // namespace foxit
261 
262 #endif // _BUILD_OFDSDK_
Seal(const Seal &other)
构造函数,通过另一个电子印章对象。
Definition: fs_image.h:36
int GetImageWidth() const
获取电子印章图片的宽度。
bool IsEmpty() const
检查当前对象是否为空。
String GetLastErrorMessage() const
获取最后一次错误的错误信息。
bool operator==(const Oes &other) const
相等操作符。
foxit::common::Bitmap GetImage() const
获取电子印章的图片。
Definition: fs_ofdoesseal.h:143
bool Clear() const
清空已经加载电子印章列表。
bool SetExtendParam(const String &param_name, const String &param_value)
设置电子印章库的扩展参数。
bool operator==(const Seal &other) const
相等操作符。
int GetImageHeight() const
获取电子印章图片的高度。
Seal GetSeal(int index) const
获取指定索引的电子印章对象。
~Seal()
析构函数。
int GetSealCount() const
获取电子印章库的电子印章数量。
bool IsEmpty() const
检查当前对象是否为空。
图像和位图相关定义和类的头文件。
Seal & operator=(const Seal &other)
赋值操作符。
Definition: fs_ofdoesseal.h:22
Oes & operator=(const Oes &other)
赋值操作符。
String GetExtend() const
获取电子印章的扩展信息。
String GetName() const
获取电子印章的名称。
bool operator !=(const Seal &other) const
不相等操作符。
String GetID() const
获取电子印章的ID。
void * FS_HANDLE
句柄类型。
Definition: fs_basictypes.h:213
通用定义和类的头文件。
String GetSignMethod() const
获取电子印章的签名方法。
bool operator !=(const Oes &other) const
不相等操作符。
String GetVersion() const
获取电子印章的版本。
Definition: fs_basictypes.h:471
~Oes()
析构函数。
Foxit命名空间。
Definition: fs_pdf3d.h:26
字节字符串类
Definition: fx_string.h:317
String GetCompany() const
获取电子印章的公司名称。
Oes(const char *oes_lib_path)
构造函数,通过电子印章库文件路径。
bool Login(const String &passowrd)
电子印章库登录。
String GetDigestMethod() const
获取电子印章的摘要方法。