~ubuntu-branches/ubuntu/natty/kdebase-workspace/natty-proposed

« back to all changes in this revision

Viewing changes to libs/ksysguard/processcore/processes.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2011-04-03 16:54:55 UTC
  • mfrom: (1.1.55 upstream)
  • Revision ID: james.westby@ubuntu.com-20110403165455-8tnwxt82p21p15hh
Tags: 4:4.6.2a-0ubuntu1
* New upstream release
  - Update kde-sc-dev-latest version
  - Update kdebase-workspace-wallpapers.install,
    kde-window-manager.install and not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        };
70
70
        Q_DECLARE_FLAGS(UpdateFlags, UpdateFlag)
71
71
 
 
72
        enum Error {
 
73
            Unknown = 0,
 
74
            InvalidPid,
 
75
            InvalidParameter,
 
76
            InsufficientPermissions,
 
77
            ProcessDoesNotExistOrZombie,
 
78
            NotSupported,
 
79
        };
 
80
 
72
81
        /**
73
82
         *  Update all the process information.  After calling this, /proc or equivalent is scanned and
74
83
         *  the signals processChanged, etc  are emitted.
88
97
        Process *getProcess(long pid) const;
89
98
 
90
99
        /**
 
100
         *  Get the error code for the last command that failed.
 
101
         */
 
102
        Error lastError() const;
 
103
 
 
104
        /**
91
105
         *  Kill the specified process.  You may not have the privilege to kill the process.
92
106
         *  The process may also chose to ignore the command.  Send the SIGKILL signal to kill
93
107
         *  the process immediately.  You may lose any unsaved data.