lib/misc/pwentry_table.h
changeset 0 6f7a81934006
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/misc/pwentry_table.h	Wed Jan 16 22:39:43 2008 +0100
@@ -0,0 +1,34 @@
+#ifndef VMAILMGR__PWENTRY_TABLE__H__
+#define VMAILMGR__PWENTRY_TABLE__H__
+
+#include "misc/pwentry.h"
+
+#if 0
+
+#include "misc/hash_table.h"
+#include "misc/crc_hash.h"
+
+class pwentry_table : public hash_table<pwentry*,hash_ptr_node<pwentry>,crc_hash>
+{
+  bool valid;
+public:
+  pwentry_table();
+  ~pwentry_table();
+  bool operator!() const
+    {
+      return !valid;
+    }
+};
+
+#else
+
+class pwentry_table
+{
+public:
+  bool operator!() const { return false; }
+  pwentry* operator[](const mystring&) const;
+};
+
+#endif
+
+#endif