summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-12-18 14:07:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-12-18 14:07:14 +0300
commit406f0e4a4f42979778757243ed29c2753cbb1107 (patch)
treee4b9a02689c3c38ab9f53924faec3204e3ff2254 /protocols/Facebook/src/proto.h
parentdc1d550fc8d2bc39a3f1b371f4dedbd045576c35 (diff)
Facebook:
- normal behaviour of ServerThread(); - added OnLoggedIn() function; - correct OnShutdown() processing; - DBKEY_USERNAME replaced with DBKEY_LOGIN to provide compatibility with the old protocol
Diffstat (limited to 'protocols/Facebook/src/proto.h')
-rw-r--r--protocols/Facebook/src/proto.h17
1 files changed, 7 insertions, 10 deletions
diff --git a/protocols/Facebook/src/proto.h b/protocols/Facebook/src/proto.h
index 29c55a197e..761b49edb2 100644
--- a/protocols/Facebook/src/proto.h
+++ b/protocols/Facebook/src/proto.h
@@ -300,13 +300,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define FB_API_CONTACTS_COUNT "500"
-
#define FACEBOOK_MESSAGE_LIMIT 100000
-
-
-
-
class FacebookProto;
struct AsyncHttpRequest : public MTHttpRequest<FacebookProto>
@@ -344,9 +339,9 @@ public:
class FacebookProto : public PROTO<FacebookProto>
{
- AsyncHttpRequest* CreateRequest(const char* szName, const char* szMethod);
- AsyncHttpRequest* CreateRequestGQL(int64_t id);
- NETLIBHTTPREQUEST* ExecuteRequest(AsyncHttpRequest *pReq);
+ AsyncHttpRequest *CreateRequest(const char *szName, const char *szMethod);
+ AsyncHttpRequest *CreateRequestGQL(int64_t id);
+ NETLIBHTTPREQUEST *ExecuteRequest(AsyncHttpRequest *pReq);
// MQTT functions
bool MqttConnect();
@@ -359,13 +354,14 @@ class FacebookProto : public PROTO<FacebookProto>
CMStringA m_szClientID; // stored, random alphanumeric string of 20 chars
__int64 m_uid; // stored, Facebook user id
__int64 m_iMqttId;
-
+
bool m_invisible;
bool m_bOnline;
CMStringA m_szAuthToken; // calculated
- void OnLoggedOut();
+ void OnLoggedIn();
+ void OnLoggedOut();
void __cdecl ServerThread(void *);
@@ -381,6 +377,7 @@ public:
// PROTO_INTERFACE
void OnModulesLoaded() override;
+ void OnShutdown() override;
INT_PTR GetCaps(int type, MCONTACT hContact) override;