webappmanager
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProcessBase Class Reference

#include <ProcessBase.h>

Inheritance diagram for ProcessBase:
[legend]

Public Member Functions

 ProcessBase ()
 
virtual ~ProcessBase ()
 
virtual void setProcessId (const QString &inId)
 
const QString & processId () const
 
virtual void setAppId (const QString &inId)
 
const QString & appId () const
 
void setLaunchingAppId (const QString &id)
 
const QString & launchingAppId () const
 
void setLaunchingProcessId (const QString &id)
 
const QString & launchingProcessId () const
 

Detailed Description

Holds information about a process launched by LunaSysMgr

This is very close to being just a structure. There is no additional functionality in this class other than the storage and retrieval of information about a process.

Constructor & Destructor Documentation

ProcessBase::ProcessBase ( )
inline

Construct a ProcessBase

Make sure you explicitly set all relevant information about this process. This constructor does not zero it out.

Todo:
Initialize variables to prevent invalid values and reading of previously-stored-to memory.
virtual ProcessBase::~ProcessBase ( )
inlinevirtual

Clean up

Doesn't do anything - just defined here so it is declared as virtual so the correct destructor is called for derived classes.

Member Function Documentation

const QString& ProcessBase::appId ( ) const
inline

Get the previously-stored app ID for the process associated with this instance

Just retrieves it - has no intelligence to pull the app ID from anywhere.

Note
Make sure you've previously stored an app ID before attempting to retrieve it.
Returns
Previously-stored app ID.
const QString& ProcessBase::launchingAppId ( ) const
inline

Get the previously-stored app ID of the parent process for the process associated with this instance

Just retrieves it - has no intelligence to pull the app ID from anywhere.

Note
Make sure you've previously stored an app ID before attempting to retrieve it.
Returns
Previously-stored app ID.
const QString& ProcessBase::launchingProcessId ( ) const
inline

Get the previously-stored Process ID for the process that launched the one associated with this instance

Just retrieves it - has no intelligence to pull the process ID from anywhere.

Note
Make sure you've previously stored an process ID before attempting to retrieve it.
Returns
Previously-stored process ID.
const QString& ProcessBase::processId ( ) const
inline

Get the previously-stored Process ID for the process associated with this instance

Just retrieves it - has no intelligence to pull the process ID from anywhere.

Note
Make sure you've previously stored an process ID before attempting to retrieve it.
Returns
Previously-stored process ID.
virtual void ProcessBase::setAppId ( const QString &  inId)
inlinevirtual

Set the app ID for the process associated with this instance

Just stores it - doesn't change anything else.

Parameters
inIdNew app ID to store.
void ProcessBase::setLaunchingAppId ( const QString &  id)
inline

Set the app ID for the process that launched the one associated with this instance

Just stores it - doesn't change anything else.

Parameters
inIdNew app ID to store.
void ProcessBase::setLaunchingProcessId ( const QString &  id)
inline

Set the Process ID for the process which launched the one associated with this instance

Just stores it - doesn't change anything else.

Parameters
inIdNew process ID to store.
virtual void ProcessBase::setProcessId ( const QString &  inId)
inlinevirtual

Set the Process ID for the process associated with this instance

Just stores it - doesn't change anything else.

Parameters
inIdNew process ID to store.

The documentation for this class was generated from the following file: