]> git.lizzy.rs Git - irrlicht.git/blob - include/IOSOperator.h
b195aed70b8afff63e35ae03cc93a6b9e9f339ca
[irrlicht.git] / include / IOSOperator.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 __I_OS_OPERATOR_H_INCLUDED__\r
6 #define __I_OS_OPERATOR_H_INCLUDED__\r
7 \r
8 #include "IReferenceCounted.h"\r
9 #include "irrString.h"\r
10 \r
11 namespace irr\r
12 {\r
13 \r
14 //! The Operating system operator provides operation system specific methods and information.\r
15 class IOSOperator : public virtual IReferenceCounted\r
16 {\r
17 public:\r
18         //! Get the current operation system version as string.\r
19         virtual const core::stringc& getOperatingSystemVersion() const = 0;\r
20 \r
21         //! Get the current operation system version as string.\r
22         /** \deprecated Use getOperatingSystemVersion instead. This method will be removed in Irrlicht 1.9. */\r
23         _IRR_DEPRECATED_ const wchar_t* getOperationSystemVersion() const\r
24         {\r
25                 return core::stringw(getOperatingSystemVersion()).c_str();\r
26         }\r
27 \r
28         //! Copies text to the clipboard\r
29         virtual void copyToClipboard(const c8* text) const = 0;\r
30 \r
31         //! Get text from the clipboard\r
32         /** \return Returns 0 if no string is in there. */\r
33         virtual const c8* getTextFromClipboard() const = 0;\r
34 \r
35         //! Get the total and available system RAM\r
36         /** \param totalBytes: will contain the total system memory in Kilobytes (1024 B)\r
37         \param availableBytes: will contain the available memory in Kilobytes (1024 B)\r
38         \return True if successful, false if not */\r
39         virtual bool getSystemMemory(u32* totalBytes, u32* availableBytes) const = 0;\r
40 \r
41 };\r
42 \r
43 } // end namespace\r
44 \r
45 #endif\r