// 1. simple, fits my personal use case
void syncMetaData(Map<Song, Song> & songMap)
{
	for(Pair<Song *> songPair in songMap)
	{
		Song * localSong  = songPair->first;
		Song * deviceSong = songPair->second;

		if(deviceSong->getPlayCount() > localSong->getPlayCount())
		{
			localSong->setPlayCount(deviceSong->getPlayCount());

			lastFmScrobbler->scrobblePlay(deviceSong);
		}
	}
}

// 2. being cleverer
void sync()
{
	// foreach song copied to ipod
		// record playcount at last sync
}

void syncMetaData(Map<Song, Song> & songMap)
{
	for(Pair<Song *> songPair in songMap)
	{
		Song * localSong  = songPair->first;
		Song * deviceSong = songPair->second;

		int iLocalPlays = localSong->getPlayCount() - localSong->getLastSyncPlayCount();
		int iRemotePlays = deviceSong->getPlayCount() - localSong->getLastSyncPlayCount();

		int iPlays = iLocalPlays + iRemotePlays;
	
		if(iPlays > 0)
		{
			int iNewPlayCount = iPlays + localSong->getLastSyncPlayCount();
			localSong->getPlayCount(iNewPlayCount);
			localSong->getPlayCount(iNewPlayCount);

			lastFmScrobbler->scrobblePlay(deviceSong);
		}
	}
}
