smsera.h

来自「sms发送短信的程序」· C头文件 代码 · 共 51 行

H
51
字号
/*   * 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 + =
减小字号Ctrl + -
显示快捷键?