summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/client.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-07-05 14:49:46 +0000
committerRobert Pösel <robyer@seznam.cz>2013-07-05 14:49:46 +0000
commit3b92d9d65e48885e8b27622c2c27055eb55cdab0 (patch)
tree7cf0831ab6b81235bc052a5a6baf1cffda4a4aca /protocols/FacebookRM/src/client.h
parentbcd1e4170e3ab77e98f17b887e4cfe899add81c8 (diff)
Facebook: Changed constants to enums, cleanup.
git-svn-id: http://svn.miranda-ng.org/main/trunk@5240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/client.h')
-rw-r--r--protocols/FacebookRM/src/client.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/protocols/FacebookRM/src/client.h b/protocols/FacebookRM/src/client.h
index 024ba16b26..652c20fc23 100644
--- a/protocols/FacebookRM/src/client.h
+++ b/protocols/FacebookRM/src/client.h
@@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "constants.h"
+
#pragma once
#define FORCE_DISCONNECT 1
@@ -153,7 +155,7 @@ public:
std::map<std::string, bool> messages_ignore;
bool channel();
- bool send_message(std::string message_recipient, std::string message_text, std::string *error_text, int method);
+ bool send_message(std::string message_recipient, std::string message_text, std::string *error_text, MessageMethod method);
////////////////////////////////////////////////////////////
// Status handling
@@ -164,15 +166,14 @@ 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(RequestType 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(RequestType);
+ int choose_method(RequestType);
+ std::string choose_proto(RequestType);
+ std::string choose_server(RequestType, std::string* data = NULL, std::string* get_data = NULL);
+ std::string choose_action(RequestType, std::string* data = NULL, std::string* get_data = NULL);
NETLIBHTTPHEADER* get_request_headers(int request_type, int* headers_count);