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;
String filenameSuffix
The suffix to use for your properties file.
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 applicationName
The name of your application - this is used to help generate the path and filename at which the prope...
#define JUCE_API
This macro is added to all JUCE public class declarations.
Acts as a critical section which processes can use to block each other.
Structure describing properties file options.
String folderName
The name of a subfolder in which you'd like your properties file to live.
A set of named property values, which can be strings, integers, floating point, etc.
InterProcessLock * processLock
An optional InterprocessLock object that will be used to prevent multiple threads or processes from w...
StorageFormat storageFormat
Specifies whether the file should be written as XML, binary, etc.
Automatically locks and unlocks an InterProcessLock object.
bool doNotSave
If set to true, this prevents the file from being written to disk.
int millisecondsBeforeSaving
If this is zero or greater, then after a value is changed, the object will wait for this amount of ti...
Holds a list of ChangeListeners, and sends messages to them when instructed.
Wrapper on a file that stores a list of key/value data pairs.
bool commonToAllUsers
If true, the file will be created in a location that's shared between users.
Represents a local file or directory.
bool ignoreCaseOfKeyNames
If true, this means that property names are matched in a case-insensitive manner. ...
The base class for streams that write data to some kind of destination.
bool isValidFile() const noexcept
Returns true if this file was created from a valid (or non-existent) file.
const File & getFile() const noexcept
Returns the file that's being used.
Makes repeated callbacks to a virtual method at a specified time interval.