Class: ItunesController::BaseITunesController Abstract
- Inherits:
-
Object
- Object
- ItunesController::BaseITunesController
- Defined in:
- lib/itunesController/itunescontroller.rb
Overview
This class should be overridden to implement the class that talks to iTunes.
This is the base class of all itunes controller.
Direct Known Subclasses
DummyITunesController, MacOSXITunesController, WindowsITunesController
Instance Method Summary collapse
-
#addFilesToLibrary(files) ⇒ Array[ItunesController::Track]
abstract
Used to add a list of files to the itunes library.
-
#getTrackCount ⇒ Number
abstract
Used to find the number of tracks in the library.
-
#getTrackDatabaseId(track) ⇒ Object
abstract
Used to get the database of a itunes track.
- #getTracks(&b) ⇒ Object abstract
-
#initialize ⇒ BaseITunesController
constructor
The constructor.
-
#refreshTracks(tracks) ⇒ Object
abstract
Used to tell iTunes to refresh a list of tracks data from the info stored in the files.
-
#removeTracksFromLibrary(tracks) ⇒ Object
abstract
Used to remove tracks from the libaray.
-
#searchLibrary(term) ⇒ Array
abstract
Used to search the itunes library.
-
#version ⇒ String
abstract
Used to get the iTunes version.
Constructor Details
#initialize ⇒ BaseITunesController
The constructor
29 30 |
# File 'lib/itunesController/itunescontroller.rb', line 29 def initialize() end |
Instance Method Details
#addFilesToLibrary(files) ⇒ Array[ItunesController::Track]
Must be overridden
Used to add a list of files to the itunes library
50 51 52 |
# File 'lib/itunesController/itunescontroller.rb', line 50 def addFilesToLibrary(files) raise "ERROR: Your trying to instantiate an abstract class" end |
#getTrackCount ⇒ Number
Must be overridden
Used to find the number of tracks in the library
77 78 79 |
# File 'lib/itunesController/itunescontroller.rb', line 77 def getTrackCount() raise "ERROR: Your trying to instantiate an abstract class" end |
#getTrackDatabaseId(track) ⇒ Object
Must be overridden
Used to get the database of a itunes track
85 86 87 |
# File 'lib/itunesController/itunescontroller.rb', line 85 def getTrackDatabaseId(track) raise "ERROR: Your trying to instantiate an abstract class" end |
#getTracks(&b) ⇒ Object
Must be overridden
62 63 64 |
# File 'lib/itunesController/itunescontroller.rb', line 62 def getTracks(&b) raise "ERROR: Your trying to instantiate an abstract class" end |
#refreshTracks(tracks) ⇒ Object
Must be overridden
Used to tell iTunes to refresh a list of tracks data from the info stored in the files
57 58 59 |
# File 'lib/itunesController/itunescontroller.rb', line 57 def refreshTracks(tracks) raise "ERROR: Your trying to instantiate an abstract class" end |
#removeTracksFromLibrary(tracks) ⇒ Object
Must be overridden
Used to remove tracks from the libaray
42 43 44 |
# File 'lib/itunesController/itunescontroller.rb', line 42 def removeTracksFromLibrary(tracks) raise "ERROR: Your trying to instantiate an abstract class" end |
#searchLibrary(term) ⇒ Array
Must be overridden
Used to search the itunes library
70 71 72 |
# File 'lib/itunesController/itunescontroller.rb', line 70 def searchLibrary(term) raise "ERROR: Your trying to instantiate an abstract class" end |
#version ⇒ String
Must be overridden
Used to get the iTunes version
35 36 37 |
# File 'lib/itunesController/itunescontroller.rb', line 35 def version raise "ERROR: Your trying to instantiate an abstract class" end |