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 __I_OS_OPERATOR_H_INCLUDED__
|
|
|
|
#define __I_OS_OPERATOR_H_INCLUDED__
|
|
|
|
|
2007-09-06 23:11:47 -07:00
|
|
|
#include "IReferenceCounted.h"
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
|
|
|
|
//! The Operating system operator provides operation system specific methods and informations.
|
2007-09-06 23:11:47 -07:00
|
|
|
class IOSOperator : public virtual IReferenceCounted
|
2007-05-20 11:03:49 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2008-05-22 04:51:37 -07:00
|
|
|
//! Destructor
|
2007-05-20 11:03:49 -07:00
|
|
|
virtual ~IOSOperator() {}
|
|
|
|
|
2008-05-22 04:51:37 -07:00
|
|
|
//! Get the current operation system version as string.
|
2007-09-17 09:09:50 -07:00
|
|
|
virtual const wchar_t* getOperationSystemVersion() const = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
2008-05-22 04:51:37 -07:00
|
|
|
//! Copies text to the clipboard
|
2007-09-17 09:09:50 -07:00
|
|
|
virtual void copyToClipboard(const c8* text) const = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
2008-05-22 04:51:37 -07:00
|
|
|
//! Get text from the clipboard
|
|
|
|
/** \return Returns 0 if no string is in there. */
|
|
|
|
virtual c8* getTextFromClipboard() const = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
2008-05-22 04:51:37 -07:00
|
|
|
//! Get the processor speed in megahertz
|
|
|
|
/** \param MHz The integer variable to store the speed in.
|
|
|
|
\return True if successful, false if not */
|
2007-09-19 07:08:28 -07:00
|
|
|
virtual bool getProcessorSpeedMHz(u32* MHz) const = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
2008-05-22 04:51:37 -07:00
|
|
|
//! Get the total and available system RAM
|
|
|
|
/** \param Total: will contain the total system memory
|
|
|
|
\param Avail: will contain the available memory
|
|
|
|
\return True if successful, false if not */
|
2007-09-19 07:08:28 -07:00
|
|
|
virtual bool getSystemMemory(u32* Total, u32* Avail) const = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|