|
- #ifndef __testcurl__
- #define __testcurl__
-
- /**
- @file
- Subclass of testcurlGUI, which is generated by wxFormBuilder.
- */
-
- #include "testcurlGUI.h"
- #include <wx/msgdlg.h>
- #include <curl/curl.h>
- #include <string.h>
- #include <stdlib.h>
-
- #ifdef __WXGTK__
- #define slash "/"
- #define _C(string) (const char*) string.c_str()
- #elif defined( __WXMSW__ )
- #define slash "\\"
- #define _C(string) (const char*) string.c_str()
- #endif
-
- typedef struct _CurlData {
- char *content;
- size_t size;
- } CurlData;
-
- //// end generated include
-
- /** Implementing testcurlGUI */
- class testcurl : public testcurlGUI
- {
- protected:
- // Handlers for testcurlGUI events.
- void OnGo( wxCommandEvent& event );
- CURL* curlhandle;
- CurlData curldata;
-
- public:
- /** Constructor */
- testcurl( wxWindow* parent );
- ~testcurl();
- //// end generated class members
-
- };
-
- static size_t WriteDataCallback(void *contents, size_t size, size_t nmemb, void *userp);
-
-
- #endif // __testcurl__
|