xref: /haiku/src/preferences/virtualmemory/VirtualMemory.h (revision f877fb742fc9de4bf202111901bc686c94f9ba6d)
1*f877fb74SAxel Dörfler /*
2*f877fb74SAxel Dörfler  * Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3*f877fb74SAxel Dörfler  * Distributed under the terms of the MIT License.
4*f877fb74SAxel Dörfler  */
5*f877fb74SAxel Dörfler #ifndef VIRTUAL_MEMORY_H
6*f877fb74SAxel Dörfler #define VIRTUAL_MEMORY_H
7*f877fb74SAxel Dörfler 
8*f877fb74SAxel Dörfler 
9*f877fb74SAxel Dörfler #include <Application.h>
10*f877fb74SAxel Dörfler 
11*f877fb74SAxel Dörfler class VMSettings;
12*f877fb74SAxel Dörfler 
13*f877fb74SAxel Dörfler 
14*f877fb74SAxel Dörfler class VirtualMemory : public BApplication {
15*f877fb74SAxel Dörfler 	public:
16*f877fb74SAxel Dörfler 		VirtualMemory();
17*f877fb74SAxel Dörfler 		virtual ~VirtualMemory();
18*f877fb74SAxel Dörfler 
19*f877fb74SAxel Dörfler 		virtual void ReadyToRun();
20*f877fb74SAxel Dörfler 		virtual void AboutRequested();
21*f877fb74SAxel Dörfler 
22*f877fb74SAxel Dörfler 	private:
23*f877fb74SAxel Dörfler 		void GetCurrentSettings(bool& enabled, off_t& size);
24*f877fb74SAxel Dörfler 
25*f877fb74SAxel Dörfler 		VMSettings *fSettings;
26*f877fb74SAxel Dörfler };
27*f877fb74SAxel Dörfler 
28*f877fb74SAxel Dörfler #endif	/* VIRTUAL_MEMORY_H */
29