21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
-
+
+
-
+
-
-
-
-
+
+
+
+
-
+
|
*/
@import ObjFW;
@interface SiteStorage: OFObject
{
OFString *_path;
OFMutableDictionary <OFString*, OFDictionary <OFNumber*, OFNumber*>*>
OFMutableDictionary<OFString *, OFDictionary<OFNumber *, OFNumber *> *>
*_storage;
OFArray *_sites;
}
@property (readonly, nonatomic) OFArray<OFString *> *sites;
- (OFArray*)sites;
- (size_t)sitesCount;
- (bool)hasSite: (OFString*)name;
- (size_t)lengthForSite: (OFString*)name;
- (bool)isSiteLegacy: (OFString*)name;
- (void)setSite: (OFString*)site
- (bool)hasSite: (OFString *)name;
- (size_t)lengthForSite: (OFString *)name;
- (bool)isSiteLegacy: (OFString *)name;
- (void)setSite: (OFString *)site
length: (size_t)length
legacy: (bool)legacy;
- (void)removeSite: (OFString*)name;
- (void)removeSite: (OFString *)name;
@end
|