WP6GraphicsCachedFileDataPacket.h Source File documentation

WP6GraphicsCachedFileDataPacket.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* libwpd
3 * Version: MPL 2.0 / LGPLv2.1+
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * Major Contributor(s):
10 * Copyright (C) 2007 Fridrich Strba (fridrich.strba@bluewin.ch)
11 * Copyright (C) 2007 Novell Inc. (http://www.novell.com)
12 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 *
20 * For further information visit http://libwpd.sourceforge.net
21 */
22
23/* "This product is not manufactured, approved, or supported by
24 * Corel Corporation or Corel Corporation Limited."
25 */
26
27#ifndef WP6GRAPHICSCACHEDFILEDATAPACKET_H
28#define WP6GRAPHICSCACHEDFILEDATAPACKET_H
29#include "WP6PrefixDataPacket.h"
30#include "WP6Listener.h"
31
32 class WP6GraphicsCachedFileDataPacket : public WP6PrefixDataPacket
33{
34public:
35 WP6GraphicsCachedFileDataPacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption, int id, unsigned dataOffset, unsigned dataSize);
36 ~WP6GraphicsCachedFileDataPacket() override;
37 void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override;
38 void parse(WP6Listener * /* listener */) const override {}
39 const librevenge::RVNGBinaryData *getBinaryObject() const
40 {
41 return m_object.get();
42 }
43
44private:
45 WP6GraphicsCachedFileDataPacket(const WP6GraphicsCachedFileDataPacket &);
46 WP6GraphicsCachedFileDataPacket &operator=(const WP6GraphicsCachedFileDataPacket &);
47 int m_id;
48 std::unique_ptr<librevenge::RVNGBinaryData> m_object;
49
50};
51#endif /* WP6GRAPHICSCACHEDFILEDATAPACKET_H */
52/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
WP6Listener.h
WP6PrefixDataPacket.h
WP6GraphicsCachedFileDataPacket::_readContents
void _readContents(librevenge::RVNGInputStream *input, WPXEncryption *encryption) override
Definition WP6GraphicsCachedFileDataPacket.cpp:42
WP6GraphicsCachedFileDataPacket::m_object
std::unique_ptr< librevenge::RVNGBinaryData > m_object
Definition WP6GraphicsCachedFileDataPacket.h:48
WP6GraphicsCachedFileDataPacket::WP6GraphicsCachedFileDataPacket
WP6GraphicsCachedFileDataPacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption, int id, unsigned dataOffset, unsigned dataSize)
Definition WP6GraphicsCachedFileDataPacket.cpp:30
WP6GraphicsCachedFileDataPacket::getBinaryObject
const librevenge::RVNGBinaryData * getBinaryObject() const
Definition WP6GraphicsCachedFileDataPacket.h:39
WP6GraphicsCachedFileDataPacket::parse
void parse(WP6Listener *) const override
Definition WP6GraphicsCachedFileDataPacket.h:38
WP6GraphicsCachedFileDataPacket::WP6GraphicsCachedFileDataPacket
WP6GraphicsCachedFileDataPacket(const WP6GraphicsCachedFileDataPacket &)
WP6GraphicsCachedFileDataPacket::~WP6GraphicsCachedFileDataPacket
~WP6GraphicsCachedFileDataPacket() override
Definition WP6GraphicsCachedFileDataPacket.cpp:38
WP6GraphicsCachedFileDataPacket::operator=
WP6GraphicsCachedFileDataPacket & operator=(const WP6GraphicsCachedFileDataPacket &)
WP6GraphicsCachedFileDataPacket::m_id
int m_id
Definition WP6GraphicsCachedFileDataPacket.h:47
WP6Listener
Definition WP6Listener.h:41
WP6PrefixDataPacket::WP6PrefixDataPacket
WP6PrefixDataPacket(librevenge::RVNGInputStream *input, WPXEncryption *encryption)
Definition WP6PrefixDataPacket.cpp:45
WPXEncryption
Definition WPXEncryption.h:36