hwdet::FedoraCoreDistribution Class Reference

Custom handler for Fedora Core distros. More...

#include <FedoraCoreDistribution.h>

Inheritance diagram for hwdet::FedoraCoreDistribution:

hwdet::Distribution hwdet::MessageReporter

Public Member Functions

 FedoraCoreDistribution (MessageReporter *parent_reporter)
 Construct new distro handler.
virtual ~FedoraCoreDistribution (void)
 Free used 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

Custom handler for Fedora Core distros.


Constructor & Destructor Documentation

hwdet::FedoraCoreDistribution::FedoraCoreDistribution ( MessageReporter parent_reporter  ) 

Construct new distro handler.

This will also register all packagers available for Fedora. Currently only RPM handler is available. Distribution name is set to value of the DISTRIBUTION_NAME.

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

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

Free used resources.


Member Function Documentation

bool hwdet::FedoraCoreDistribution::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::FedoraCoreDistribution::GetFitness ( void   )  [virtual]

Get fitness value for current distro.

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

Implements hwdet::Distribution.


Field Documentation

float hwdet::FedoraCoreDistribution::fitness [private]

Fitness for current OS.

String hwdet::FedoraCoreDistribution::full_name [private]

Full name of the distro.

String hwdet::FedoraCoreDistribution::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