• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • Konsole
  • NullProcessInfo
Public Member Functions | Protected Member Functions | List of all members
Konsole::NullProcessInfo Class Reference

#include <ProcessInfo.h>

Inheritance diagram for Konsole::NullProcessInfo:
Inheritance graph
[legend]

Public Member Functions

 NullProcessInfo (int pid, bool readEnvironment=false)
 
- Public Member Functions inherited from Konsole::ProcessInfo
virtual ~ProcessInfo ()
 
QVector< QString > arguments (bool *ok) const
 
QString currentDir (bool *ok) const
 
QMap< QString, QString > environment (bool *ok) const
 
Error error () const
 
int foregroundPid (bool *ok) const
 
QString format (const QString &text) const
 
bool isValid () const
 
QString name (bool *ok) const
 
int parentPid (bool *ok) const
 
int pid (bool *ok) const
 
void setUserHomeDir ()
 
void update ()
 
QString userHomeDir () const
 
int userId (bool *ok) const
 
QString userName () const
 
QString validCurrentDir () const
 

Protected Member Functions

virtual bool readProcessInfo (int pid, bool readEnvironment)
 
virtual void readUserName (void)
 
- Protected Member Functions inherited from Konsole::ProcessInfo
 ProcessInfo (int pid, bool readEnvironment=false)
 
void addArgument (const QString &argument)
 
void addEnvironmentBinding (const QString &name, const QString &value)
 
void clearArguments ()
 
void setCurrentDir (const QString &dir)
 
void setError (Error error)
 
void setFileError (QFile::FileError error)
 
void setForegroundPid (int pid)
 
void setName (const QString &name)
 
void setParentPid (int pid)
 
void setPid (int pid)
 
void setUserId (int uid)
 
void setUserName (const QString &name)
 

Additional Inherited Members

- Public Types inherited from Konsole::ProcessInfo
enum  Error { NoError, UnknownError, PermissionsError }
 
- Static Public Member Functions inherited from Konsole::ProcessInfo
static QString localHost ()
 
static ProcessInfo * newInstance (int pid, bool readEnvironment=false)
 

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 336 of file ProcessInfo.h.

Constructor & Destructor Documentation

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

Constructs a new NullProcessInfo instance.

See ProcessInfo::newInstance()

Definition at line 352 of file ProcessInfo.cpp.

Member Function Documentation

bool NullProcessInfo::readProcessInfo ( int  pid,
bool  readEnvironment 
)
protectedvirtual

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
pidThe process id of the process to read
readEnvironmentSpecifies whether the environment bindings for the process should be read

Implements Konsole::ProcessInfo.

Definition at line 357 of file ProcessInfo.cpp.

void NullProcessInfo::readUserName ( void  )
protectedvirtual

Implements Konsole::ProcessInfo.

Definition at line 362 of file ProcessInfo.cpp.


The documentation for this class was generated from the following files:
  • ProcessInfo.h
  • ProcessInfo.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal