diff options
author | 2013-06-27 23:56:19 -0700 | |
---|---|---|
committer | 2013-06-28 11:57:05 -0700 | |
commit | 6280c6a3d1daad83b8054730d430edbc91bc6d2d (patch) | |
tree | 643638bd0f71b9c8e7007342d070161bc1c5551d /src/core/basetypes | |
parent | 29bc4a2eac587c83f1de1ecf5ee5dc2299452966 (diff) |
Allows for custom headers to be set in message
* Adds setHeaders, addHeader, getHeader to {MCO,MC}MessageHeader
* Exposes MCHashMap iterator for more effecient iteration
Diffstat (limited to 'src/core/basetypes')
-rw-r--r-- | src/core/basetypes/MCHashMap.cc | 9 | ||||
-rw-r--r-- | src/core/basetypes/MCHashMap.h | 12 |
2 files changed, 9 insertions, 12 deletions
diff --git a/src/core/basetypes/MCHashMap.cc b/src/core/basetypes/MCHashMap.cc index 164198f5..524221fa 100644 --- a/src/core/basetypes/MCHashMap.cc +++ b/src/core/basetypes/MCHashMap.cc @@ -10,15 +10,6 @@ using namespace mailcore; -namespace mailcore { - struct HashMapCell { - unsigned int func; - Object * key; - Object * value; - HashMapCell * next; - }; -} - #define CHASH_DEFAULTSIZE 13 #define CHASH_MAXDEPTH 3 diff --git a/src/core/basetypes/MCHashMap.h b/src/core/basetypes/MCHashMap.h index 40751b8e..75bcab47 100644 --- a/src/core/basetypes/MCHashMap.h +++ b/src/core/basetypes/MCHashMap.h @@ -10,7 +10,12 @@ namespace mailcore { class String; class Array; - struct HashMapCell; + struct HashMapCell { + unsigned int func; + Object * key; + Object * value; + HashMapCell * next; + }; typedef HashMapCell HashMapIter; class HashMap : public Object { @@ -28,6 +33,9 @@ namespace mailcore { virtual Array * allValues(); virtual void removeAllObjects(); + HashMapIter * iteratorBegin(); + HashMapIter * iteratorNext(HashMapIter * iter); + public: // subclass behavior HashMap(HashMap * o); virtual String * description(); @@ -37,8 +45,6 @@ namespace mailcore { unsigned int mAllocated; unsigned int mCount; void ** mCells; - HashMapIter * iteratorBegin(); - HashMapIter * iteratorNext(HashMapIter * iter); void allocate(unsigned int size); void init(); }; |