diff options
Diffstat (limited to 'protocols/FacebookRM/src/client.h')
-rw-r--r-- | protocols/FacebookRM/src/client.h | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/protocols/FacebookRM/src/client.h b/protocols/FacebookRM/src/client.h index 0b9ee55625..62a9a7f2c0 100644 --- a/protocols/FacebookRM/src/client.h +++ b/protocols/FacebookRM/src/client.h @@ -32,7 +32,7 @@ public: // Client definition
- facebook_client( )
+ facebook_client()
{
username_ = password_ = \
chat_sequence_num_ = chat_channel_host_ = chat_channel_partition_ = \
@@ -82,7 +82,7 @@ public: // Client vs protocol communication
- void client_notify( TCHAR* message );
+ void client_notify(TCHAR* message);
////////////////////////////////////////////////////////////
@@ -92,11 +92,11 @@ public: std::map< std::string, std::string > cookies;
- std::string get_newsfeed_type( );
+ std::string get_newsfeed_type();
- char* load_cookies( );
- void store_headers( http::response* resp, NETLIBHTTPHEADER* headers, int headers_count );
- void clear_cookies( );
+ char* load_cookies();
+ void store_headers(http::response* resp, NETLIBHTTPHEADER* headers, int headers_count);
+ void clear_cookies();
////////////////////////////////////////////////////////////
@@ -104,22 +104,22 @@ public: unsigned int error_count_;
- bool validate_response( http::response* );
+ bool validate_response(http::response*);
- 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(std::string method);
+ bool handle_success(std::string method);
+ bool handle_error(std::string method, bool force_disconnect = false);
- void __inline increment_error( ) { this->error_count_++; }
- void __inline decrement_error( ) { if ( error_count_ > 0 ) error_count_--; }
- void __inline reset_error( ) { error_count_ = 0; }
+ void __inline increment_error() { this->error_count_++; }
+ void __inline decrement_error() { if (error_count_ > 0) error_count_--; }
+ void __inline reset_error() { error_count_ = 0; }
////////////////////////////////////////////////////////////
// Login handling
- bool login( const std::string &username, const std::string &password );
- bool logout( );
+ bool login(const std::string &username, const std::string &password);
+ bool logout();
const std::string & get_username() const;
@@ -127,9 +127,9 @@ public: // Session handling
- bool home( );
- bool reconnect( );
- bool chat_state( bool online = true );
+ bool home();
+ bool reconnect();
+ bool chat_state(bool online = true);
////////////////////////////////////////////////////////////
@@ -139,18 +139,18 @@ public: HANDLE buddies_lock_;
HANDLE send_message_lock_;
- bool buddy_list( );
- bool load_friends( );
- bool feeds( );
+ bool buddy_list();
+ bool load_friends();
+ bool feeds();
////////////////////////////////////////////////////////////
// Messages handling
- bool channel( );
- bool send_message( std::string message_recipient, std::string message_text, std::string *error_text, int method );
- void close_chat( std::string message_recipient );
- void chat_mark_read( std::string message_recipient );
+ bool channel();
+ bool send_message(std::string message_recipient, std::string message_text, std::string *error_text, int method);
+ void close_chat(std::string message_recipient);
+ void chat_mark_read(std::string message_recipient);
////////////////////////////////////////////////////////////
@@ -162,17 +162,17 @@ public: // HTTP communication
- http::response flap( const int request_type, std::string* request_data = NULL, std::string* request_get_data = NULL, int method = 0 );
+ http::response flap(const int request_type, std::string* request_data = NULL, std::string* request_get_data = NULL, int method = 0);
bool save_url(const std::string &url,const std::tstring &filename, HANDLE &nlc);
- DWORD choose_security_level( int );
- 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 );
+ DWORD choose_security_level(int);
+ 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);
- NETLIBHTTPHEADER* get_request_headers( int request_type, int* headers_count );
+ NETLIBHTTPHEADER* get_request_headers(int request_type, int* headers_count);
////////////////////////////////////////////////////////////
|