• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

Konsole::NullProcessInfo

Konsole::NullProcessInfo Class Reference

#include <ProcessInfo.h>

Inheritance diagram for Konsole::NullProcessInfo:

Inheritance graph
[legend]

List of all members.


Detailed Description

Implementation of ProcessInfo which does nothing.

Used on platforms where a suitable ProcessInfo subclass is not available.

isValid() will always return false for instances of NullProcessInfo

Definition at line 310 of file ProcessInfo.h.


Public Member Functions

 NullProcessInfo (int pid, bool readEnvironment=false)

Protected Member Functions

virtual bool readProcessInfo (int pid, bool readEnvironment)

Constructor & Destructor Documentation

NullProcessInfo::NullProcessInfo ( int  pid,
bool  readEnvironment = false 
) [explicit]

Constructs a new NullProcessInfo instance.

See ProcessInfo::newInstance()

Definition at line 279 of file ProcessInfo.cpp.


Member Function Documentation

bool NullProcessInfo::readProcessInfo ( int  pid,
bool  readEnvironment 
) [protected, virtual]

This is called on construction to read the process state Subclasses should reimplement this function to provide platform-specific process state reading functionality.

When called, readProcessInfo() should attempt to read all of the necessary state information. If the attempt is successful, it should set the process id using setPid(), and update the other relevant information using setParentPid(), setName(), setArguments() etc.

Calls to isValid() will return true only if the process id has been set using setPid()

Parameters:
pid The process id of the process to read
readEnvironment Specifies whether the environment bindings for the process should be read

Implements Konsole::ProcessInfo.

Definition at line 284 of file ProcessInfo.cpp.


The documentation for this class was generated from the following files:
  • ProcessInfo.h
  • ProcessInfo.cpp

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal