2 * Copyright 2003-2011 Haiku Inc. All rights reserved.
3 * Distributed under the terms of the MIT License.
6 * Michael Pfeiffer, laplace@haiku-os.org
8 #ifndef SHOW_IMAGE_SETTINGS_H
9 #define SHOW_IMAGE_SETTINGS_H
19 class ShowImageSettings
{
22 virtual ~ShowImageSettings();
27 bool GetBool(const char* name
, bool defaultValue
);
28 int32
GetInt32(const char* name
, int32 defaultValue
);
29 float GetFloat(const char* name
, float defaultValue
);
30 BRect
GetRect(const char* name
, BRect defaultValue
);
31 bigtime_t
GetTime(const char* name
,
32 bigtime_t defaultValue
);
33 const char* GetString(const char* name
,
34 const char* defaultValue
);
36 void SetBool(const char* name
, bool value
);
37 void SetInt32(const char* name
, int32 value
);
38 void SetFloat(const char* name
, float value
);
39 void SetRect(const char* name
, BRect value
);
40 void SetTime(const char* name
, bigtime_t value
);
41 void SetString(const char* name
, const char* value
);
44 bool _OpenSettingsFile(BFile
* file
, bool forReading
);
55 #endif // SHOW_IMAGE_SETTINGS_H