Warning, /network/kdeconnect-ios/KDE Connect/KDE Connect/ObjC Backend/SettingsStore.m is written in an unsupported language. File is not indexed.

0001 ////Copyright 11/6/14  YANG Qiao yangqiao0505@me.com
0002 ////kdeconnect is distributed under two licenses.
0003 ////
0004 ////* The Mozilla Public License (MPL) v2.0
0005 ////
0006 ////or
0007 ////
0008 ////* The General Public License (GPL) v2.1
0009 ////
0010 ////----------------------------------------------------------------------
0011 ////
0012 ////Software distributed under these licenses is distributed on an "AS
0013 ////IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
0014 ////implied. See the License for the specific language governing rights
0015 ////and limitations under the License.
0016 ////kdeconnect is distributed under both the GPL and the MPL. The MPL
0017 ////notice, reproduced below, covers the use of either of the licenses.
0018 ////
0019 ////----------------------------------------------------------------------
0020 //
0021 //#import "SettingsStore.h"
0022 //
0023 //@interface SettingsStore()
0024 //@property(nonatomic) NSMutableDictionary* _dict;
0025 //
0026 //@end
0027 //
0028 //@implementation SettingsStore
0029 //
0030 //@synthesize _filePath;
0031 //@synthesize _dict;
0032 //
0033 //- (id)initWithPath:(NSString*)path
0034 //{
0035 //    //get app document path
0036 //    NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
0037 //    NSString *plistPath = [paths objectAtIndex:0];
0038 //    _filePath=[plistPath stringByAppendingPathComponent:path];
0039 //    if((self = [super init])) {
0040 //        _dict = [[NSMutableDictionary alloc] initWithContentsOfFile:_filePath];
0041 //        if(_dict == nil) {
0042 //            _dict = [NSMutableDictionary dictionaryWithCapacity:1];
0043 //        }
0044 //    }
0045 //    return self;
0046 //}
0047 //
0048 //- (NSArray*)getAllKeys
0049 //{
0050 //    return [_dict allKeys];
0051 //}
0052 //
0053 //- (void)setObject:(id)value forKey:(NSString *)key {
0054 //    if (!value) {
0055 //        [_dict removeObjectForKey:key];
0056 //    }
0057 //    else{
0058 //        [_dict setObject:value forKey:key];
0059 //    }
0060 //}
0061 //
0062 //- (id)objectForKey:(NSString *)key {
0063 //    return [_dict objectForKey:key];
0064 //}
0065 //
0066 //- (BOOL)synchronize {
0067 //    return [_dict writeToFile:_filePath atomically:YES];
0068 //}
0069 //
0070 //@end