59 storeAsCompressedBinary,
167 File getDefaultFile()
const;
221 bool needsToBeSaved()
const;
226 void setNeedsToBeSaved (
bool needsToBeSaved);
238 void propertyChanged()
override;
244 bool loadedOk =
false, needsWriting =
false;
246 using ProcessScopedLock =
const std::unique_ptr<InterProcessLock::ScopedLockType>;
249 void timerCallback()
override;
Holds a resizable array of primitive or copy-by-value objects.
Holds a list of ChangeListeners, and sends messages to them when instructed.
Represents a local file or directory.
Automatically locks and unlocks an InterProcessLock object.
Acts as a critical section which processes can use to block each other.
The base class for streams that write data to some kind of destination.
Wrapper on a file that stores a list of key/value data pairs.
const File & getFile() const noexcept
Returns the file that's being used.
bool isValidFile() const noexcept
Returns true if this file was created from a valid (or non-existent) file.
A set of named property values, which can be strings, integers, floating point, etc.
Makes repeated callbacks to a virtual method at a specified time interval.
#define JUCE_API
This macro is added to all JUCE public class declarations.
Structure describing properties file options.
StorageFormat storageFormat
Specifies whether the file should be written as XML, binary, etc.
InterProcessLock * processLock
An optional InterprocessLock object that will be used to prevent multiple threads or processes from w...
String osxLibrarySubFolder
If you're using properties files on a Mac, you must set this value - failure to do so will cause a ru...
String filenameSuffix
The suffix to use for your properties file.
String folderName
The name of a subfolder in which you'd like your properties file to live.
String applicationName
The name of your application - this is used to help generate the path and filename at which the prope...
bool commonToAllUsers
If true, the file will be created in a location that's shared between users.
bool doNotSave
If set to true, this prevents the file from being written to disk.
bool ignoreCaseOfKeyNames
If true, this means that property names are matched in a case-insensitive manner.
int millisecondsBeforeSaving
If this is zero or greater, then after a value is changed, the object will wait for this amount of ti...