Playlist Generator  1.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
Playlist2/EchonestPlaylistParameterViewController.h
Go to the documentation of this file.
00001 //
00002 //  EchonestPlaylistParameterViewController.h
00003 //  Playlist2
00004 //
00005 //  Created by Max Woolf on 10/12/2011.
00006 //  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
00007 //
00008 
00009 #import <UIKit/UIKit.h>
00010 #import "EchonestSimilarConnection.h"
00011 #import "MBProgressHUD.h"
00012 
00013 @interface EchonestPlaylistParameterViewController : UIViewController <NSURLConnectionDataDelegate>
00014 {
00015     //Session Info
00016     BOOL trackWasIdentified;
00017     
00018     //Song Info
00019     NSString *songID; //ID of a song if it was recognised
00020     NSDictionary *analysisData; //Dictionary containing data about an analysis
00021     
00022     //UI Elemtents
00023     IBOutlet UIButton *tracksButton;
00024     IBOutlet UIStepper *tracksStepper;
00025     IBOutlet UISlider *danceSlider;
00026     IBOutlet UISlider *moodSlider;
00027     IBOutlet UISlider *varietySlider;
00028     IBOutlet UIView *slidersView;
00029     MBProgressHUD *HUD;
00030      
00031     //Values for sending to echonest
00032     float danceability;
00033     float variety;
00034     float mood;
00035     int numberOfTracks;
00036     
00037     //Set to true if feeling lucky, then set random values
00038     BOOL feelingLucky;
00039     
00040     //Connection
00041     NSURLConnection *connection;
00042     NSMutableData *receivedData;
00043     NSString *jsonData;
00044 }
00045 
00046 //Initialisation
00047 -(void)setTrackID:(NSString *)inputID;
00048 -(void)setDictionaryData:(NSDictionary *)inputDict;
00049 
00050 //Value changes
00051 -(IBAction)tracksStepperValueChange:(id)sender;
00052 -(IBAction)danceSliderValueChange:(id)sender;
00053 -(IBAction)varietySliderValueChange:(id)sender;
00054 
00055 //When generate playlist button is pressed
00056 -(IBAction)buttonPressed:(id)sender;
00057 
00058 @property (nonatomic) BOOL trackWasIdentified;
00059 @end