class PsiProcess

A class, describing a Process on the Psion. More...

Definition#include <lib/psiprocess.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

A class, describing a Process on the Psion. Objects of this type are used by rpcs::queryPrograms for returning the currently running processes.

 PsiProcess ()

Default constructor

 PsiProcess (const PsiProcess &p)

A copy constructor. Mainly used by STL container classes.

Parameters:
dThe object to be used as initializer.

 PsiProcess (const int, const char * const, const char * const, bool)

Initializing Constructor

PsiProcess ()

Default destructor.

int  getPID ()

Retrieves the PID of a process.

Returns: The PID of this instance.

const char * getName ()

Retrieve the file name of a process.

Returns: The name of this instance.

const char * getArgs ()

Retrieve the file name of a process.

Returns: The arguments of this instance.

const char * getProcId ()

Retrieve the file name and PID of a process.

Returns: The name and PID this instance in the format name.$pid .

PsiProcessoperator= (const PsiProcess &p)

Assignment operator Mainly used by STL container classes.

Parameters:
eThe new value to assign.

Returns: The modified object.

friend class std::ostream & operator<< (std::ostream &o, const PsiProcess &p)

Prints the object contents. The output is in human readable similar to the output of a "ls" command.