diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-01-22 23:40:10 +0100 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-01-22 23:40:10 +0100 |
commit | a379587f7147343c3fee63b8495bc725d1ee6097 (patch) | |
tree | 3bd1764cfc61940d42a45c2655c2de62ac3bed33 /protocols/FacebookRM/src/requests | |
parent | 6dd71dba3863c45c72d9c3bfd408f969bbb33a75 (diff) |
Facebook: Search also Facebook pages
Diffstat (limited to 'protocols/FacebookRM/src/requests')
-rw-r--r-- | protocols/FacebookRM/src/requests/search.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/requests/search.h b/protocols/FacebookRM/src/requests/search.h index 127a559dba..6ca35b10cd 100644 --- a/protocols/FacebookRM/src/requests/search.h +++ b/protocols/FacebookRM/src/requests/search.h @@ -3,7 +3,7 @@ Facebook plugin for Miranda Instant Messenger _____________________________________________ -Copyright � 2011-17 Robert P�sel +Copyright © 2011-17 Robert Pösel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,12 +23,16 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #ifndef _FACEBOOK_REQUEST_SEARCH_H_ #define _FACEBOOK_REQUEST_SEARCH_H_ +#define SEARCH_TYPE_PEOPLE "people" +#define SEARCH_TYPE_PAGES "pages" +// other type for searching is "events" or "groups", but that's pointless to search in Miranda + // searching class SearchRequest : public HttpRequest { public: - SearchRequest(bool mobileBasicWorks, const char *query, int s, int pn, const char *ssid) : - HttpRequest(REQUEST_GET, FORMAT, "%s/search/people/", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE) + SearchRequest(bool mobileBasicWorks, const char *type, const char *query, int s, int pn, const char *ssid) : + HttpRequest(REQUEST_GET, FORMAT, "%s/search/%s/", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE, type) { flags |= NLHRF_REDIRECT; |