diff options
Diffstat (limited to 'Plugins/extraicons/BaseExtraIcon.h')
-rw-r--r-- | Plugins/extraicons/BaseExtraIcon.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Plugins/extraicons/BaseExtraIcon.h b/Plugins/extraicons/BaseExtraIcon.h new file mode 100644 index 0000000..7194e68 --- /dev/null +++ b/Plugins/extraicons/BaseExtraIcon.h @@ -0,0 +1,29 @@ +#ifndef __BASEEXTRAICON_H__
+#define __BASEEXTRAICON_H__
+
+#include "ExtraIcon.h"
+
+class BaseExtraIcon : public ExtraIcon
+{
+public:
+ BaseExtraIcon(int id, const char *name, const char *description, const char *descIcon, MIRANDAHOOKPARAM OnClick,
+ LPARAM param);
+ virtual ~BaseExtraIcon();
+
+ virtual const char *getDescription() const;
+ virtual void setDescription(const char *desc);
+ virtual const char *getDescIcon() const;
+ virtual void setDescIcon(const char *icon);
+ virtual int getType() const =0;
+
+ virtual void onClick(HANDLE hContact);
+
+
+protected:
+ std::string description;
+ std::string descIcon;
+ MIRANDAHOOKPARAM OnClick;
+ LPARAM onClickParam;
+};
+
+#endif // __BASEEXTRAICON_H__
|