11#ifndef APT_CONFIGURATION_H
12#define APT_CONFIGURATION_H
14#include <apt-pkg/macros.h>
42 APT_PUBLIC std::vector<std::string>
const getCompressionTypes(
bool const &Cached =
true);
67 APT_PUBLIC std::vector<std::string>
const getLanguages(
bool const &All =
false,
68 bool const &Cached =
true,
char const **
const Locale = 0);
76 APT_PUBLIC
bool checkLanguage(std::string Lang,
bool const All =
false);
85 APT_PUBLIC std::vector<std::string>
const getArchitectures(
bool const &Cached =
true);
92 APT_PUBLIC
bool checkArchitecture(std::string
const &Arch);
97 std::string Extension;
99 std::vector<std::string> CompressArgs;
100 std::vector<std::string> UncompressArgs;
103 Compressor(
char const *name,
char const *extension,
char const *binary,
104 char const *compressArg,
char const *uncompressArg,
105 unsigned short const cost);
106 Compressor() : Cost(std::numeric_limits<unsigned short>::max()) {};
116 APT_PUBLIC std::vector<Compressor>
const getCompressors(
bool const Cached =
true);
119 APT_PUBLIC std::vector<std::string>
const getCompressorExtensions();
122 APT_PUBLIC std::vector<std::string>
const getBuildProfiles();
124 APT_PUBLIC std::string
const getBuildProfilesString();
126 std::string
const getMachineID();
128#ifdef APT_COMPILING_APT
130 APT_PUBLIC
bool isChroot();
132 APT_PUBLIC
bool checkUsrMerged();
133 APT_PUBLIC std::string color(std::string
const &colorName, std::string
const &content =
"");
Definition configuration.h:41
Representation of supported compressors.
Definition aptconfiguration.h:95