comparison Question.h @ 24:a4908ad8c78e

Top and bottom toolbars. Intro page.
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 01 Feb 2013 11:16:56 +0000
parents
children ae4d2c3ce5e0
comparison
equal deleted inserted replaced
23:dae6d77657a0 24:a4908ad8c78e
1 //
2 // Question.h
3 // sonicZoom
4 //
5 // Created by Robert Tubb on 21/01/2013.
6 //
7 // included by Qviewcont
8
9 #import <Foundation/Foundation.h>
10 typedef enum QuestionType{AGREE_DISAGREE, SLIDERS_ZOOMER} QuestionType;
11
12 @interface Question : NSObject
13 {
14
15
16 }
17 @property (strong, nonatomic) NSString *questionText;
18 @property QuestionType questionType;
19 @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"
20
21 -(id)initWithTextAndType:(NSString *)text:(QuestionType)type;
22 + (int)count;
23 +(NSArray *)answersWithType:(QuestionType)type;
24 @end