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