Serialization of the whiteList

This commit is contained in:
Alexandre Cloutier committed 2014-07-21 09:27:02 -04:00
1 parent 8ded5a8aaf
commit 16d02455bd
3 files changed
+36 -16

No files matched your search

+20
View File
@@ -639,6 +639,26 @@ static NSArray *reminderValues = nil;
return [userDefaults busyOffHours];
}
- (NSString *) whiteListValue
{
SOGoUserSettings *us;
id *whiteListValue;
us = [user userSettings];
whiteListValue = [us objectForKey:@"whiteListInvitations"];
return whiteListValue;
}
- (void) setWhiteListValue: (NSArray *) whiteList
{
SOGoUserSettings *us;
us = [user userSettings];
[us setObject: whiteList forKey: @"whiteListInvitations"];
[us synchronize];
}
- (void) setPreventInvitations: (BOOL) preventInvitations
{
SOGoUserSettings *us;