Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __BARRY_RECORD_SAVED_MESSAGE_H__
00025 #define __BARRY_RECORD_SAVED_MESSAGE_H__
00026
00027 #include "dll.h"
00028 #include "r_message_base.h"
00029
00030 namespace Barry {
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 class BXEXPORT SavedMessage : public MessageBase
00041 {
00042 public:
00043 SavedMessage()
00044 {
00045 Clear();
00046 }
00047
00048 void Clear()
00049 {
00050 MessageBase::Clear();
00051
00052 RecType = GetDefaultRecType();
00053 RecordId = 0;
00054 }
00055
00056
00057 static const char * GetDBName() { return "Saved Email Messages"; }
00058 static uint8_t GetDefaultRecType() { return 3; }
00059
00060
00061 static const FieldHandle<SavedMessage>::ListT& GetFieldHandles();
00062 };
00063
00064 BXEXPORT inline std::ostream& operator<<(std::ostream &os, const SavedMessage &msg) {
00065 msg.Dump(os);
00066 return os;
00067 }
00068
00069
00070
00071 }
00072
00073 #endif // __BARRY_RECORD_SAVED_MESSAGE_H__
00074
00075