summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-07 15:13:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-07 15:13:14 +0300
commit09c998451798561b15e2b7a58d4d77446a238b5c (patch)
treee2f3a0a77137d6232e3952a97d64e509c696c124 /protocols/Telegram/src/proto.h
parentd9c93c40267f416ebef07fcd3f4f6c1677e7e857 (diff)
fixes #3405 (Telegram: добавление контакта по номеру телефона)
Diffstat (limited to 'protocols/Telegram/src/proto.h')
-rw-r--r--protocols/Telegram/src/proto.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/protocols/Telegram/src/proto.h b/protocols/Telegram/src/proto.h
index f4635d44f6..8dd9ca1fa9 100644
--- a/protocols/Telegram/src/proto.h
+++ b/protocols/Telegram/src/proto.h
@@ -117,6 +117,8 @@ struct TG_BASIC_GROUP
class CTelegramProto : public PROTO<CTelegramProto>
{
+ friend class CAddPhoneContactDlg;
+
class CProtoImpl
{
friend class CTelegramProto;
@@ -262,7 +264,8 @@ public:
HANDLE SearchByName(const wchar_t *nick, const wchar_t *firstName, const wchar_t *lastName) override;
int SendMsg(MCONTACT hContact, int flags, const char *pszMessage) override;
int SetStatus(int iNewStatus) override;
-
+
+ void OnBuildProtoMenu() override;
void OnContactDeleted(MCONTACT hContact) override;
MWindow OnCreateAccMgrUI(MWindow hwndParent) override;
void OnMarkRead(MCONTACT, MEVENT) override;
@@ -277,6 +280,10 @@ public:
int __cdecl GcMenuHook(WPARAM, LPARAM);
int __cdecl GcEventHook(WPARAM, LPARAM);
+ // Services //////////////////////////////////////////////////////////////////////////
+
+ INT_PTR __cdecl AddByPhone(WPARAM, LPARAM);
+
// Options ///////////////////////////////////////////////////////////////////////////
CMOption<uint32_t> m_iCountry; // set this status to m_iStatus1 after this interval of secs
@@ -294,3 +301,5 @@ public:
void __cdecl ServerThread(void *);
};
+
+typedef CProtoDlgBase<CTelegramProto> CTelegramDlgBase; \ No newline at end of file