Go to the documentation of this file.
26 #ifndef __NMV_PROC_MGR_H__
27 #define __NMV_PROC_MGR_H__
29 #include <sys/types.h>
43 NEMIVER_BEGIN_NAMESPACE (
nemiver)
44 NEMIVER_BEGIN_NAMESPACE (
common)
76 Process (
unsigned int a_pid,
const list<UString> a_args) :
91 unsigned int pid ()
const {
return m_pid;}
92 void pid (
unsigned int a_pid) {m_pid = a_pid;}
94 unsigned int ppid ()
const {
return m_ppid;}
95 void ppid (
unsigned int a_ppid) {m_ppid = a_ppid;}
97 unsigned int uid ()
const {
return m_uid;}
98 void uid (
unsigned int a_uid) {m_uid = a_uid;}
100 unsigned int euid ()
const {
return m_euid;}
101 void euid (
unsigned int a_euid) {m_euid = a_euid;}
106 const list<UString>&
args ()
const {
return m_args;}
107 list<UString>&
args () {
return m_args;}
108 void args (
const list<UString> &a_in) {m_args = a_in;}
112 if (pid () == an_other.
pid ()
113 && ppid () == an_other.
ppid ()
114 && uid () == an_other.
uid ()
115 && euid () == an_other.
euid ()) {
124 virtual const list<Process>& get_all_process_list ()
const = 0;
125 virtual bool get_process_from_pid (pid_t a_pid,
126 Process &a_process)
const = 0;
127 virtual bool get_process_from_name
130 bool a_fuzzy_search=
false)
const = 0;
133 NEMIVER_END_NAMESPACE (
common)
134 NEMIVER_END_NAMESPACE (
nemiver)
136 #endif //__NMV_PROC_MGR_H__
void ppid(unsigned int a_ppid)
Definition: nmv-proc-mgr.h:95
list< UString > & args()
Definition: nmv-proc-mgr.h:107
Definition: nmv-object.h:43
virtual ~IProcMgr()
Definition: nmv-proc-mgr.h:122
Definition: nmv-address.h:31
Definition: nmv-safe-ptr-utils.h:45
Process(unsigned int a_pid)
Definition: nmv-proc-mgr.h:84
Definition: nmv-proc-mgr.h:59
#define NEMIVER_API
Definition: nmv-api-macros.h:53
Process(unsigned int a_pid, const list< UString > a_args)
Definition: nmv-proc-mgr.h:76
const UString & user_name() const
Definition: nmv-proc-mgr.h:103
const list< UString > & args() const
Definition: nmv-proc-mgr.h:106
unsigned int pid() const
Definition: nmv-proc-mgr.h:91
void euid(unsigned int a_euid)
Definition: nmv-proc-mgr.h:101
Definition: nmv-ustring.h:45
void uid(unsigned int a_uid)
Definition: nmv-proc-mgr.h:98
void args(const list< UString > &a_in)
Definition: nmv-proc-mgr.h:108
unsigned int euid() const
Definition: nmv-proc-mgr.h:100
Definition: nmv-proc-mgr.h:49
Process()
Definition: nmv-proc-mgr.h:69
void user_name(const UString &a_name)
Definition: nmv-proc-mgr.h:104
unsigned int uid() const
Definition: nmv-proc-mgr.h:97
IProcMgr()
Definition: nmv-proc-mgr.h:55
Definition: nmv-safe-ptr-utils.h:55
Definition: nmv-safe-ptr.h:71
unsigned int ppid() const
Definition: nmv-proc-mgr.h:94
void pid(unsigned int a_pid)
Definition: nmv-proc-mgr.h:92
Definition: nmv-proc-list-dialog.h:32