/documentation/RockLockTutorial/RockLock_03/src/com/marvin/rocklock/SongPicker.java

http://eyes-free.googlecode.com/ · Java · 55 lines · 17 code · 16 blank · 22 comment · 0 complexity · 33819f085e1f1422c4cc51dd87563bb5 MD5 · raw file

  1. /*
  2. * Copyright (C) 2010 Google Inc.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.marvin.rocklock;
  17. /**
  18. * Interface for traversing through the songs on the device. Individual
  19. * implementations can handle traversal differently - for example, traversal
  20. * through tagged content vs directory structure vs playlists.
  21. *
  22. * @author clchen@google.com (Charles L. Chen)
  23. */
  24. public interface SongPicker {
  25. public String peekNextArtist();
  26. public String peekPrevArtist();
  27. public String goNextArtist();
  28. public String goPrevArtist();
  29. public String peekNextAlbum();
  30. public String goNextAlbum();
  31. public String peekPrevAlbum();
  32. public String goPrevAlbum();
  33. public String peekNextTrack();
  34. public String goNextTrack();
  35. public String peekPrevTrack();
  36. public String goPrevTrack();
  37. public String getCurrentSongFile();
  38. public String getCurrentSongInfo();
  39. }