summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/dlg_propsheet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/UserInfoEx/src/dlg_propsheet.cpp')
-rw-r--r--plugins/UserInfoEx/src/dlg_propsheet.cpp80
1 files changed, 38 insertions, 42 deletions
diff --git a/plugins/UserInfoEx/src/dlg_propsheet.cpp b/plugins/UserInfoEx/src/dlg_propsheet.cpp
index 63a3979aee..d0c212c04b 100644
--- a/plugins/UserInfoEx/src/dlg_propsheet.cpp
+++ b/plugins/UserInfoEx/src/dlg_propsheet.cpp
@@ -594,44 +594,9 @@ void DlgContactInfoInitTreeIcons()
}
}
-/**
-* @name UnLoadModule()
-* @desc unload the UserInfo Module
-*
-* @return nothing
-**/
-void DlgContactInfoUnLoadModule()
-{
- WindowList_Destroy(g_hWindowList);
- DestroyHookableEvent(g_hDetailsInitEvent);
-}
-
-/**
-* @name LoadModule()
-* @desc load the UserInfo Module
-*
-* @return nothing
-**/
-void DlgContactInfoLoadModule()
-{
- g_hDetailsInitEvent = CreateHookableEvent(ME_USERINFO_INITIALISE);
-
- CreateServiceFunction(MS_USERINFO_SHOWDIALOG, ShowDialog);
- CreateServiceFunction("UserInfo/AddPage", AddPage);
-
- HookEvent(ME_DB_CONTACT_DELETED, OnDeleteContact);
- HookEvent(ME_SYSTEM_PRESHUTDOWN, OnShutdown);
- HookEvent(ME_USERINFO_INITIALISE, InitDetails);
- g_hWindowList = WindowList_Create();
-
- // check whether changing my details via UserInfoEx is basically possible
- myGlobals.CanChangeDetails = FALSE;
-
- for (auto &pa : Accounts())
- if (IsProtoAccountEnabled(pa)) // update my contact information on icq server
- if (myGlobals.CanChangeDetails = MIREXISTS(CallProtoService(pa->szModuleName, PS_CHANGEINFOEX, NULL, NULL)))
- break;
-}
+/*============================================================================================
+ PropertySheet's Dialog Procedures
+ ============================================================================================*/
static void ResetUpdateInfo(LPPS pPs)
{
@@ -642,10 +607,6 @@ static void ResetUpdateInfo(LPPS pPs)
pPs->nSubContacts = 0;
}
-/*============================================================================================
- PropertySheet's Dialog Procedures
- ============================================================================================*/
-
/**
* @name DlgProc()
* @desc dialog procedure for the main propertysheet dialog box
@@ -1631,3 +1592,38 @@ static INT_PTR CALLBACK DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
}
return FALSE;
}
+
+/**
+* @name LoadModule()
+* @desc load the UserInfo Module
+**/
+void DlgContactInfoLoadModule()
+{
+ g_hDetailsInitEvent = CreateHookableEvent(ME_USERINFO_INITIALISE);
+
+ CreateServiceFunction(MS_USERINFO_SHOWDIALOG, ShowDialog);
+ CreateServiceFunction("UserInfo/AddPage", AddPage);
+
+ HookEvent(ME_DB_CONTACT_DELETED, OnDeleteContact);
+ HookEvent(ME_SYSTEM_PRESHUTDOWN, OnShutdown);
+ HookEvent(ME_USERINFO_INITIALISE, InitDetails);
+ g_hWindowList = WindowList_Create();
+
+ // check whether changing my details via UserInfoEx is basically possible
+ myGlobals.CanChangeDetails = FALSE;
+
+ for (auto &pa : Accounts())
+ if (IsProtoAccountEnabled(pa)) // update my contact information on icq server
+ if (myGlobals.CanChangeDetails = MIREXISTS(CallProtoService(pa->szModuleName, PS_CHANGEINFOEX, NULL, NULL)))
+ break;
+}
+
+/**
+* @name UnLoadModule()
+* @desc unload the UserInfo Module
+**/
+void DlgContactInfoUnLoadModule()
+{
+ WindowList_Destroy(g_hWindowList);
+ DestroyHookableEvent(g_hDetailsInitEvent);
+}