summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src/client.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-05-19 18:51:14 +0000
committerRobert Pösel <robyer@seznam.cz>2015-05-19 18:51:14 +0000
commit331cea6299be141243e89e10755ec4adf5ef5d90 (patch)
tree6b95ffa477d89c6188d022b2d32704441557e6b7 /protocols/Omegle/src/client.h
parent12e166b13c3b60836c19cd4625ba8a02e423fc53 (diff)
Omegle: Fix receiving data without first letter; various cleanup; version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@13700 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle/src/client.h')
-rw-r--r--protocols/Omegle/src/client.h41
1 files changed, 19 insertions, 22 deletions
diff --git a/protocols/Omegle/src/client.h b/protocols/Omegle/src/client.h
index 1cf3f9b25b..d3a6bf6856 100644
--- a/protocols/Omegle/src/client.h
+++ b/protocols/Omegle/src/client.h
@@ -35,7 +35,7 @@ class Omegle_client
public:
// Client definition
- Omegle_client( )
+ Omegle_client()
{
nick_ = NULL;
//msgid_ = 0;
@@ -78,9 +78,9 @@ public:
bool spy_mode_;
// Data storage
- void store_headers( http::response* resp, NETLIBHTTPHEADER* headers, int headers_count );
+ void store_headers(http::response *resp, NETLIBHTTPHEADER *headers, int headers_count);
- std::string get_server( bool not_last = false );
+ std::string get_server(bool not_last = false);
std::string get_language();
// Connection handling
@@ -88,34 +88,31 @@ public:
bool handle_entry(const std::string &method);
bool handle_success(const std::string &method);
- bool handle_error(const std::string &method, bool force_disconnect = false );
+ bool handle_error(const std::string &method, bool force_disconnect = false);
- void __inline increment_error( ) { error_count_++; }
- void __inline decrement_error( ) { if ( error_count_ > 0 ) error_count_--; }
- void __inline reset_error( ) { error_count_ = 0; }
+ void __inline increment_error() { error_count_++; }
+ void __inline decrement_error() { if ( error_count_ > 0 ) error_count_--; }
+ void __inline reset_error() { error_count_ = 0; }
- bool start( );
- bool stop( );
- bool events( );
+ bool start();
+ bool stop();
+ bool events();
- bool typing_start( );
- bool typing_stop( );
- bool recaptcha( );
+ bool typing_start();
+ bool typing_stop();
+ bool recaptcha();
- std::string get_page( int );
+ std::string get_page(int);
- bool send_message(const std::string &message_text );
+ bool send_message(const std::string &message_text);
// HTTP communication
- http::response flap( const int request_type, std::string* request_data = NULL, std::string* get_data = NULL );
+ http::response flap(const int request_type, std::string *post_data = NULL, std::string *get_data = NULL);
- int choose_method( int );
- std::string choose_proto( int );
- std::string choose_server( int, std::string* data = NULL, std::string* get_data = NULL );
- std::string choose_action( int, std::string* data = NULL, std::string* get_data = NULL );
- std::string choose_request_url( int, std::string* data = NULL, std::string* get_data = NULL );
+ std::string choose_server(int);
+ std::string choose_action(int, std::string *get_data = NULL);
- NETLIBHTTPHEADER* get_request_headers( int request_type, int* headers_count );
+ NETLIBHTTPHEADER *get_request_headers(int request_type, int *headers_count);
// Netlib handle