libzypp  17.35.12
asyncdatasource_p.h
Go to the documentation of this file.
1 #ifndef ZYPP_CORE_ZYPPNG_IO_PRIVATE_ASYNCDATASOURCE_P_H_INCLUDED
2 #define ZYPP_CORE_ZYPPNG_IO_PRIVATE_ASYNCDATASOURCE_P_H_INCLUDED
3 
4 #include <zypp-core/zyppng/io/AsyncDataSource>
5 #include <zypp-core/zyppng/base/SocketNotifier>
6 #include "iodevice_p.h"
7 #include "iobuffer_p.h"
8 
9 namespace zyppng {
10 
13  public:
15  struct ReadChannelDev {
16  int _readFd = -1;
18  };
19  std::vector<ReadChannelDev> _readFds;
20 
23  int _writeFd = -1;
24 
25  void notifierActivated (const SocketNotifier &notify, int evTypes );
26  void readyRead ( uint channel );
27  void readyWrite ( );
28 
30  void closeReadChannel ( uint channel, AsyncDataSource::ChannelCloseReason reason );
31 
34  };
35 
36 }
37 
38 
39 #endif // ZYPP_CORE_ZYPPNG_IO_PRIVATE_ASYNCDATASOURCE_P_H_INCLUDED
void notifierActivated(const SocketNotifier &notify, int evTypes)
Signal< void(AsyncDataSource::ChannelCloseReason)> _sigWriteFdClosed
AsyncDataSourcePrivate(AsyncDataSource &pub)
std::shared_ptr< SocketNotifier > Ptr
void closeReadChannel(uint channel, AsyncDataSource::ChannelCloseReason reason)
std::vector< ReadChannelDev > _readFds
Signal< void(uint, AsyncDataSource::ChannelCloseReason)> _sigReadFdClosed
void closeWriteChannel(AsyncDataSource::ChannelCloseReason reason)
SocketNotifier::Ptr _writeNotifier
#define ZYPP_DECLARE_PUBLIC(Class)
Definition: zyppglobal.h:98