hwdet::GentooDistribution Class Reference

Handler for the Gentoo distro. More...

#include <GentooDistribution.h>

Inheritance diagram for hwdet::GentooDistribution:

hwdet::Distribution hwdet::MessageReporter

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.

Detailed Description

Handler for the Gentoo distro.


Constructor & Destructor Documentation

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).

Parameters:
parent_reporter Message reporter which will receive all messages generated by this class.

hwdet::GentooDistribution::~GentooDistribution ( void   )  [virtual]

Free resources.


Member Function Documentation

bool hwdet::GentooDistribution::DetectOS ( XMLElement root_node  )  [virtual]

Detect properties of the installed OS.

Parameters:
root_node Node which will receive details about the OS.
Returns:
true on success, false otherwise.

Implements hwdet::Distribution.

float hwdet::GentooDistribution::GetFitness ( void   )  [virtual]

Get fitness value for current distro.

Returns:
This will return 1.0f if we are running on Gentoo, otherwise it will return 0.0f.
See also:
Distribution::GetFitness(void)

Implements hwdet::Distribution.


Field Documentation

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.


The documentation for this class was generated from the following files:
Generated on Tue Dec 19 17:43:51 2006 for Detector for Linux by  doxygen 1.4.7