hwdet::GentooFindPackager Class Reference

Fake packager adapter for Gentoo. More...

#include <GentooFindPackager.h>

Inheritance diagram for hwdet::GentooFindPackager:

hwdet::Packager hwdet::MessageReporter

Public Member Functions

 GentooFindPackager (MessageReporter *parent_reporter)
 Create new packager.
virtual ~GentooFindPackager (void)
 Free used resources.
virtual bool IsSupported (void)
 Is packager supported?
virtual bool DetectSoftware (XMLElement *products)
 Query data from package manager.

Private Attributes

bool is_supported
 Is packager supported?

Data Structures

class  FindExec
 Exec find command and parse its output. More...

Detailed Description

Fake packager adapter for Gentoo.

This class executes find and searches for all files in the portage database. Database is assumed to be in /var/db/pkg directory.


Constructor & Destructor Documentation

hwdet::GentooFindPackager::GentooFindPackager ( MessageReporter parent_reporter  ) 

Create new packager.

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

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

Free used resources.


Member Function Documentation

bool hwdet::GentooFindPackager::DetectSoftware ( XMLElement products  )  [virtual]

Query data from package manager.

This will find all files in the emerge database.

Parameters:
products XML node which will receive parsed data.
Returns:
true on success, false otherwise.

Implements hwdet::Packager.

bool hwdet::GentooFindPackager::IsSupported ( void   )  [virtual]

Is packager supported?

Test if find is supported on the system (this should always be true, since find is pretty basic command).

Returns:
true if find is supported, false otherwise.

Implements hwdet::Packager.


Field Documentation

bool hwdet::GentooFindPackager::is_supported [private]

Is packager supported?


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