Mercurial > hg > tweakathon2ios
annotate Question.h @ 52:89944ab3e129 tip
fix oF linker errors ios8
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Tue, 03 Feb 2015 13:18:23 +0000 |
parents | a223551fdc1f |
children |
rev | line source |
---|---|
rt300@0 | 1 // |
rt300@0 | 2 // Question.h |
rt300@0 | 3 // sonicZoom |
rt300@0 | 4 // |
rt300@0 | 5 // Created by Robert Tubb on 21/01/2013. |
rt300@0 | 6 // |
rt300@0 | 7 // included by Qviewcont |
rt300@0 | 8 #define NUM_CHOICES 5 |
rt300@0 | 9 |
rt300@0 | 10 #import <Foundation/Foundation.h> |
rt300@0 | 11 typedef enum QuestionType{AGREE_DISAGREE, SLIDERS_ZOOMER} QuestionType; |
rt300@0 | 12 |
rt300@0 | 13 @interface Question : NSObject |
rt300@0 | 14 { |
rt300@0 | 15 |
rt300@0 | 16 |
rt300@0 | 17 } |
rt300@0 | 18 @property (strong, nonatomic) NSString *questionText; |
rt300@0 | 19 @property QuestionType questionType; |
rt300@0 | 20 @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" |
rt300@0 | 21 |
rt300@0 | 22 -(id)initWithTextAndType:(NSString *)text:(QuestionType)type; |
rt300@0 | 23 + (int)count; |
rt300@0 | 24 +(NSArray *)answersWithType:(QuestionType)type; |
rt300@0 | 25 @end |