diff options
Diffstat (limited to 'libraries/irrlicht-1.8.1/source/Irrlicht/COSOperator.h')
-rw-r--r-- | libraries/irrlicht-1.8.1/source/Irrlicht/COSOperator.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8.1/source/Irrlicht/COSOperator.h b/libraries/irrlicht-1.8.1/source/Irrlicht/COSOperator.h new file mode 100644 index 0000000..819805f --- /dev/null +++ b/libraries/irrlicht-1.8.1/source/Irrlicht/COSOperator.h | |||
@@ -0,0 +1,60 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | ||
2 | // This file is part of the "Irrlicht Engine". | ||
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | ||
4 | |||
5 | #ifndef __C_OS_OPERATOR_H_INCLUDED__ | ||
6 | #define __C_OS_OPERATOR_H_INCLUDED__ | ||
7 | |||
8 | #include "IOSOperator.h" | ||
9 | |||
10 | namespace irr | ||
11 | { | ||
12 | |||
13 | class CIrrDeviceLinux; | ||
14 | |||
15 | //! The Operating system operator provides operation system specific methods and informations. | ||
16 | class COSOperator : public IOSOperator | ||
17 | { | ||
18 | public: | ||
19 | |||
20 | // constructor | ||
21 | #if defined(_IRR_COMPILE_WITH_X11_DEVICE_) | ||
22 | COSOperator(const core::stringc& osversion, CIrrDeviceLinux* device); | ||
23 | #endif | ||
24 | COSOperator(const core::stringc& osversion); | ||
25 | |||
26 | //! returns the current operation system version as string. | ||
27 | virtual const core::stringc& getOperatingSystemVersion() const; | ||
28 | |||
29 | //! copies text to the clipboard | ||
30 | virtual void copyToClipboard(const c8* text) const; | ||
31 | |||
32 | //! gets text from the clipboard | ||
33 | //! \return Returns 0 if no string is in there. | ||
34 | virtual const c8* getTextFromClipboard() const; | ||
35 | |||
36 | //! gets the processor speed in megahertz | ||
37 | //! \param Mhz: | ||
38 | //! \return Returns true if successful, false if not | ||
39 | virtual bool getProcessorSpeedMHz(u32* MHz) const; | ||
40 | |||
41 | //! gets the total and available system RAM in kB | ||
42 | //! \param Total: will contain the total system memory | ||
43 | //! \param Avail: will contain the available memory | ||
44 | //! \return Returns true if successful, false if not | ||
45 | virtual bool getSystemMemory(u32* Total, u32* Avail) const; | ||
46 | |||
47 | private: | ||
48 | |||
49 | core::stringc OperatingSystem; | ||
50 | |||
51 | #if defined(_IRR_COMPILE_WITH_X11_DEVICE_) | ||
52 | CIrrDeviceLinux * IrrDeviceLinux; | ||
53 | #endif | ||
54 | |||
55 | }; | ||
56 | |||
57 | } // end namespace | ||
58 | |||
59 | #endif | ||
60 | |||