apt 3.0.3
commandline package manager
aptconfiguration.h
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
10 /*}}}*/
11#ifndef APT_CONFIGURATION_H
12#define APT_CONFIGURATION_H
13// Include Files /*{{{*/
14#include <apt-pkg/macros.h>
15#include <limits>
16#include <string>
17#include <vector>
18 /*}}}*/
19namespace APT {
20namespace Configuration { /*{{{*/
42 APT_PUBLIC std::vector<std::string> const getCompressionTypes(bool const &Cached = true);
43
67 APT_PUBLIC std::vector<std::string> const getLanguages(bool const &All = false,
68 bool const &Cached = true, char const ** const Locale = 0);
69
76 APT_PUBLIC bool checkLanguage(std::string Lang, bool const All = false);
77
85 APT_PUBLIC std::vector<std::string> const getArchitectures(bool const &Cached = true);
86
92 APT_PUBLIC bool checkArchitecture(std::string const &Arch);
93
95 struct APT_PUBLIC Compressor {
96 std::string Name;
97 std::string Extension;
98 std::string Binary;
99 std::vector<std::string> CompressArgs;
100 std::vector<std::string> UncompressArgs;
101 unsigned short Cost;
102
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()) {};
107 };
108
116 APT_PUBLIC std::vector<Compressor> const getCompressors(bool const Cached = true);
117
119 APT_PUBLIC std::vector<std::string> const getCompressorExtensions();
120
122 APT_PUBLIC std::vector<std::string> const getBuildProfiles();
124 APT_PUBLIC std::string const getBuildProfilesString();
125
126 std::string const getMachineID();
127
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 = "");
134#endif
135
136 /*}}}*/
137}
138 /*}}}*/
139}
140#endif
Definition configuration.h:41
Representation of supported compressors.
Definition aptconfiguration.h:95