view Question.h @ 25:f42a00e3f22d

Logs condensed slightly. Questionnaire button enable. double precision location!!!
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Fri, 01 Feb 2013 17:39:19 +0000
parents a4908ad8c78e
children ae4d2c3ce5e0
line wrap: on
line source
//
//  Question.h
//  sonicZoom
//
//  Created by Robert Tubb on 21/01/2013.
//
// included by Qviewcont

#import <Foundation/Foundation.h>
typedef enum QuestionType{AGREE_DISAGREE, SLIDERS_ZOOMER} QuestionType;

@interface Question : NSObject
{
  
    
}
@property (strong, nonatomic) NSString *questionText;
@property QuestionType questionType;
@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"

-(id)initWithTextAndType:(NSString *)text:(QuestionType)type;
+ (int)count;
+(NSArray *)answersWithType:(QuestionType)type;
@end