ObjFW  Diff

Differences From Artifact [8b2581256c]:

To Artifact [10aa8b7158]:


63
64
65
66
67
68
69
70

71
72
73


74
75
76

77
78
79

80
81
82


83
84
85

86
87
88

89
90
91


92
93
94

95
96
97

98
99
100


101
102
103

104
105
106

107
108
109


110
111
112

113
114
115

116
117
118


119
120
121


122
123
124
125


126
127
128


129
130

131
132
133
134


135
136

137
138

139
140
141


142
143
144
145


146
147

148
149

150
151
152


153
154
155
156


157
158

159
160

161
162
163

164
165
166
167


168
169

170
171

172
173
174

175
176
177
178


179
180

181
182

183
184
185

186
187
188

189
190
191

192
193
194

195
196
197
198
199
200
201
63
64
65
66
67
68
69

70
71


72
73
74


75
76
77

78
79


80
81
82


83
84
85

86
87


88
89
90


91
92
93

94
95


96
97
98


99
100
101

102
103


104
105
106


107
108
109

110
111


112
113
114


115
116
117
118


119
120
121


122
123
124

125
126
127


128
129
130

131
132

133
134


135
136
137
138


139
140
141

142
143

144
145


146
147
148
149


150
151
152

153
154

155
156


157
158
159


160
161
162

163
164

165
166


167
168
169


170
171
172

173
174

175
176


177
178
179

180
181
182

183
184
185

186
187
188
189
190
191
192
193







-
+

-
-
+
+

-
-
+


-
+

-
-
+
+

-
-
+


-
+

-
-
+
+

-
-
+


-
+

-
-
+
+

-
-
+


-
+

-
-
+
+

-
-
+


-
+

-
-
+
+

-
-
+
+


-
-
+
+

-
-
+
+

-
+


-
-
+
+

-
+

-
+

-
-
+
+


-
-
+
+

-
+

-
+

-
-
+
+


-
-
+
+

-
+

-
+

-
-
+


-
-
+
+

-
+

-
+

-
-
+


-
-
+
+

-
+

-
+

-
-
+


-
+


-
+


-
+







 *			  accessed
 * @return An initialized OFSettings instance
 */
- (instancetype)initWithApplicationName: (OFString *)applicationName
    OF_DESIGNATED_INITIALIZER;

/**
 * @brief Sets the specified path to the specified string value.
 * @brief Sets the specified path to the specified string.
 *
 * @param stringValue The string value to set
 * @param path The path to store the string value at
 * @param string The string to set
 * @param path The path to store the string at
 */
- (void)setStringValue: (OFString *)stringValue
	       forPath: (OFString *)path;
- (void)setString: (OFString *)string forPath: (OFString *)path;

/**
 * @brief Sets the specified path to the specified long long value.
 * @brief Sets the specified path to the specified long long.
 *
 * @param longLongValue The long long value to set
 * @param path The path to store the long long value at
 * @param longLong The long long to set
 * @param path The path to store the long long at
 */
- (void)setLongLongValue: (long long)longLongValue
		 forPath: (OFString *)path;
- (void)setLongLong: (long long)longLong forPath: (OFString *)path;

/**
 * @brief Sets the specified path to the specified bool value.
 * @brief Sets the specified path to the specified bool.
 *
 * @param boolValue The bool value to set
 * @param path The path to store the bool value at
 * @param bool_ The bool to set
 * @param path The path to store the bool at
 */
- (void)setBoolValue: (bool)boolValue
	     forPath: (OFString *)path;
- (void)setBool: (bool)bool_ forPath: (OFString *)path;

/**
 * @brief Sets the specified path to the specified float value.
 * @brief Sets the specified path to the specified float.
 *
 * @param floatValue The float value to set
 * @param path The path to store the float value at
 * @param float_ The float to set
 * @param path The path to store the float at
 */
- (void)setFloatValue: (float)floatValue
	      forPath: (OFString *)path;
- (void)setFloat: (float)float_ forPath: (OFString *)path;

/**
 * @brief Sets the specified path to the specified double value.
 * @brief Sets the specified path to the specified double.
 *
 * @param doubleValue The double value to set
 * @param path The path to store the double value at
 * @param double_ The double to set
 * @param path The path to store the double at
 */
- (void)setDoubleValue: (double)doubleValue
	       forPath: (OFString *)path;
- (void)setDouble: (double)double_ forPath: (OFString *)path;

/**
 * @brief Sets the specified path to the specified array of string values.
 * @brief Sets the specified path to the specified array of strings.
 *
 * @param stringValues The array of string values to set
 * @param path The path to store the array of string values at
 * @param array The array of strings to set
 * @param path The path to store the array of string at
 */
- (void)setStringValues: (OFArray OF_GENERIC(OFString *) *)stringValues
		forPath: (OFString *)path;
- (void)setStringArray: (OFArray OF_GENERIC(OFString *) *)array
	       forPath: (OFString *)path;

/**
 * @brief Returns the string value for the specified path, or `nil` if the path
 *	  does not exist.
 * @brief Returns the string for the specified path, or `nil` if the path does
 *	  not exist.
 *
 * @param path The path for which the string value should be returned
 * @return The string value of the specified path
 * @param path The path for which the string should be returned
 * @return The string of the specified path
 */
- (nullable OFString *)stringValueForPath: (OFString *)path;
- (nullable OFString *)stringForPath: (OFString *)path;

/**
 * @brief Returns the string value for the specified path, or the default value
 *	  if the path does not exist.
 * @brief Returns the string for the specified path, or the default value if
 *	  the path does not exist.
 *
 * @param path The path for which the string value should be returned
 * @param path The path for which the string should be returned
 * @param defaultValue The default value to return if the path does not exist
 * @return The string value of the specified path
 * @return The string of the specified path
 */
- (nullable OFString *)stringValueForPath: (OFString *)path
			     defaultValue: (nullable OFString *)defaultValue;
- (nullable OFString *)stringForPath: (OFString *)path
			defaultValue: (nullable OFString *)defaultValue;

/**
 * @brief Returns the long long value for the specified path, or the default
 *	  value if the path does not exist.
 * @brief Returns the long long for the specified path, or the default value if
 *	  the path does not exist.
 *
 * @param path The path for which the long long value should be returned
 * @param path The path for which the long long should be returned
 * @param defaultValue The default value to return if the path does not exist
 * @return The long long value of the specified path
 * @return The long long of the specified path
 */
- (long long)longLongValueForPath: (OFString *)path
		     defaultValue: (long long)defaultValue;
- (long long)longLongForPath: (OFString *)path
		defaultValue: (long long)defaultValue;

/**
 * @brief Returns the bool value for the specified path, or the default value if
 *	  the path does not exist.
 * @brief Returns the bool for the specified path, or the default value if the
 *	  path does not exist.
 *
 * @param path The path for which the bool value should be returned
 * @param path The path for which the bool should be returned
 * @param defaultValue The default value to return if the path does not exist
 * @return The bool value of the specified path
 * @return The bool of the specified path
 */
- (bool)boolValueForPath: (OFString *)path
	    defaultValue: (bool)defaultValue;
- (bool)boolForPath: (OFString *)path defaultValue: (bool)defaultValue;

/**
 * @brief Returns the float value for the specified path, or the default value
 *	  if the path does not exist.
 * @brief Returns the float for the specified path, or the default value if the
 *	  path does not exist.
 *
 * @param path The path for which the float value should be returned
 * @param path The path for which the float should be returned
 * @param defaultValue The default value to return if the path does not exist
 * @return The float value of the specified path
 * @return The float of the specified path
 */
- (float)floatValueForPath: (OFString *)path
	      defaultValue: (float)defaultValue;
- (float)floatForPath: (OFString *)path defaultValue: (float)defaultValue;

/**
 * @brief Returns the double value for the specified path, or the default value
 *	  if the path does not exist.
 * @brief Returns the double for the specified path, or the default value if
 *	  the path does not exist.
 *
 * @param path The path for which the double value should be returned
 * @param path The path for which the double should be returned
 * @param defaultValue The default value to return if the path does not exist
 * @return The double value of the specified path
 * @return The double of the specified path
 */
- (double)doubleValueForPath: (OFString *)path
		defaultValue: (double)defaultValue;
- (double)doubleForPath: (OFString *)path defaultValue: (double)defaultValue;

/**
 * @brief Returns the array of string values for the specified path, or an empty
 * @brief Returns the array of strings for the specified path, or an empty
 *	  array if the path does not exist.
 *
 * @param path The path for which the array of string values should be returned
 * @param path The path for which the array of strings should be returned
 * @return The array of string values of the specified path
 */
- (OFArray OF_GENERIC(OFString *) *)stringValuesForPath: (OFString *)path;
- (OFArray OF_GENERIC(OFString *) *)stringArrayForPath: (OFString *)path;

/**
 * @brief Removes the value for the specified path.
 *
 * @param path The path for which the value should be removed
 */
- (void)removeValueForPath: (OFString *)path;