124 lines
2.2 KiB
C++
124 lines
2.2 KiB
C++
#ifndef _REMOTEPSAPP_PROCESSITEM_HPP_
|
|
#define _REMOTEPSAPP_PROCESSITEM_HPP_
|
|
#ifndef _COMMON_STRING_HPP_
|
|
#include <common/string.hpp>
|
|
#endif
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
#ifndef _COMMON_SYSTEMTIME_HPP_
|
|
#include <common/systime.hpp>
|
|
#endif
|
|
|
|
typedef Block<String> ModuleList;
|
|
|
|
class ProcessItem : public ModuleList
|
|
{
|
|
public:
|
|
ProcessItem(void);
|
|
virtual ~ProcessItem();
|
|
const String &processName(void)const;
|
|
void processName(const String &processName);
|
|
DWORD processID(void)const;
|
|
void processID(DWORD processID);
|
|
const SystemTime &creationTime(void)const;
|
|
void creationTime(const SystemTime &creationTime);
|
|
const SystemTime &exitTime(void)const;
|
|
void exitTime(const SystemTime &exitTime);
|
|
const SystemTime &kernelTime(void)const;
|
|
void kernelTime(const SystemTime &kernelTime);
|
|
const SystemTime &userTime(void)const;
|
|
void userTime(const SystemTime &userTime);
|
|
private:
|
|
String mProcessName;
|
|
SystemTime mCreationTime;
|
|
SystemTime mExitTime;
|
|
SystemTime mKernelTime;
|
|
SystemTime mUserTime;
|
|
DWORD mProcessID;
|
|
};
|
|
|
|
inline
|
|
ProcessItem::ProcessItem(void)
|
|
: mProcessID(0)
|
|
{
|
|
}
|
|
|
|
inline
|
|
ProcessItem::~ProcessItem()
|
|
{
|
|
}
|
|
|
|
inline
|
|
const String &ProcessItem::processName(void)const
|
|
{
|
|
return mProcessName;
|
|
}
|
|
|
|
inline
|
|
void ProcessItem::processName(const String &processName)
|
|
{
|
|
mProcessName=processName;
|
|
}
|
|
|
|
inline
|
|
DWORD ProcessItem::processID(void)const
|
|
{
|
|
return mProcessID;
|
|
}
|
|
|
|
inline
|
|
void ProcessItem::processID(DWORD processID)
|
|
{
|
|
mProcessID=processID;
|
|
}
|
|
|
|
inline
|
|
const SystemTime &ProcessItem::creationTime(void)const
|
|
{
|
|
return mCreationTime;
|
|
}
|
|
|
|
inline
|
|
void ProcessItem::creationTime(const SystemTime &creationTime)
|
|
{
|
|
mCreationTime=creationTime;
|
|
}
|
|
|
|
inline
|
|
const SystemTime &ProcessItem::exitTime(void)const
|
|
{
|
|
return mExitTime;
|
|
}
|
|
|
|
inline
|
|
void ProcessItem::exitTime(const SystemTime &exitTime)
|
|
{
|
|
mExitTime=exitTime;
|
|
}
|
|
|
|
inline
|
|
const SystemTime &ProcessItem::kernelTime(void)const
|
|
{
|
|
return mKernelTime;
|
|
}
|
|
|
|
inline
|
|
void ProcessItem::kernelTime(const SystemTime &kernelTime)
|
|
{
|
|
mKernelTime=kernelTime;
|
|
}
|
|
|
|
inline
|
|
const SystemTime &ProcessItem::userTime(void)const
|
|
{
|
|
return mUserTime;
|
|
}
|
|
|
|
inline
|
|
void ProcessItem::userTime(const SystemTime &userTime)
|
|
{
|
|
mUserTime=userTime;
|
|
}
|
|
#endif
|