bdb262352e
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
55 lines
1.1 KiB
C++
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 */
|