]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/COSOperator.h
Remove various ancient support code
[irrlicht.git] / source / Irrlicht / COSOperator.h
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
4 \r
5 #ifndef __C_OS_OPERATOR_H_INCLUDED__\r
6 #define __C_OS_OPERATOR_H_INCLUDED__\r
7 \r
8 #include "IOSOperator.h"\r
9 \r
10 namespace irr\r
11 {\r
12 \r
13 class CIrrDeviceLinux;\r
14 \r
15 //! The Operating system operator provides operation system specific methods and information.\r
16 class COSOperator : public IOSOperator\r
17 {\r
18 public:\r
19 \r
20         // constructor\r
21 #if defined(_IRR_COMPILE_WITH_X11_DEVICE_)\r
22         COSOperator(const core::stringc& osversion, CIrrDeviceLinux* device);\r
23 #endif\r
24         COSOperator(const core::stringc& osversion);\r
25 \r
26         //! returns the current operation system version as string.\r
27         virtual const core::stringc& getOperatingSystemVersion() const _IRR_OVERRIDE_;\r
28 \r
29         //! copies text to the clipboard\r
30         virtual void copyToClipboard(const c8* text) const _IRR_OVERRIDE_;\r
31 \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
35 \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
41 \r
42 private:\r
43 \r
44         core::stringc OperatingSystem;\r
45 \r
46 #if defined(_IRR_COMPILE_WITH_X11_DEVICE_)\r
47         CIrrDeviceLinux * IrrDeviceLinux;\r
48 #endif\r
49 \r
50 };\r
51 \r
52 } // end namespace\r
53 \r
54 #endif\r
55 \r