summaryrefslogtreecommitdiff
path: root/Plugins/extraicons/ExtraIcon.cpp
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-04-23 04:31:27 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2009-04-23 04:31:27 +0000
commit3892d0da37e70a6c0106e57dad835e9a67933b02 (patch)
tree4ae8600d4eb5acce08a42b68d1d218c4e47153cc /Plugins/extraicons/ExtraIcon.cpp
parentd27127d44576580e3a0000590b6179f06cc67b8e (diff)
extraicons: start of group code
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@168 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/extraicons/ExtraIcon.cpp')
-rw-r--r--Plugins/extraicons/ExtraIcon.cpp39
1 files changed, 7 insertions, 32 deletions
diff --git a/Plugins/extraicons/ExtraIcon.cpp b/Plugins/extraicons/ExtraIcon.cpp
index 3e33f5b..696613b 100644
--- a/Plugins/extraicons/ExtraIcon.cpp
+++ b/Plugins/extraicons/ExtraIcon.cpp
@@ -19,10 +19,8 @@
#include "commons.h"
-ExtraIcon::ExtraIcon(int id, const char *name, const char *description, const char *descIcon, MIRANDAHOOKPARAM OnClick,
- LPARAM param) :
- id(id), name(name), description(description), descIcon(descIcon), OnClick(OnClick), onClickParam(param), slot(-1),
- position(1000)
+ExtraIcon::ExtraIcon(int id, const char *name) :
+ id(id), name(name), slot(-1), position(1000)
{
}
@@ -35,26 +33,6 @@ const char *ExtraIcon::getName() const
return name.c_str();
}
-const char *ExtraIcon::getDescription() const
-{
- return description.c_str();
-}
-
-void ExtraIcon::setDescription(const char *desc)
-{
- description = desc;
-}
-
-const char *ExtraIcon::getDescIcon() const
-{
- return descIcon.c_str();
-}
-
-void ExtraIcon::setDescIcon(const char *icon)
-{
- descIcon = icon;
-}
-
int ExtraIcon::getSlot() const
{
return slot;
@@ -102,14 +80,6 @@ void ExtraIcon::applyIcons()
}
}
-void ExtraIcon::onClick(HANDLE hContact)
-{
- if (OnClick == NULL)
- return;
-
- OnClick((WPARAM) hContact, (LPARAM) ConvertToClistSlot(slot), onClickParam);
-}
-
int ExtraIcon::compare(const ExtraIcon *other) const
{
int ret = getPosition() - other->getPosition();
@@ -154,3 +124,8 @@ bool ExtraIcon::operator>=(const ExtraIcon & other) const
return c >= 0;
}
+int ExtraIcon::ClistSetExtraIcon(HANDLE hContact, int slot, HANDLE hImage)
+{
+ return Clist_SetExtraIcon(hContact, slot, hImage);
+}
+