LAEventDataSource.h 1.1 KB

123456789101112131415161718192021222324252627
  1. #import <Foundation/Foundation.h>
  2. // Event Data Sources represent the metadata associated with specific events
  3. // A data source is constructed automatically for each event in /Library/Activator/Events
  4. @protocol LAEventDataSource <NSObject>
  5. @required
  6. - (NSString *)localizedTitleForEventName:(NSString *)eventName;
  7. - (NSString *)localizedGroupForEventName:(NSString *)eventName;
  8. - (NSString *)localizedDescriptionForEventName:(NSString *)eventName;
  9. @optional
  10. - (BOOL)eventWithNameIsHidden:(NSString *)eventName;
  11. - (BOOL)eventWithNameRequiresAssignment:(NSString *)eventName;
  12. - (BOOL)eventWithName:(NSString *)eventName isCompatibleWithMode:(NSString *)eventMode;
  13. - (BOOL)eventWithNameSupportsUnlockingDeviceToSend:(NSString *)eventName;
  14. - (BOOL)eventWithNameSupportsRemoval:(NSString *)eventName;
  15. - (void)removeEventWithName:(NSString *)eventName;
  16. - (NSString *)configurationViewControllerClassNameForEventWithName:(NSString *)eventName bundle:(NSBundle **)bundle; // LAEventConfigurationViewController
  17. - (id)configurationForEventWithName:(NSString *)eventName;
  18. - (void)eventWithName:(NSString *)eventName didSaveNewConfiguration:(id)configuration;
  19. @end