blob: 8cf90c805499f3645f7ef1a0c97c748c23f59554 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//
// SDLPrioritizedOutputCollection.h
// SmartDeviceLink
//
#import <Foundation/Foundation.h>
@interface SDLPrioritizedObjectCollection : NSObject
/**
* Add a new object to a push-pop collection. The object will be added in a location based on the priority passed in.
*
* A lower priority number is considered to be "higher". This is because this class is generally used with RPC service numbers, and lower services preempt higher ones.
*
* @param object The object to be added to the priority collection
* @param priority The priority to use when determining the location of the object in the collection. A lower number is considered a higher priority
*/
- (void)addObject:(id)object withPriority:(NSInteger)priority;
/**
* Retreive the highest priority object from the collection. This also removes the object.
*
* @return The highest priority object retrieved from the collection.
*/
- (id)nextObject;
@end
|