annotate 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
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@24 8
rt300@24 9 #import <Foundation/Foundation.h>
rt300@24 10 typedef enum QuestionType{AGREE_DISAGREE, SLIDERS_ZOOMER} QuestionType;
rt300@24 11
rt300@24 12 @interface Question : NSObject
rt300@24 13 {
rt300@24 14
rt300@24 15
rt300@24 16 }
rt300@24 17 @property (strong, nonatomic) NSString *questionText;
rt300@24 18 @property QuestionType questionType;
rt300@24 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"
rt300@24 20
rt300@24 21 -(id)initWithTextAndType:(NSString *)text:(QuestionType)type;
rt300@24 22 + (int)count;
rt300@24 23 +(NSArray *)answersWithType:(QuestionType)type;
rt300@24 24 @end