2013-03-28 10:04:07 -07:00
|
|
|
// Copyright (C) 2002-2012 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
|
|
|
|
|
2021-08-30 14:06:51 -07:00
|
|
|
#ifndef IRR_I_OS_OPERATOR_H_INCLUDED
|
|
|
|
#define IRR_I_OS_OPERATOR_H_INCLUDED
|
2007-05-20 11:03:49 -07:00
|
|
|
|
2007-09-06 23:11:47 -07:00
|
|
|
#include "IReferenceCounted.h"
|
2011-06-09 00:08:47 -07:00
|
|
|
#include "irrString.h"
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
namespace irr
|
|
|
|
{
|
|
|
|
|
2017-03-13 07:54:20 -07:00
|
|
|
//! The Operating system operator provides operation system specific methods and information.
|
2007-09-06 23:11:47 -07:00
|
|
|
class IOSOperator : public virtual IReferenceCounted
|
2007-05-20 11:03:49 -07:00
|
|
|
{
|
|
|
|
public:
|
2011-06-09 00:08:47 -07:00
|
|
|
//! Get the current operation system version as string.
|
|
|
|
virtual const core::stringc& getOperatingSystemVersion() const = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
2008-05-22 04:51:37 -07:00
|
|
|
//! Get the current operation system version as string.
|
2011-06-09 00:08:47 -07:00
|
|
|
/** \deprecated Use getOperatingSystemVersion instead. This method will be removed in Irrlicht 1.9. */
|
2021-08-30 14:06:51 -07:00
|
|
|
IRR_DEPRECATED const wchar_t* getOperationSystemVersion() const
|
2011-06-09 00:08:47 -07:00
|
|
|
{
|
|
|
|
return core::stringw(getOperatingSystemVersion()).c_str();
|
|
|
|
}
|
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. */
|
2009-07-03 02:11:53 -07:00
|
|
|
virtual const 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
|
2022-05-04 14:38:12 -07:00
|
|
|
/** \param totalBytes: will contain the total system memory in Kilobytes (1024 B)
|
|
|
|
\param availableBytes: will contain the available memory in Kilobytes (1024 B)
|
2008-05-22 04:51:37 -07:00
|
|
|
\return True if successful, false if not */
|
2017-04-12 08:33:31 -07:00
|
|
|
virtual bool getSystemMemory(u32* totalBytes, u32* availableBytes) const = 0;
|
2007-05-20 11:03:49 -07:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // end namespace
|
|
|
|
|
|
|
|
#endif
|