summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-20 16:19:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-20 16:19:56 +0300
commite2530b85347a8e0a3344174c3575284a76f512aa (patch)
treeaf7282360d4c57aa26c1d9de260505583076c933 /protocols
parent495c51c74e7d1595c882ae31becb7ab5b4093a08 (diff)
UserInfo_AddPage() helper replaced with CMPLugin::addUserInfo()
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Gadu-Gadu/src/dialogs.cpp2
-rw-r--r--protocols/ICQCorp/src/user.cpp2
-rw-r--r--protocols/IRCG/src/userinfo.cpp2
-rw-r--r--protocols/IcqOscarJ/src/userinfotab.cpp4
-rwxr-xr-xprotocols/JabberG/src/jabber_userinfo.cpp4
-rw-r--r--protocols/JabberG/src/jabber_vcard.cpp12
-rw-r--r--protocols/Tox/src/tox_contacts.cpp2
7 files changed, 14 insertions, 14 deletions
diff --git a/protocols/Gadu-Gadu/src/dialogs.cpp b/protocols/Gadu-Gadu/src/dialogs.cpp
index bc311e486a..20e71b2b37 100644
--- a/protocols/Gadu-Gadu/src/dialogs.cpp
+++ b/protocols/Gadu-Gadu/src/dialogs.cpp
@@ -815,7 +815,7 @@ int GaduProto::details_init(WPARAM wParam, LPARAM lParam)
odp.pszTemplate = pszTemplate;
odp.szTitle.w = m_tszUserName;
odp.dwInitParam = (LPARAM)this;
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
// Start search for user data
if (hContact == NULL)
diff --git a/protocols/ICQCorp/src/user.cpp b/protocols/ICQCorp/src/user.cpp
index becb17221f..48ad3b84b1 100644
--- a/protocols/ICQCorp/src/user.cpp
+++ b/protocols/ICQCorp/src/user.cpp
@@ -156,6 +156,6 @@ int icqUserInfoInitialise(WPARAM wParam, LPARAM lParam)
odp.pfnDlgProc = icqUserInfoDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_INFO_ICQCORP);
odp.hInstance = g_plugin.getInst();
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
return 0;
}
diff --git a/protocols/IRCG/src/userinfo.cpp b/protocols/IRCG/src/userinfo.cpp
index 56946ec121..2e36ef5f22 100644
--- a/protocols/IRCG/src/userinfo.cpp
+++ b/protocols/IRCG/src/userinfo.cpp
@@ -217,6 +217,6 @@ int __cdecl CIrcProto::OnInitUserInfo(WPARAM wParam, LPARAM lParam)
odp.pfnDlgProc = UserDetailsDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_USERINFO);
odp.szTitle.a = m_szModuleName;
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
return 0;
}
diff --git a/protocols/IcqOscarJ/src/userinfotab.cpp b/protocols/IcqOscarJ/src/userinfotab.cpp
index 76ec477cca..c6740c3dd0 100644
--- a/protocols/IcqOscarJ/src/userinfotab.cpp
+++ b/protocols/IcqOscarJ/src/userinfotab.cpp
@@ -276,7 +276,7 @@ int CIcqProto::OnUserInfoInit(WPARAM wParam, LPARAM lParam)
odp.position = -1900000000;
odp.szTitle.w = m_tszUserName;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_INFO_ICQ);
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
if (!lParam) {
wchar_t buf[200];
@@ -286,7 +286,7 @@ int CIcqProto::OnUserInfoInit(WPARAM wParam, LPARAM lParam)
odp.position = -1899999999;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_INFO_CHANGEINFO);
odp.pfnDlgProc = ChangeInfoDlgProc;
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
}
return 0;
}
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp
index 374c60bee3..7aa1c6adba 100755
--- a/protocols/JabberG/src/jabber_userinfo.cpp
+++ b/protocols/JabberG/src/jabber_userinfo.cpp
@@ -829,13 +829,13 @@ int CJabberProto::OnUserInfoInit(WPARAM wParam, LPARAM lParam)
odp.position = -2000000000;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_INFO_JABBER);
odp.szTitle.a = LPGEN("Account");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = JabberUserPhotoDlgProc;
odp.position = 2000000000;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_PHOTO);
odp.szTitle.a = LPGEN("Photo");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
}
//TODO: add omemo dialog to userinfo
return 0;
diff --git a/protocols/JabberG/src/jabber_vcard.cpp b/protocols/JabberG/src/jabber_vcard.cpp
index 95b737973b..09fb8bcd3d 100644
--- a/protocols/JabberG/src/jabber_vcard.cpp
+++ b/protocols/JabberG/src/jabber_vcard.cpp
@@ -1187,32 +1187,32 @@ void CJabberProto::OnUserInfoInit_VCard(WPARAM wParam, LPARAM)
odp.pfnDlgProc = PersonalDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_PERSONAL);
odp.szTab.w = LPGENW("General");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = ContactDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_CONTACT);
odp.szTab.w = LPGENW("Contacts");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = HomeDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_HOME);
odp.szTab.w = LPGENW("Home");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = WorkDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_WORK);
odp.szTab.w = LPGENW("Work");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = PhotoDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_PHOTO);
odp.szTab.w = LPGENW("Photo");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
odp.pfnDlgProc = NoteDlgProc;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_VCARD_NOTE);
odp.szTab.w = LPGENW("Note");
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
SendGetVcard(m_szJabberJID);
}
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp
index f6e72d7b47..4fd148e394 100644
--- a/protocols/Tox/src/tox_contacts.cpp
+++ b/protocols/Tox/src/tox_contacts.cpp
@@ -358,7 +358,7 @@ int CToxProto::OnUserInfoInit(WPARAM wParam, LPARAM lParam)
odp.pfnDlgProc = UserInfoProc;
odp.position = -2000000000;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_USER_INFO);
- UserInfo_AddPage(wParam, &odp);
+ g_plugin.addUserInfo(wParam, &odp);
}
return 0;