2008-05-22 04:51:37 -07:00
|
|
|
// Copyright (C) 2002-2008 Nikolaus Gebhardt
|
2007-05-20 11:03:49 -07:00
|
|
|
// This file is part of the "Irrlicht Engine".
|
|
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
|
|
|
|
#ifndef __C_OS_OPERATOR_H_INCLUDED__
|
|
|
|
#define __C_OS_OPERATOR_H_INCLUDED__
|
|
|
|
|
|
|
|
#include "IOSOperator.h"
|
|
|
|
#include "irrString.h"
|
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
|
|
|
|
//! The Operating system operator provides operation system specific methods and informations.
|
|
|
|
class COSOperator : public IOSOperator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
// constructor
|
|
|
|
COSOperator(const c8* osversion);
|
|
|
|
|
|
|
|
//! returns the current operation system version as string.
|
2007-09-17 09:09:50 -07:00
|
|
|
virtual const wchar_t* getOperationSystemVersion() const;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! copies text to the clipboard
|
2007-09-17 09:09:50 -07:00
|
|
|
virtual void copyToClipboard(const c8* text) const;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! gets text from the clipboard
|
|
|
|
//! \return Returns 0 if no string is in there.
|
2007-09-17 09:09:50 -07:00
|
|
|
virtual c8* getTextFromClipboard() const;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! gets the processor speed in megahertz
|
|
|
|
//! \param Mhz:
|
|
|
|
//! \return Returns true if successful, false if not
|
2007-09-19 07:08:28 -07:00
|
|
|
virtual bool getProcessorSpeedMHz(u32* MHz) const;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
//! gets the total and available system RAM in kB
|
|
|
|
//! \param Total: will contain the total system memory
|
|
|
|
//! \param Avail: will contain the available memory
|
|
|
|
//! \return Returns true if successful, false if not
|
2007-09-19 07:08:28 -07:00
|
|
|
virtual bool getSystemMemory(u32* Total, u32* Avail) const;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
core::stringw OperatingSystem;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|