libzypp 17.31.23
initial_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_INITIAL_P_H_INCLUDED
15#define ZYPP_CURL_NG_NETWORK_PRIVATE_DOWNLOADERSTATES_INITIAL_P_H_INCLUDED
16
17#include "base_p.h"
18#include <zypp-core/zyppng/base/statemachine.h>
19
20namespace zyppng {
21
22#if ENABLE_ZCHUNK_COMPRESSION
23 struct DLZckHeadState;
24#endif
25
29 struct InitialState : public zyppng::SimpleState< DownloadPrivate, Download::InitialState, false > {
30
31 InitialState ( DownloadPrivate &parent ) : SimpleState( parent ){}
32
33 void enter ();;
34 void exit ();
35
36 void initiate();
37
38 SignalProxy< void () > sigTransitionToDetectMetalinkState() {
40 }
41
42 SignalProxy< void () > sigTransitionToDlMetaLinkInfoState() {
44 }
45
46#if ENABLE_ZCHUNK_COMPRESSION
47 SignalProxy< void () > sigTransitionToDLZckHeaderState() {
48 return _sigTransitionToDLZckHeaderState;
49 }
50#endif
51
52 SignalProxy< void () > sigTransitionToDlNormalFileState() {
54 }
55
56#if ENABLE_ZCHUNK_COMPRESSION
57 std::shared_ptr<DLZckHeadState> toDLZckHeadState ();
58#endif
59
60 private:
63#if ENABLE_ZCHUNK_COMPRESSION
64 Signal<void()> _sigTransitionToDLZckHeaderState;
65#endif
67 };
68
69}
70
71#endif
Signal< void()> _sigTransitionToDetectMetalinkState
Definition: initial_p.h:61
Signal< void()> _sigTransitionToDlNormalFileState
Definition: initial_p.h:66
SignalProxy< void() > sigTransitionToDlNormalFileState()
Definition: initial_p.h:52
SignalProxy< void() > sigTransitionToDetectMetalinkState()
Definition: initial_p.h:38
InitialState(DownloadPrivate &parent)
Definition: initial_p.h:31
SignalProxy< void() > sigTransitionToDlMetaLinkInfoState()
Definition: initial_p.h:42
Signal< void()> _sigTransitionToDlMetaLinkInfoState
Definition: initial_p.h:62