// Copyright (c) 2010 Martin Knafve / hMailServer.com. // http://www.hmailserver.com #pragma once #include "IMAPCommand.h" namespace HM { class IMAPCommandRangeAction : public IMAPCommand { public: IMAPCommandRangeAction(); virtual ~IMAPCommandRangeAction(); void SetIsUID(bool bIsUID); IMAPResult ExecuteCommand(std::shared_ptr pConnection, std::shared_ptr pArgument) {return IMAPResult();} IMAPResult DoForMails(std::shared_ptr pConnection, const String &sMailNos, const std::shared_ptr pArgument); protected: bool GetIsUID(); virtual IMAPResult DoAction(std::shared_ptr pConnection, int messageIndex, std::shared_ptr pMessage, const std::shared_ptr pArgument) = 0; private: bool is_uid_; }; }