123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /*
- * Copyright 2005 - 2016 Zarafa and its licensors
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Affero General Public License for more details.
- *
- * You should have received a copy of the GNU Affero General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- #ifndef INPUT_STREAM_MAPI_ADAPTER_H
- #define INPUT_STREAM_MAPI_ADAPTER_H
- #include <kopano/zcdefs.h>
- #include <mapidefs.h>
- #include <vmime/utility/inputStream.hpp>
- namespace KC {
- class inputStreamMAPIAdapter _kc_final : public vmime::utility::inputStream {
- public:
- inputStreamMAPIAdapter(IStream *lpStream);
- virtual ~inputStreamMAPIAdapter();
- virtual size_t read(vmime::byte_t *, size_t) _kc_override;
- virtual size_t skip(size_t) _kc_override;
- virtual void reset(void) _kc_override;
- virtual bool eof(void) const _kc_override { return this->ateof; }
- private:
- bool ateof = false;
- IStream *lpStream;
- };
- } /* namespace */
- #endif
|