summaryrefslogtreecommitdiff
path: root/protocols/Teams/src/teams_proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-18 16:12:38 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-18 16:12:38 +0300
commit3b3dea953dc54158db9cb35378852175e55c669d (patch)
tree5cf71e6fa5e4be13b0158f0ded6a61bec17847fc /protocols/Teams/src/teams_proto.h
parent536b626a052525f226165f3834f4ea06c6a7ad11 (diff)
Teams: new format of subscription request + massive code cleaning
Diffstat (limited to 'protocols/Teams/src/teams_proto.h')
-rw-r--r--protocols/Teams/src/teams_proto.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/protocols/Teams/src/teams_proto.h b/protocols/Teams/src/teams_proto.h
index 7cf8952023..fdbee4d39e 100644
--- a/protocols/Teams/src/teams_proto.h
+++ b/protocols/Teams/src/teams_proto.h
@@ -165,8 +165,8 @@ public:
// other data
int m_iPollingId, m_iMessageId = 1;
- ptrA m_szToken, m_szEndpoint, m_szOwnSkypeId;
- CMStringA m_szSkypename, m_szMyname, m_szSkypeToken;
+ ptrA m_szToken, m_szOwnSkypeId;
+ CMStringA m_szSkypename, m_szMyname, m_szSkypeToken, m_szEndpoint;
MCONTACT m_hMyContact;
__forceinline CMStringA getId(MCONTACT hContact) {
@@ -298,14 +298,16 @@ private:
bool ParseMessage(const JSONNode &node, DB::EventInfo &dbei);
- // utils
- template <typename T>
- __inline static void FreeList(const LIST<T> &lst)
- {
- for (auto &it : lst)
- mir_free(it);
- }
+ // server requests
+ void GetProfileInfo(MCONTACT hContact);
+
+ void SetServerStatus(int iStatus);
+ void CreateSubscription();
+ void CreateContactSubscription();
+
+
+ // utils
__forceinline bool IsOnline() const
{ return (m_iStatus > ID_STATUS_OFFLINE);
}
@@ -320,8 +322,6 @@ private:
static time_t IsoToUnixTime(const std::string &stamp);
- void SetServerStatus(int iStatus);
-
void ShowNotification(const wchar_t *message, MCONTACT hContact = NULL);
void ShowNotification(const wchar_t *caption, const wchar_t *message, MCONTACT hContact = NULL, int type = 0);
static bool IsFileExists(std::wstring path);
@@ -340,7 +340,6 @@ private:
INT_PTR __cdecl SvcLoadHistory(WPARAM hContact, LPARAM);
INT_PTR __cdecl SvcEmptyHistory(WPARAM hContact, LPARAM);
INT_PTR __cdecl SvcCreateChat(WPARAM, LPARAM);
- INT_PTR __cdecl SvcSetMood(WPARAM, LPARAM);
INT_PTR __cdecl ParseSkypeUriService(WPARAM, LPARAM lParam);
// trouter