diff options
| author | George Hazan <ghazan@miranda.im> | 2022-07-31 18:07:27 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2022-07-31 18:07:27 +0300 |
| commit | 500dd4848842f6d4207584417448586d060fbd6a (patch) | |
| tree | 569ac641e814da1d706d36b12eaf35183a3ce7a5 /src/mir_app/src/auth.cpp | |
| parent | b47e4b4b32698470bf52c0dc1c2d1af56c46c9b5 (diff) | |
Contact: group of functions gathered into the personal namespace
Diffstat (limited to 'src/mir_app/src/auth.cpp')
| -rw-r--r-- | src/mir_app/src/auth.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mir_app/src/auth.cpp b/src/mir_app/src/auth.cpp index 8518bc1a63..c40053819f 100644 --- a/src/mir_app/src/auth.cpp +++ b/src/mir_app/src/auth.cpp @@ -114,7 +114,7 @@ public: fldReason.SetText(reasonT); - if (m_hContact == INVALID_CONTACT_ID || Contact_OnList(m_hContact)) + if (m_hContact == INVALID_CONTACT_ID || Contact::OnList(m_hContact)) btnAdd.Hide(); edtReason.SetMaxLength(255); @@ -123,7 +123,7 @@ public: edtReason.SetText(TranslateT("Feature is not supported by protocol")); } - if (Contact_OnList(m_hContact)) { + if (Contact::OnList(m_hContact)) { chkAdd.Disable(); chkAdd.SetState(false); } @@ -136,7 +136,7 @@ public: CallProtoService(m_szProto, PS_AUTHALLOW, m_hDbEvent, 0); if (chkAdd.GetState()) - Contact_AddByEvent(m_hDbEvent, m_hwnd); + Contact::AddByEvent(m_hDbEvent, m_hwnd); return true; } @@ -254,14 +254,14 @@ public: mir_snwprintf(hdr, TranslateT("%s added you to the contact list\n%s on %s"), name, emailT[0] ? emailT.get() : TranslateT("(Unknown)"), acc->tszAccountName); fldHeader.SetText(hdr); - if (m_hContact == INVALID_CONTACT_ID || Contact_OnList(m_hContact)) + if (m_hContact == INVALID_CONTACT_ID || Contact::OnList(m_hContact)) btnAdd.Hide(); return true; } bool OnApply() { - Contact_AddByEvent(m_hDbEvent, m_hwnd); + Contact::AddByEvent(m_hDbEvent, m_hwnd); return true; } @@ -278,9 +278,9 @@ public: void onClick_Add(CCtrlButton*) { - Contact_AddByEvent(m_hDbEvent, m_hwnd); + Contact::AddByEvent(m_hDbEvent, m_hwnd); - if (m_hContact == INVALID_CONTACT_ID || Contact_OnList(m_hContact)) + if (m_hContact == INVALID_CONTACT_ID || Contact::OnList(m_hContact)) btnAdd.Hide(); } @@ -323,7 +323,7 @@ static int AuthEventAdded(WPARAM, LPARAM lParam) cle.lParam = lParam; cle.hDbEvent = hDbEvent; - ptrW szUid(Contact_GetInfo(CNF_UNIQUEID, hContact)); + ptrW szUid(Contact::GetInfo(CNF_UNIQUEID, hContact)); if (dbei.eventType == EVENTTYPE_AUTHREQUEST) { Skin_PlaySound("AuthRequest"); |
