haiku/src/preferences/virtualmemory/Settings.h
Ryan Leavengood bdb262352e Fix style violations and a few other issues that were pointed out. Thanks!
Also moved private methods to the bottom of source files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 15:46:45 +00:00

55 lines
1.1 KiB
C++

/*
* Copyright 2005, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#ifndef SETTINGS_H
#define SETTINGS_H
#include <Point.h>
#include <Volume.h>
class Settings {
public :
Settings();
virtual ~Settings();
BPoint WindowPosition() const { return fWindowPosition; }
void SetWindowPosition(BPoint position);
bool SwapEnabled() const { return fSwapEnabled; }
off_t SwapSize() const { return fSwapSize; }
BVolume& SwapVolume() { return fSwapVolume; }
void SetSwapEnabled(bool enabled);
void SetSwapSize(off_t size);
void SetSwapVolume(BVolume& volume);
void RevertSwapChanges();
bool IsRevertible();
private:
void _ReadWindowSettings();
void _WriteWindowSettings();
void _ReadSwapSettings();
void _WriteSwapSettings();
void _SetSwapNull();
BPoint fWindowPosition;
bool fSwapEnabled;
off_t fSwapSize;
BVolume fSwapVolume;
bool fInitialSwapEnabled;
off_t fInitialSwapSize;
dev_t fInitialSwapVolume;
bool fPositionUpdated;
const char* fBadVolName;
};
#endif /* SETTINGS_H */