libzypp: zypp/PurgeKernels.h Source File

libzypp 17.38.11

PurgeKernels.h
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12
13#include <zypp-core/Globals.h>
14#include <zypp/PoolItem.h>
15#include <zypp-core/base/PtrTypes.h>
16
17namespace zypp {
18
19 namespace str {
20 class regex;
21 }
22
27 class ZYPP_API PurgeKernels
28 {
29 public:
30 PurgeKernels();
31
32
37 void markObsoleteKernels();
38
43 void setUnameR( const std::string &val );
44 std::string unameR() const;
45
46
51 void setKernelArch( const zypp::Arch &arch );
52 Arch kernelArch() const;
53
64 void setKeepSpec( const std::string &val );
65 std::string keepSpec () const;
66
67 struct Impl;
68 private:
69 RW_pointer<Impl> _pimpl;
70 };
71
72}
73
Globals.h
Provides API related macros.
PoolItem.h
PtrTypes.h
zypp::Arch
Architecture.
Definition Arch.h:37
zypp::PurgeKernels::PurgeKernels
PurgeKernels()
Definition PurgeKernels.cc:480
zypp::PurgeKernels::unameR
std::string unameR() const
Definition PurgeKernels.cc:672
zypp::PurgeKernels::kernelArch
Arch kernelArch() const
Definition PurgeKernels.cc:682
zypp::PurgeKernels::setKeepSpec
void setKeepSpec(const std::string &val)
Definition PurgeKernels.cc:687
zypp::PurgeKernels::keepSpec
std::string keepSpec() const
Definition PurgeKernels.cc:692
zypp::PurgeKernels::setUnameR
void setUnameR(const std::string &val)
Definition PurgeKernels.cc:667
zypp::PurgeKernels::_pimpl
RW_pointer< Impl > _pimpl
Definition PurgeKernels.h:69
zypp::PurgeKernels::setKernelArch
void setKernelArch(const zypp::Arch &arch)
Definition PurgeKernels.cc:677
zypp::PurgeKernels::markObsoleteKernels
void markObsoleteKernels()
Definition PurgeKernels.cc:486
zypp::str::regex
Regular expression.
Definition Regex.h:95
str
String related utilities and Regular expression matching.
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ZYPP_API
const Arch Arch_empty ZYPP_API
relates: Arch This is an empty Arch represented by an empty string.
Definition Arch.h:173
zypp::PurgeKernels::Impl
Definition PurgeKernels.cc:59
zypp::RW_pointer
Wrapper for const correct access via Smart pointer types.
Definition PtrTypes.h:293