Imported Upstream version 17.23.5
[platform/upstream/libzypp.git] / zypp / target / rpm / RpmFlags.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/target/rpm/RpmFlags.h
10  *
11 */
12 #ifndef ZYPP_TARGET_RPM_RPMFLAGS_H
13 #define ZYPP_TARGET_RPM_RPMFLAGS_H
14
15 #include <iosfwd>
16
17 #include <zypp/base/Flags.h>
18
19 ///////////////////////////////////////////////////////////////////
20 namespace zypp
21 { /////////////////////////////////////////////////////////////////
22   ///////////////////////////////////////////////////////////////////
23   namespace target
24   { /////////////////////////////////////////////////////////////////
25     ///////////////////////////////////////////////////////////////////
26     namespace rpm
27     { /////////////////////////////////////////////////////////////////
28
29       /**
30        * Bits representing rpm installation options.
31        *
32        * Use \ref RpmInstFlags as a type-safe way of
33        * storing OR-combinations.
34        *
35        * @see RpmDb::installPackage(), RpmDb::removePackage(),
36        */
37       enum RpmInstFlag
38       {
39         RPMINST_NONE       = 0x0000,
40         RPMINST_EXCLUDEDOCS= 0x0001,
41         RPMINST_NOSCRIPTS  = 0x0002,
42         RPMINST_FORCE      = 0x0004,
43         RPMINST_NODEPS     = 0x0008,
44         RPMINST_IGNORESIZE = 0x0010,
45         RPMINST_JUSTDB     = 0x0020,
46         RPMINST_NODIGEST   = 0x0040,
47         RPMINST_NOSIGNATURE= 0x0080,
48         RPMINST_NOUPGRADE  = 0x0100,
49         RPMINST_TEST       = 0x0200,
50         RPMINST_NOPOSTTRANS= 0x0400
51       };
52
53       /** \relates RpmInstFlag Type-safe way of storing OR-combinations. */
54       ZYPP_DECLARE_FLAGS_AND_OPERATORS( RpmInstFlags, RpmInstFlag );
55
56       /////////////////////////////////////////////////////////////////
57     } // namespace rpm
58     ///////////////////////////////////////////////////////////////////
59     /////////////////////////////////////////////////////////////////
60   } // namespace target
61   ///////////////////////////////////////////////////////////////////
62   /////////////////////////////////////////////////////////////////
63 } // namespace zypp
64 ///////////////////////////////////////////////////////////////////
65 #endif // ZYPP_TARGET_RPM_RPMFLAGS_H