libzypp 17.37.17
iodevice_p.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\----------------------------------------------------------------------/
9*
10* This file contains private API, this might break at any time between releases.
11* You have been warned!
12*
13*/
14
15#ifndef ZYPPNG_IO_IODEVICE_P_DEFINED
16#define ZYPPNG_IO_IODEVICE_P_DEFINED
17
18#include <vector>
19#include <functional>
22#include "iobuffer_p.h"
23
24
25namespace zyppng {
26
27 namespace constants {
28 constexpr std::string_view outOfRangeErrMsg("Channel index out of range");
29 }
30
31 enum {
33 };
34
36 public:
38
39 std::vector<IOBuffer> _readChannels;
42
43 IODevice::OpenMode _mode = IODevice::Closed;
44 Signal< void() > _readyRead;
46 Signal< void (int64_t)> _sigBytesWritten;
49 };
50
51}
52
53
54#endif
BasePrivate(Base &b)
Definition base_p.h:17
Signal< void()> _sigAllBytesWritten
Definition iodevice_p.h:47
Signal< void(uint) > _sigReadChannelFinished
Definition iodevice_p.h:48
Signal< void(int64_t)> _sigBytesWritten
Definition iodevice_p.h:46
std::vector< IOBuffer > _readChannels
Definition iodevice_p.h:39
Signal< void() > _readyRead
Definition iodevice_p.h:44
IODevicePrivate(IODevice &p)
Definition iodevice.cc:5
IODevice::OpenMode _mode
Definition iodevice_p.h:43
Signal< void(uint) > _channelReadyRead
Definition iodevice_p.h:45
constexpr std::string_view outOfRangeErrMsg("Channel index out of range")
@ DefIoDeviceBufChunkSize
Definition iodevice_p.h:32