#include <GentooDistribution.h>
Inheritance diagram for hwdet::GentooDistribution:
Public Member Functions | |
GentooDistribution (MessageReporter *parent_reporter) | |
Create new Gentoo handler. | |
virtual | ~GentooDistribution (void) |
Free resources. | |
virtual float | GetFitness (void) |
Get fitness value for current distro. | |
virtual bool | DetectOS (XMLElement *root_node) |
Detect properties of the installed OS. | |
Private Attributes | |
float | fitness |
Fitness for current OS. | |
String | full_name |
Full name of the distro. | |
String | version |
FC version. |
hwdet::GentooDistribution::GentooDistribution | ( | MessageReporter * | parent_reporter | ) |
Create new Gentoo handler.
Initialize adapter for the Gentoo distribution. This also registers package manager for the Gentoo (equery).
parent_reporter | Message reporter which will receive all messages generated by this class. |
hwdet::GentooDistribution::~GentooDistribution | ( | void | ) | [virtual] |
Free resources.
bool hwdet::GentooDistribution::DetectOS | ( | XMLElement * | root_node | ) | [virtual] |
Detect properties of the installed OS.
root_node | Node which will receive details about the OS. |
Implements hwdet::Distribution.
float hwdet::GentooDistribution::GetFitness | ( | void | ) | [virtual] |
Get fitness value for current distro.
Implements hwdet::Distribution.
float hwdet::GentooDistribution::fitness [private] |
Fitness for current OS.
String hwdet::GentooDistribution::full_name [private] |
Full name of the distro.
String hwdet::GentooDistribution::version [private] |
FC version.