/* * SyncServices -- ISyncChange.h * Copyright (c) 2003, Apple Computer, Inc. All rights reserved. */ #import #import @class ISyncClient; typedef int ISyncChangeType NS_DEPRECATED_MAC(10_4, 10_7); enum __ISyncChangeType { ISyncChangeTypeNone = 0, ISyncChangeTypeAdd = 1, ISyncChangeTypeModify, ISyncChangeTypeDelete } NS_DEPRECATED_MAC(10_4, 10_7); @interface ISyncChange : NSObject + (id)changeWithType:(ISyncChangeType)type recordIdentifier:(NSString *)recordIdentifier changes:(NSArray /* NSDictionary */ *)changes NS_DEPRECATED_MAC(10_4, 10_7); - (id)initWithChangeType:(ISyncChangeType)type recordIdentifier:(NSString *)recordIdentifier changes:(NSArray /* NSDictionary */ *)changes NS_DEPRECATED_MAC(10_4, 10_7); - (ISyncChangeType)type NS_DEPRECATED_MAC(10_4, 10_7); - (NSString *)recordIdentifier NS_DEPRECATED_MAC(10_4, 10_7); /* Returns a dictionary containing a complete copy of this record. When applying changes to the engine, this will likely be nil. When getting changes from the engine, this will contain a copy of the record as it appears in the Truth. Only those keys supported by the client will be included in this record. The changes array contains only the modified properties in this record. */ - (NSDictionary *)record NS_DEPRECATED_MAC(10_4, 10_7); /* Returns an array of dictionaries, one dictionary for each change to this record. The dictionary contains the following keys: action (ISyncChangePropertyActionKey) - either "set" (ISyncChangePropertySet) or "clear" (ISyncChangePropertyClear). name (ISyncChangePropertyNameKey) - the name of the attribute or relationship being changed. value (ISyncChangePropertyValueKey) - the new attribute value if the attribute is being set, otherwise absent if the attribute is being cleared. */ - (NSArray /* NSDictionary */ *)changes NS_DEPRECATED_MAC(10_4, 10_7); @end SYNCSERVICES_EXPORT NSString * const ISyncChangePropertyActionKey NS_DEPRECATED_MAC(10_4, 10_7); SYNCSERVICES_EXPORT NSString * const ISyncChangePropertySet NS_DEPRECATED_MAC(10_4, 10_7); SYNCSERVICES_EXPORT NSString * const ISyncChangePropertyClear NS_DEPRECATED_MAC(10_4, 10_7); SYNCSERVICES_EXPORT NSString * const ISyncChangePropertyNameKey NS_DEPRECATED_MAC(10_4, 10_7); SYNCSERVICES_EXPORT NSString * const ISyncChangePropertyValueKey NS_DEPRECATED_MAC(10_4, 10_7); SYNCSERVICES_EXPORT NSString * const ISyncChangePropertyValueIsDefaultKey NS_DEPRECATED_MAC(10_4, 10_7);