SkyGI::Process Class Reference

Inheritance diagram for SkyGI::Process:
[legend]
Collaboration diagram for SkyGI::Process:
[legend]
List of all members.

Public Member Functions

 Process ()
 Process (int iPid)
 Process (Process *pProcess)
 ~Process ()
bool IsValid ()
bool SetTo (int iPid)
bool Refresh ()
String GetName ()
String GetUser ()
String GetState ()
String GetTime ()
int GetPid ()
int GetPgid ()
int GetPriority ()
int GetDynamicPriority ()
int GetHeapPages ()
int GetStackPages ()
unsigned long long GetTicks ()
bool Kill ()
int Execute (const String &szExecutable, const ProcessArguments &pArguments, bool bAskOnNoHandler=true, bool bAsk=false)
void ExecuteWithinApplicationDirectory (bool bSet)
bool IsCritical ()
unsigned int GetFlags ()
void SetCritical (bool bCritical)
bool GetApplicationPath (String &szPath)
bool GetApplicationDirectory (String &szDirectory)
int WaitFor ()
int WaitFor (int &iExitCode)

Constructor & Destructor Documentation

Process::Process (  ) 

Process::Process ( int  iPid  ) 

Process::Process ( Process pProcess  ) 

Process::~Process (  ) 


Member Function Documentation

bool Process::IsValid (  ) 

bool Process::SetTo ( int  iPid  ) 

bool Process::Refresh (  ) 

String SkyGI::Process::GetName (  )  [inline]

String SkyGI::Process::GetUser (  )  [inline]

String SkyGI::Process::GetState (  )  [inline]

String SkyGI::Process::GetTime (  )  [inline]

int SkyGI::Process::GetPid (  )  [inline]

int SkyGI::Process::GetPgid (  )  [inline]

int SkyGI::Process::GetPriority (  )  [inline]

int SkyGI::Process::GetDynamicPriority (  )  [inline]

int SkyGI::Process::GetHeapPages (  )  [inline]

int SkyGI::Process::GetStackPages (  )  [inline]

unsigned long long SkyGI::Process::GetTicks (  )  [inline]

bool Process::Kill (  ) 

int Process::Execute ( const String szExecutable,
const ProcessArguments pArguments,
bool  bAskOnNoHandler = true,
bool  bAsk = false 
)

Execute a new process using specified path and arguments

Description:
If szExecutable points to an executable it will be executed with specified arguments. If szExecutable is not an executable following happens:
  • szExecutable is a directory
    The application registerd for the .FOLDER extension will be executed. szExecutable gets passed as first argument, pArguments follow
  • szExecutable is a DesktopLink
    The application the DesktopLink points to will be executed. DesktopLink specified arguments are passed first, pArguments follow
  • Registered application for mimetype
    The application registered for szExecutables mimetype will be executed. pArguments are passed to the new executable
  • Registered application for extension
    The application registered for szExecutables extension will be executed. pArguments are passed to the new executable
  • Ask user
    If bAsk is true a dialog will appear which allows the user to select the application. pArguments are passed to the new executable

void Process::ExecuteWithinApplicationDirectory ( bool  bSet  ) 

bool Process::IsCritical (  ) 

unsigned int SkyGI::Process::GetFlags (  )  [inline]

void Process::SetCritical ( bool  bCritical  ) 

bool Process::GetApplicationPath ( String szPath  ) 

bool Process::GetApplicationDirectory ( String szDirectory  ) 

int Process::WaitFor (  ) 

int Process::WaitFor ( int &  iExitCode  ) 


Generated on Thu Dec 13 18:14:09 2007 for SkyGI by  doxygen 1.5.1-p1