diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-12-20 03:22:13 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-12-20 03:22:13 +0000 |
commit | 1705273c443d069c82fac78ad34d909513af519b (patch) | |
tree | 0ca1a5a0aa1977ca69afd09371985032da06b45e /protocols/Omegle/src/client.h | |
parent | 1f70e7a998a41fa0c85b129eb4584d44c166036c (diff) |
Omegle: Various fixes and code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@11541 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle/src/client.h')
-rw-r--r-- | protocols/Omegle/src/client.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/protocols/Omegle/src/client.h b/protocols/Omegle/src/client.h index a6e28c5a2c..8506c14556 100644 --- a/protocols/Omegle/src/client.h +++ b/protocols/Omegle/src/client.h @@ -37,7 +37,6 @@ public: // Client definition
Omegle_client( )
{
- chat_id_ = server_ = question_ = "";
nick_ = NULL;
//msgid_ = 0;
send_message_lock_ = NULL;
@@ -63,7 +62,7 @@ public: std::string chat_id_;
std::string server_;
std::string question_;
- TCHAR *nick_;
+ ptrT nick_;
HANDLE send_message_lock_;
//int msgid_;
@@ -75,7 +74,6 @@ public: bool spy_mode_;
// Data storage
- std::map< std::string, std::string > headers;
void store_headers( http::response* resp, NETLIBHTTPHEADER* headers, int headers_count );
std::string get_server( bool not_last = false );
@@ -84,9 +82,9 @@ public: // Connection handling
unsigned int error_count_;
- bool handle_entry( std::string method );
- bool handle_success( std::string method );
- bool handle_error( std::string method, bool force_disconnect = false );
+ 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 );
void __inline increment_error( ) { error_count_++; }
void __inline decrement_error( ) { if ( error_count_ > 0 ) error_count_--; }
@@ -102,7 +100,7 @@ public: std::string get_page( int );
- bool send_message( 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 );
|