CatNiP prefinal
Sähköinen nuottikirja, HY-TKTKL-OHTUPROJ KESÄ11
/Users/awniemel/Notepad-SVN/svn/trunk/CatNiP/CatNiP/PlaylistsDelegateDataSource.h
Go to the documentation of this file.
00001 
00009 #import <Foundation/Foundation.h>
00010 #import "ValueButton.h"
00011 #import "ValueTextField.h"
00013 @class Playlist;
00014 @class CatNiPViewController;
00016 @interface PlaylistsDelegateDataSource: UITableViewController<UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate>
00017 {
00018     NSMutableArray *playlists;
00019     Playlist *currentPlaylist;
00020     ValueTextField *playlistName;
00021     CatNiPViewController *master;
00022 }
00023 
00024 @property (retain) ValueTextField *playlistName;
00025 @property (nonatomic, retain) IBOutlet CatNiPViewController *master;
00026 @property (retain) NSMutableArray *playlists;
00027 @property (retain) Playlist *currentPlaylist;
00028 
00029 -(id)initWithMaster:(CatNiPViewController *)m;
00030 
00031 /*** UITableViewDataSource protocol's functions ***/
00032 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
00033 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath;
00034 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath;
00035 - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
00036 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath; 
00037 - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath;
00038 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath;
00039 
00040 // tableView:cellForRowAtIndexPath: behaviour for libraryTableX's cell. Called from datasource protocol function.
00041 - (UITableViewCell *)createTableCellLeft: (NSIndexPath *) indexPath;
00042 - (UITableViewCell *)createTableCellRight: (NSIndexPath *)indexPath;
00043 
00044 /*** UITableViewDelegate protocol's functions ***/
00045 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
00046 - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
00047 - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section;
00048 - (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section;
00049 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
00050 - (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section;
00051 - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath;
00052 - (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath;
00053 
00055 - (UIView *)createAccessoryViewForPlaylist:(NSIndexPath *)indexPath;
00056 // tableView:didSelectRowAtIndexPath: behaviour for libraryTableX's cells. Called from UITableViewDelegate
00057 // protocol function.
00058 - (void)didSelectRowAtLeftTable:(NSIndexPath *)indexPath;
00059 - (void)didSelectRowAtRightTable:(NSIndexPath *)indexPath;
00060 
00061 
00062 
00063 -(void)changeLibraryTypeToPlaylists;
00064 -(void)setPlaylistViewContents:(NSIndexPath *)indexPath;
00065 -(void)playlistActivateClicked:(id)button;
00066 
00067 @end
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines