mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Add skeletal implementations of methods
This commit is contained in:
parent
b284979b15
commit
041ed7b9e4
2 changed files with 208 additions and 3 deletions
|
@ -58,11 +58,16 @@ GS_EXPORT_CLASS
|
|||
NSDate *_expirationDate;
|
||||
NSSet *_keywords;
|
||||
id<NSUserActivityDelegate> _delegate;
|
||||
NSString *_targetContentIndentifier;
|
||||
|
||||
NSString *_targetContentIdentifier;
|
||||
NSString *_persistentIdentifier;
|
||||
|
||||
BOOL _supportsContinuationStreams;
|
||||
BOOL _needsSave;
|
||||
BOOL _valid;
|
||||
BOOL _eligibleForPrediction;
|
||||
BOOL _eligibleForPublicIndexing;
|
||||
BOOL _eligibleForSearch;
|
||||
BOOL _eligibleForHandoff;
|
||||
}
|
||||
|
||||
- (instancetype) initWithActivityType: (NSString *)activityType;
|
||||
|
|
|
@ -26,5 +26,205 @@
|
|||
|
||||
@implementation NSUserActivity
|
||||
|
||||
@end
|
||||
- (instancetype) initWithActivityType: (NSString *)activityType
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype) init
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) becomeCurrent
|
||||
{
|
||||
}
|
||||
|
||||
- (void) resignCurrent
|
||||
{
|
||||
}
|
||||
|
||||
- (void) invalidate
|
||||
{
|
||||
_valid = NO;
|
||||
}
|
||||
|
||||
- (void) getContinuationStreamsWithCompletionHandler: (GSContinuationStreamsCompletionHandler)handler
|
||||
{
|
||||
}
|
||||
|
||||
+ (void) deleteSavedUserActivitiesWithPersistentIdentifiers: (NSArray *)persistentIdentifies completionHandler: (GSDeleteSavedCompletionHandler)handler
|
||||
{
|
||||
}
|
||||
|
||||
+ (void) deleteAllSavedUserActivitiesWithCompletionHandler: (GSDeleteSavedCompletionHandler)handler
|
||||
{
|
||||
}
|
||||
|
||||
// properties...
|
||||
- (NSString *) activityType
|
||||
{
|
||||
return _activityType;
|
||||
}
|
||||
|
||||
- (NSString *) title
|
||||
{
|
||||
return _title;
|
||||
}
|
||||
|
||||
- (void) setTitle: (NSString *)title
|
||||
{
|
||||
ASSIGNCOPY(_title, title);
|
||||
}
|
||||
|
||||
- (NSDictionary *) userInfo
|
||||
{
|
||||
return _userInfo;
|
||||
}
|
||||
|
||||
- (void) setUserInfo: (NSDictionary *)userInfo
|
||||
{
|
||||
ASSIGNCOPY(_userInfo, userInfo);
|
||||
}
|
||||
|
||||
- (BOOL) needsSave
|
||||
{
|
||||
return _needsSave;
|
||||
}
|
||||
|
||||
- (void) setNeedsSave: (BOOL)needsSave
|
||||
{
|
||||
_needsSave = needsSave;
|
||||
}
|
||||
|
||||
- (NSURL *) webpageURL
|
||||
{
|
||||
return _webpageURL;
|
||||
}
|
||||
|
||||
- (void) setWebpageURL: (NSURL *)url
|
||||
{
|
||||
ASSIGNCOPY(_webpageURL, url);
|
||||
}
|
||||
|
||||
- (NSURL *) referrerURL
|
||||
{
|
||||
return _referrerURL;
|
||||
}
|
||||
|
||||
- (void) setReferrerURL: (NSURL *)url
|
||||
{
|
||||
ASSIGNCOPY(_referrerURL, url);
|
||||
}
|
||||
|
||||
- (NSDate *) expirationDate
|
||||
{
|
||||
return _expirationDate;
|
||||
}
|
||||
|
||||
- (void) setExpirationDate: (NSDate *)date
|
||||
{
|
||||
ASSIGNCOPY(_expirationDate, date);
|
||||
}
|
||||
|
||||
- (NSSet *) keywords
|
||||
{
|
||||
return _keywords;
|
||||
}
|
||||
|
||||
- (void) setKeywords: (NSArray *)keywords
|
||||
{
|
||||
ASSIGNCOPY(_keywords, keywords);
|
||||
}
|
||||
|
||||
- (BOOL) supportsContinuationStreams
|
||||
{
|
||||
return _supportsContinuationStreams;
|
||||
}
|
||||
|
||||
- (void) setSupportsContinuationStreams: (BOOL)flag
|
||||
{
|
||||
_supportsContinuationStreams = flag;
|
||||
}
|
||||
|
||||
- (id<NSUserActivityDelegate>) delegate
|
||||
{
|
||||
return _delegate;
|
||||
}
|
||||
|
||||
- (void) setDelegate: (id<NSUserActivityDelegate>)delegate
|
||||
{
|
||||
_delegate = delegate;
|
||||
}
|
||||
|
||||
- (NSString *) targetContentIdentifier
|
||||
{
|
||||
return _targetContentIdentifier;
|
||||
}
|
||||
|
||||
- (void) setTargetContentIdentifier: (NSString *)targetContentIdentifier
|
||||
{
|
||||
ASSIGNCOPY(_targetContentIdentifier, targetContentIdentifier);
|
||||
}
|
||||
|
||||
- (BOOL) isEligibleForHandoff
|
||||
{
|
||||
return _eligibleForHandoff;
|
||||
}
|
||||
|
||||
- (void) setEligibleForHandoff: (BOOL)f
|
||||
{
|
||||
_eligibleForHandoff = f;
|
||||
}
|
||||
|
||||
- (BOOL) isEligibleForSearch
|
||||
{
|
||||
return _eligibleForSearch;
|
||||
}
|
||||
|
||||
- (void) setEligibleForSearch: (BOOL)f
|
||||
{
|
||||
_eligibleForSearch = f;
|
||||
}
|
||||
|
||||
- (BOOL) isEligibleForPublicIndexing
|
||||
{
|
||||
return _eligibleForPublicIndexing;
|
||||
}
|
||||
|
||||
- (void) setEligibleForPublicIndexing: (BOOL)f
|
||||
{
|
||||
_eligibleForPublicIndexing = f;
|
||||
}
|
||||
|
||||
- (BOOL) isEligibleForPrediction
|
||||
{
|
||||
return _eligibleForPrediction;
|
||||
}
|
||||
|
||||
- (void) setEligibleForPrediction: (BOOL)f
|
||||
{
|
||||
_eligibleForPrediction = f;
|
||||
}
|
||||
|
||||
- (NSUserActivityPersistentIdentifier) persistentIdentifier
|
||||
{
|
||||
return _persistentIdentifier;
|
||||
}
|
||||
|
||||
- (void) setPersistentIdentifier: (NSUserActivityPersistentIdentifier)persistentIdentifier
|
||||
{
|
||||
ASSIGNCOPY(_persistentIdentifier, persistentIdentifier);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue