/******************************** Vangelis Metsis CS 2308 These are the function definitions, and constants that will be used for the tsuPod project. This file will be included in the driver test program and the tsuPod.cpp file. You will write the tsuPod.cpp function implementations. *********************************/ #ifndef TSUPOD_H #define TSUPOD_H #include using namespace std; /** FUNCTION - void initTsuPod Initialize all the slots to blank and 0 size memory */ void initTsuPod (); /** FUNCTION - int addSong Attempts to add a new song to the tsuPod o returns a 0 if successful o returns -1 if not enough memory to add the song o returns -2 for any other error (such as a blank title or artist) @param newTitle The title of the song @param newArtist The artist of the song @param size The size of the song file in MB @return a number indicating if the addition was successful or not */ int addSong (string newTitle, string newArtist, int size); /** FUNCTION - int removeSong attempts to remove a song from the tsuPod o returns 0 if successful o returns -1 if nothing is removed @param title the title of the song to be removed @return a number indicating if the removal was successful or not */ int removeSong (string title); /** FUNCTION - void clearMemory clears all the songs from memory */ void clearMemory(); /** FUNCTION - void showSongList * prints the current list of songs in order from first to last to standard output * format - slot #, Title, Artist, size in MB (one song per line) * print "Empty" for any slots that do not contain a song */ void showSongList (); /** FUNCTION - void shuffle Shuffles the songs into random order o ill do nothing if there are less than two songs in the current list */ void shuffle (); #endif