libzypp  17.31.31
mirrorhandling_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 #ifndef ZYPP_CURL_NG_NETWORK_PRIVATE_DOWNLOADERSTATES_MIRRORHANDLING_P_H_INCLUDED
15 #define ZYPP_CURL_NG_NETWORK_PRIVATE_DOWNLOADERSTATES_MIRRORHANDLING_P_H_INCLUDED
16 
17 #include <zypp-core/zyppng/base/statemachine.h>
18 #include "base_p.h"
19 
20 namespace zyppng {
21 
25  struct MirrorHandlingStateBase : public zyppng::BasicState< DownloadPrivate, false >
26  {
27 
29  virtual ~MirrorHandlingStateBase();
32  Ok,
34  };
35 
41 
42 
49 
54  virtual void mirrorReceived ( MirrorControl::MirrorPick mirror ) = 0;
55 
60  virtual void failedToPrepare (){};
61 
62  std::vector<Url> _fileMirrors; //< all mirrors of the currently requested file
63 
64  private:
65  connection _sigMirrorsReadyConn; //< the internal connection to the mirrors ready signal
66  };
67 
68 }
69 
70 #endif
MirrorHandlingStateBase(DownloadPrivate &parent)
Holds transfer setting.
virtual void mirrorReceived(MirrorControl::MirrorPick mirror)=0
The NetworkRequestError class Represents a error that occured in.
std::pair< std::vector< Url >::const_iterator, MirrorHandle > MirrorPick
NetworkRequestError setupMirror(const MirrorControl::MirrorPick &pick, Url &url, TransferSettings &set)