libzypp 17.31.23
normal_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_NORMAL_P_H_INCLUDED
15#define ZYPP_CURL_NG_NETWORK_PRIVATE_DOWNLOADERSTATES_NORMAL_P_H_INCLUDED
16
17#include "base_p.h"
18#include "basicdownloader_p.h"
19#include <zypp-core/zyppng/base/statemachine.h>
20
21namespace zyppng {
22
23 struct FinishedState;
24
30 static constexpr auto stateId = Download::DlSimple;
31
33 DlNormalFileState( std::shared_ptr<Request> &&oldReq, DownloadPrivate &parent );
34
35 std::shared_ptr<FinishedState> transitionToFinished ();
36
37 SignalProxy< void () > sigFinished() {
38 return _sigFinished;
39 }
40 SignalProxy< void () > sigFailed() {
41 return _sigFailed;
42 }
43 };
44
45}
46
47#endif
std::shared_ptr< FinishedState > transitionToFinished()
Definition: normal_p.cc:29
static constexpr auto stateId
Definition: normal_p.h:30
SignalProxy< void() > sigFinished()
Definition: normal_p.h:37
SignalProxy< void() > sigFailed()
Definition: normal_p.h:40