summaryrefslogtreecommitdiff
path: root/plugins/Import/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Import/src/utils.cpp')
-rw-r--r--plugins/Import/src/utils.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/Import/src/utils.cpp b/plugins/Import/src/utils.cpp
index b3e3d7d6ed..8ab913ecf9 100644
--- a/plugins/Import/src/utils.cpp
+++ b/plugins/Import/src/utils.cpp
@@ -221,3 +221,33 @@ bool IsDuplicateEvent(MCONTACT hContact, DBEVENTINFO dbei)
hPreviousContact = INVALID_CONTACT_ID;
return FALSE;
}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+// icons
+
+static IconItem iconList[] = {
+ { LPGEN("Import..."), "import_main", IDI_IMPORT }
+};
+
+HICON GetIcon(int iIconId)
+{
+ for (int i = 0; i < SIZEOF(iconList); i++)
+ if (iconList[i].defIconID == iIconId)
+ return Skin_GetIconByHandle(iconList[i].hIcolib);
+
+ return NULL;
+}
+
+HANDLE GetIconHandle(int iIconId)
+{
+ for (int i = 0; i < SIZEOF(iconList); i++)
+ if (iconList[i].defIconID == iIconId)
+ return iconList[i].hIcolib;
+
+ return NULL;
+}
+
+void RegisterIcons()
+{
+ Icon_Register(hInst, "Import", iconList, SIZEOF(iconList));
+}