CatNiP -test sprint-4-interim
catnip
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/PlaylistsDelegateDataSource.h
Go to the documentation of this file.
00001 //
00002 //  PlaylistsDelegateDataSource.h
00003 //  CatNiP
00004 //
00005 //  This class is for using the playlist
00006 //
00007 //  Created by Simo M Linkola, tkol on 6/9/11.
00008 //  Copyright 2011 __MyCompanyName__. All rights reserved.
00009 //
00010 
00011 #import <Foundation/Foundation.h>
00012 @class CatNiPViewController;
00013 
00014 @interface PlaylistsDelegateDataSource: UITableViewController<UITableViewDelegate, UITableViewDataSource>
00015 {
00016     NSMutableArray *playlists;
00017     NSMutableArray *scores;
00018     CatNiPViewController *master;
00019 }
00020 
00021 @property (nonatomic, retain) IBOutlet CatNiPViewController *master;
00022 @property (copy) NSMutableArray *playlists;
00023 @property (copy) NSMutableArray *scores;
00024 
00025 -(id)initWithMaster:(CatNiPViewController *)m;
00026 
00027 /*** UITableViewDataSource protocol's functions ***/
00028 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
00029 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath;
00030 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath;
00031 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
00032 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 
00033 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
00034 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;
00035 
00036 // tableView:cellForRowAtIndexPath: behaviour for libraryTableX's cell. Called from datasource protocol function.
00037 - (UITableViewCell *)createTableCellLeft: (NSIndexPath *) indexPath;
00038 - (UITableViewCell *)createTableCellRight: (NSIndexPath *)indexPath;
00039 
00040 /*** UITableViewDelegate protocol's functions ***/
00041 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
00042 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
00043 - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
00044 
00045 // tableView:didSelectRowAtIndexPath: behaviour for libraryTableX's cells. Called from UITableViewDelegate
00046 // protocol function.
00047 - (void)didSelectRowAtLeftTable:(NSIndexPath *)indexPath;
00048 - (void)didSelectRowAtRightTable:(NSIndexPath *)indexPath;
00049 
00050 -(void)changeLibraryTypeToPlaylists;
00051 
00052 @end
 All Classes Files Functions Variables Properties Defines