aboutsummaryrefslogtreecommitdiff
path: root/VKPC/Queue.h
blob: 3274c08ca9e3e939a3705302019f19046bedd648 (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
//
//  Queue.h
//  VKPC
//
//  Created by Eugene on 12/3/13.
//  Copyright (c) 2013 Eugene Z. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "QueueControllerProtocol.h"

@interface Queue : NSObject {
    __strong id<QueueControllerProtocol> handler;
    NSMutableArray *tasks;
    BOOL active;
}

- (void)setHandler:(__strong id<QueueControllerProtocol>)val;
- (void)addTask:(id)task;
- (void)process;
- (void)passToHandler:(id)task;
- (void)taskDone;

@end