// Copyright (c) 2010 Martin Knafve / hMailServer.com. // http://www.hmailserver.com #pragma once namespace HM { class DistributionList; enum PersistenceMode; class PersistentDistributionList { public: PersistentDistributionList(void); ~PersistentDistributionList(void); static bool DeleteObject(std::shared_ptr pDistList); static bool SaveObject(std::shared_ptr pDistList); static bool SaveObject(std::shared_ptr pDistList, String &sErrorMessage, PersistenceMode mode); static bool ReadObject(std::shared_ptr pDistList, const String &sAddress); static bool ReadObject(std::shared_ptr pDistList, __int64 ObjectID); static bool ReadObject(std::shared_ptr pDistList, const SQLCommand &command); static bool ReadObject(std::shared_ptr pDistList, std::shared_ptr pRS); static bool DeleteMembers(std::shared_ptr pDistList); private: }; }