1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00
transmission/beos/libPrefs/Prefs.h
2006-07-16 19:39:23 +00:00

33 lines
973 B
C++

#ifndef LIBPREFS
#define LIBPREFS
#include <Message.h>
#include <File.h>
#include <FindDirectory.h>
#include <Path.h>
class Prefs: public BMessage {
public:
Prefs(const char *fileName);
~Prefs();
inline status_t InitCheck(void) { return status; };
void Save();
status_t SetBool(const char *name, bool b);
status_t SetInt8(const char *name, int8 i);
status_t SetInt16(const char *name, int16 i);
status_t SetInt32(const char *name, int32 i);
status_t SetInt64(const char *name, int64 i);
status_t SetFloat(const char *name, float f);
status_t SetDouble(const char *name, double d);
status_t SetString(const char *name, const char *string);
status_t SetPoint(const char *name, BPoint p);
status_t SetRect(const char *name, BRect r);
status_t SetMessage(const char *name, const BMessage *message);
status_t SetFlat(const char *name, const BFlattenable *obj);
private:
BPath path;
status_t status;
};
#endif