summaryrefslogtreecommitdiffstats
path: root/src/membername.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/membername.h')
-rw-r--r--src/membername.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/membername.h b/src/membername.h
index 15f407c..74f81f5 100644
--- a/src/membername.h
+++ b/src/membername.h
@@ -20,6 +20,7 @@
#include <qlist.h>
#include "memberdef.h"
+#include "sortdict.h"
class MemberName : public QList<MemberDef>
{
@@ -107,6 +108,19 @@ class MemberNameInfoDict : public QDict<MemberNameInfo>
~MemberNameInfoDict() {}
};
+class MemberNameInfoSDict : public SDict<MemberNameInfo>
+{
+ public:
+ MemberNameInfoSDict(int size) : SDict<MemberNameInfo>(size) {}
+ ~MemberNameInfoSDict() {}
+ int compareItems(GCI item1,GCI item2)
+ { return stricmp(
+ ((MemberNameInfo *)item1)->memberName(),
+ ((MemberNameInfo *)item2)->memberName()
+ );
+ }
+};
+
class MemberNameInfoListIterator : public QListIterator<MemberNameInfo>
{
public: