libzypp: zypp/VendorSupportOptions.cc Source File

libzypp 17.36.6

VendorSupportOptions.cc
Go to the documentation of this file.
1
2#include <zypp/VendorSupportOptions.h>
3#include <zypp/base/Gettext.h>
4
5namespace zypp
6{
7
8std::string
9asUserString( VendorSupportOption opt )
10{
11 switch (opt)
12 {
13 case VendorSupportUnknown:
14 return _("unknown");
15 break;
16 case VendorSupportUnsupported:
17 return _("unsupported");
18 break;
19 case VendorSupportLevel1:
20 return _("Level 1");
21 break;
22 case VendorSupportLevel2:
23 return _("Level 2");
24 break;
25 case VendorSupportLevel3:
26 return _("Level 3");
27 break;
28 case VendorSupportACC:
29 return _("Additional Customer Contract Necessary");
30 case VendorSupportSuperseded:
31 return _("Discontinued and superseded by a different package");
32 }
33 return _("invalid");
34}
35
36std::string asUserStringDescription( VendorSupportOption opt )
37{
38 switch (opt)
39 {
40 case VendorSupportUnknown:
41 return _("The level of support is unspecified");
42 break;
43 case VendorSupportUnsupported:
44 return _("The vendor does not provide support.");
45 break;
46 case VendorSupportLevel1:
47 return _("Problem determination, which means technical support designed to provide compatibility information, installation assistance, usage support, on-going maintenance and basic troubleshooting. Level 1 Support is not intended to correct product defect errors.");
48 break;
49 case VendorSupportLevel2:
50 return _("Problem isolation, which means technical support designed to duplicate customer problems, isolate problem area and provide resolution for problems not resolved by Level 1 Support.");
51 break;
52 case VendorSupportLevel3:
53 return _("Problem resolution, which means technical support designed to resolve complex problems by engaging engineering in resolution of product defects which have been identified by Level 2 Support.");
54 break;
55 case VendorSupportACC:
56 return _("An additional customer contract is necessary for getting support.");
57 case VendorSupportSuperseded:
58 return _("The package was discontinued and has been superseded by a new package with a different name.");
59 }
60 return _("Unknown support option. Description not available");
61}
62
63}
64
65
VendorSupportOptions.h
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition Application.cc:20
zypp::asUserStringDescription
std::string asUserStringDescription(VendorSupportOption opt)
converts the support option to a description intended to be printed to the user.
Definition VendorSupportOptions.cc:36
zypp::asUserString
std::string asUserString(VendorSupportOption opt)
converts the support option to a name intended to be printed to the user.
Definition VendorSupportOptions.cc:9
zypp::VendorSupportOption
VendorSupportOption
Definition VendorSupportOptions.h:22
zypp::VendorSupportACC
@ VendorSupportACC
Additional Customer Contract necessary.
Definition VendorSupportOptions.h:34
zypp::VendorSupportLevel3
@ VendorSupportLevel3
Problem resolution, which means technical support designed to resolve complex problems by engaging en...
Definition VendorSupportOptions.h:60
zypp::VendorSupportUnknown
@ VendorSupportUnknown
The support for this package is unknown.
Definition VendorSupportOptions.h:26
zypp::VendorSupportLevel1
@ VendorSupportLevel1
Problem determination, which means technical support designed to provide compatibility information,...
Definition VendorSupportOptions.h:44
zypp::VendorSupportSuperseded
@ VendorSupportSuperseded
The package was discontinued and has been superseded by a new package with a different name.
Definition VendorSupportOptions.h:74
zypp::VendorSupportUnsupported
@ VendorSupportUnsupported
The package is known to be unsupported by the vendor.
Definition VendorSupportOptions.h:30
zypp::VendorSupportLevel2
@ VendorSupportLevel2
Problem isolation, which means technical support designed to duplicate customer problems,...
Definition VendorSupportOptions.h:52
_
#define _(MSG)
Definition Gettext.h:39
Gettext.h
Interface to gettext.