aboutsummaryrefslogtreecommitdiff
path: root/VKPC/Queue.h
diff options
context:
space:
mode:
Diffstat (limited to 'VKPC/Queue.h')
-rw-r--r--VKPC/Queue.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/VKPC/Queue.h b/VKPC/Queue.h
new file mode 100644
index 0000000..3274c08
--- /dev/null
+++ b/VKPC/Queue.h
@@ -0,0 +1,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