diff Question.h @ 0:a223551fdc1f

First commit - copy from tweakathlon.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 10 Oct 2014 11:46:42 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Question.h	Fri Oct 10 11:46:42 2014 +0100
@@ -0,0 +1,25 @@
+//
+//  Question.h
+//  sonicZoom
+//
+//  Created by Robert Tubb on 21/01/2013.
+//
+// included by Qviewcont
+#define NUM_CHOICES 5
+
+#import <Foundation/Foundation.h>
+typedef enum QuestionType{AGREE_DISAGREE, SLIDERS_ZOOMER} QuestionType;
+
+@interface Question : NSObject
+{
+  
+    
+}
+@property (strong, nonatomic) NSString *questionText;
+@property QuestionType questionType;
+@property int answer; // answer 0 means no answer was given (the blank line in picker) this distiguishes between "neither" and "don't know / no answer"
+
+-(id)initWithTextAndType:(NSString *)text:(QuestionType)type;
++ (int)count;
++(NSArray *)answersWithType:(QuestionType)type;
+@end