00001 /// 00002 /// \file r_save_message.h 00003 /// Blackberry database record parser class for saved email 00004 /// message records. 00005 /// 00006 00007 /* 00008 Copyright (C) 2005-2010, Net Direct Inc. (http://www.netdirect.ca/) 00009 Copyright (C) 2007, Brian Edginton (edge@edginton.net) 00010 00011 This program is free software; you can redistribute it and/or modify 00012 it under the terms of the GNU General Public License as published by 00013 the Free Software Foundation; either version 2 of the License, or 00014 (at your option) any later version. 00015 00016 This program is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00019 00020 See the GNU General Public License in the COPYING file at the 00021 root directory of this project for more details. 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 // NOTE: All classes here must be container-safe! Perhaps add sorting 00034 // operators in the future. 00035 // 00036 00037 /// \addtogroup RecordParserClasses 00038 /// @{ 00039 00040 class BXEXPORT SavedMessage : public MessageBase 00041 { 00042 public: 00043 // database name 00044 static const char * GetDBName() { return "Saved Email Messages"; } 00045 static uint8_t GetDefaultRecType() { return 3; } 00046 }; 00047 00048 BXEXPORT inline std::ostream& operator<<(std::ostream &os, const SavedMessage &msg) { 00049 msg.Dump(os); 00050 return os; 00051 } 00052 00053 /// @} 00054 00055 } // namespace Barry 00056 00057 #endif // __BARRY_RECORD_SAVED_MESSAGE_H__ 00058 00059