rt300@24: // rt300@24: // Question.h rt300@24: // sonicZoom rt300@24: // rt300@24: // Created by Robert Tubb on 21/01/2013. rt300@24: // rt300@24: // included by Qviewcont rt300@27: #define NUM_CHOICES 5 rt300@24: rt300@24: #import rt300@24: typedef enum QuestionType{AGREE_DISAGREE, SLIDERS_ZOOMER} QuestionType; rt300@24: rt300@24: @interface Question : NSObject rt300@24: { rt300@24: rt300@24: rt300@24: } rt300@24: @property (strong, nonatomic) NSString *questionText; rt300@24: @property QuestionType questionType; rt300@24: @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: rt300@24: -(id)initWithTextAndType:(NSString *)text:(QuestionType)type; rt300@24: + (int)count; rt300@24: +(NSArray *)answersWithType:(QuestionType)type; rt300@24: @end