Mercurial > hg > soniczoomios
annotate Question.h @ 49:178642d134a7 tip
xtra files
author | Robert Tubb <rt300@eecs.qmul.ac.uk> |
---|---|
date | Wed, 01 May 2013 17:34:33 +0100 |
parents | ae4d2c3ce5e0 |
children |
rev | line source |
---|---|
rt300@24 | 1 // |
rt300@24 | 2 // Question.h |
rt300@24 | 3 // sonicZoom |
rt300@24 | 4 // |
rt300@24 | 5 // Created by Robert Tubb on 21/01/2013. |
rt300@24 | 6 // |
rt300@24 | 7 // included by Qviewcont |
rt300@27 | 8 #define NUM_CHOICES 5 |
rt300@24 | 9 |
rt300@24 | 10 #import <Foundation/Foundation.h> |
rt300@24 | 11 typedef enum QuestionType{AGREE_DISAGREE, SLIDERS_ZOOMER} QuestionType; |
rt300@24 | 12 |
rt300@24 | 13 @interface Question : NSObject |
rt300@24 | 14 { |
rt300@24 | 15 |
rt300@24 | 16 |
rt300@24 | 17 } |
rt300@24 | 18 @property (strong, nonatomic) NSString *questionText; |
rt300@24 | 19 @property QuestionType questionType; |
rt300@24 | 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@24 | 21 |
rt300@24 | 22 -(id)initWithTextAndType:(NSString *)text:(QuestionType)type; |
rt300@24 | 23 + (int)count; |
rt300@24 | 24 +(NSArray *)answersWithType:(QuestionType)type; |
rt300@24 | 25 @end |