libzypp 17.37.10

RepoManagerFlags.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#ifndef ZYPP_REPOMANAGER_FLAGS_INCLUDED_H
13#define ZYPP_REPOMANAGER_FLAGS_INCLUDED_H
14
15#include <zypp-core/base/Flags.h>
16
17 namespace zypp {
18 namespace RepoManagerFlags {
19
20 enum RawMetadataRefreshPolicy
21 {
22 RefreshIfNeeded,
23 RefreshForced,
24 RefreshIfNeededIgnoreDelay
25 };
26
27 enum CacheBuildPolicy
28 {
29 BuildIfNeeded,
30 BuildForced
31 };
32
34 enum RefreshServiceBit
35 {
36 RefreshService_restoreStatus = (1<<0),
37 RefreshService_forceRefresh = (1<<1),
38 };
39 ZYPP_DECLARE_FLAGS(RefreshServiceFlags,RefreshServiceBit);
40
42 using RefreshServiceOptions = RefreshServiceFlags;
43
47 enum RefreshCheckStatus {
48 REFRESH_NEEDED,
49 REPO_UP_TO_DATE,
50 REPO_CHECK_DELAYED
51 };
52 }
53
54 ZYPP_DECLARE_OPERATORS_FOR_FLAGS( RepoManagerFlags::RefreshServiceFlags );
55}
56#endif //ZYPP_REPOMANAGER_FLAGS_INCLUDED_H
zypp::RepoManagerFlags
Definition RepoManagerFlags.h:18
zypp::RepoManagerFlags::RefreshCheckStatus
RefreshCheckStatus
Possibly return state of RepoManager::checkIfToRefreshMetadata function.
Definition RepoManagerFlags.h:47
zypp::RepoManagerFlags::REFRESH_NEEDED
@ REFRESH_NEEDED
refresh is needed
Definition RepoManagerFlags.h:48
zypp::RepoManagerFlags::REPO_UP_TO_DATE
@ REPO_UP_TO_DATE
repository not changed
Definition RepoManagerFlags.h:49
zypp::RepoManagerFlags::REPO_CHECK_DELAYED
@ REPO_CHECK_DELAYED
refresh is delayed due to settings
Definition RepoManagerFlags.h:50
zypp::RepoManagerFlags::RefreshServiceOptions
RefreshServiceFlags RefreshServiceOptions
Options tuning RefreshService.
Definition RepoManagerFlags.h:42
zypp::RepoManagerFlags::CacheBuildPolicy
CacheBuildPolicy
Definition RepoManagerFlags.h:28
zypp::RepoManagerFlags::BuildIfNeeded
@ BuildIfNeeded
Definition RepoManagerFlags.h:29
zypp::RepoManagerFlags::BuildForced
@ BuildForced
Definition RepoManagerFlags.h:30
zypp::RepoManagerFlags::RawMetadataRefreshPolicy
RawMetadataRefreshPolicy
Definition RepoManagerFlags.h:21
zypp::RepoManagerFlags::RefreshIfNeededIgnoreDelay
@ RefreshIfNeededIgnoreDelay
Definition RepoManagerFlags.h:24
zypp::RepoManagerFlags::RefreshForced
@ RefreshForced
Definition RepoManagerFlags.h:23
zypp::RepoManagerFlags::RefreshIfNeeded
@ RefreshIfNeeded
Definition RepoManagerFlags.h:22
zypp::RepoManagerFlags::RefreshServiceBit
RefreshServiceBit
Flags for tuning RefreshService.
Definition RepoManagerFlags.h:35
zypp::RepoManagerFlags::RefreshService_restoreStatus
@ RefreshService_restoreStatus
Force restoring repo enabled/disabled status.
Definition RepoManagerFlags.h:36
zypp::RepoManagerFlags::RefreshService_forceRefresh
@ RefreshService_forceRefresh
Force refresh even if TTL is not reached.
Definition RepoManagerFlags.h:37
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
Flags.h
ZYPP_DECLARE_OPERATORS_FOR_FLAGS
#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Name)
Definition Flags.h:177
ZYPP_DECLARE_FLAGS
#define ZYPP_DECLARE_FLAGS(Name, Enum)
Definition Flags.h:174