1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
\r
2 // This file is part of the "Irrlicht Engine".
\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
5 #ifndef __C_OS_OPERATOR_H_INCLUDED__
\r
6 #define __C_OS_OPERATOR_H_INCLUDED__
\r
8 #include "IOSOperator.h"
\r
13 class CIrrDeviceLinux;
\r
15 //! The Operating system operator provides operation system specific methods and information.
\r
16 class COSOperator : public IOSOperator
\r
21 #if defined(_IRR_COMPILE_WITH_X11_DEVICE_)
\r
22 COSOperator(const core::stringc& osversion, CIrrDeviceLinux* device);
\r
24 COSOperator(const core::stringc& osversion);
\r
26 //! returns the current operation system version as string.
\r
27 virtual const core::stringc& getOperatingSystemVersion() const _IRR_OVERRIDE_;
\r
29 //! copies text to the clipboard
\r
30 virtual void copyToClipboard(const c8* text) const _IRR_OVERRIDE_;
\r
32 //! gets text from the clipboard
\r
33 //! \return Returns 0 if no string is in there.
\r
34 virtual const c8* getTextFromClipboard() const _IRR_OVERRIDE_;
\r
36 //! gets the total and available system RAM in kB
\r
37 //! \param Total: will contain the total system memory
\r
38 //! \param Avail: will contain the available memory
\r
39 //! \return Returns true if successful, false if not
\r
40 virtual bool getSystemMemory(u32* Total, u32* Avail) const _IRR_OVERRIDE_;
\r
44 core::stringc OperatingSystem;
\r
46 #if defined(_IRR_COMPILE_WITH_X11_DEVICE_)
\r
47 CIrrDeviceLinux * IrrDeviceLinux;
\r