📄 smsera.h
字号:
/* * Written By S砤womir Szczyrba <steev@hot.pl> * All rights reserved. No warrenties, use at your own risk. * This source is distributed under the GNU GENERAL PUBLIC LICENCE, * see the file "COPYING" for more information. */#ifndef SMSEra_H #define SMSEra_H#include <fox-1.4/fx.h>#include "FXSMS.h"#include <curl/curl.h>#include <curl/types.h>#include <curl/easy.h>class FXAPI SMSEra : public FXSMS{//FXDECLARE(SMSEra)private: FXString login; FXString pass; FXString signature; CURL *curl; CURLcode res; FXString answer; FXint counter; static const FXchar *errors[]; FXString parse(FXString data, FXString token); FXint send_one(void);protected: SMSEra();public:// constructor SMSEra(FXApp * app):FXSMS(app){} SMSEra(FXApp * app, FXString l, FXString p):FXSMS(app),login(l),pass(p){} ~SMSEra(){} FXint send(void); FXint send(FXString ms); FXint send(FXString ms, FXString ph); FXint send(FXString ms, FXString ph, FXString s); FXint getCounter(void) {return counter;} void setLogin(FXString l) {login=l;} void setPassword(FXString p) {pass=p;} void setSig(FXString s) {signature=s;} friend FXAPI size_t write_data(void *ptr, size_t size, size_t nmemb, SMSEra *client);};#endif /* SMSEra_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -