Inheritance diagram for hwdet::RPMPackager::RPMExec:
Public Member Functions | |
RPMExec (MessageReporter *parent_reporter, XMLElement *output) | |
Constructor. | |
virtual | ~RPMExec (void) |
Destructor. | |
virtual void | ParentProcess (pid_t child_pid, FILE *file) |
Parent process (parse data from RPM). | |
virtual void | ChildProcess (void) |
Child process (exec RPM). | |
Private Attributes | |
XMLElement * | output_node |
Products node which will receive data. |
hwdet::RPMPackager::RPMExec::RPMExec | ( | MessageReporter * | parent_reporter, | |
XMLElement * | output | |||
) |
Constructor.
hwdet::RPMPackager::RPMExec::~RPMExec | ( | void | ) | [virtual] |
Destructor.
void hwdet::RPMPackager::RPMExec::ChildProcess | ( | void | ) | [virtual] |
Child process (exec RPM).
This will execute RPM with command-line options set so that only list of all installed packages is produced.
Implements hwdet::ForkAndPipe.
void hwdet::RPMPackager::RPMExec::ParentProcess | ( | pid_t | child_pid, | |
FILE * | file | |||
) | [virtual] |
Parent process (parse data from RPM).
Reads all data generated by the child process.
child_pid | PID of the child process. | |
file | File created from the output decriptor of the pipe. |
Implements hwdet::ForkAndPipe.
Products node which will receive data.