XMMS-0.1.1: XMMS2 client library.

Network.XMMS.Playlist

Synopsis

Documentation

data Change Source

Constructors

Add 

Fields

position :: Int
 
name :: String
 
id :: Int
 
Insert 

Fields

position :: Int
 
name :: String
 
id :: Int
 
Remove 

Fields

position :: Int
 
name :: String
 
Clear 

Fields

name :: String
 
Move 

Fields

position :: Int
 
newPosition :: Int
 
name :: String
 
id :: Int
 
Sort 

Fields

name :: String
 
Shuffle 

Fields

name :: String
 
Update 

Fields

name :: String
 
NoChange 

currentPos :: Connection -> String -> IO ResultSource

Retrive the current position in the playlist.

currentActive :: Connection -> IO ResultSource

Retrive the name of the active playlist.

list :: Connection -> IO ResultSource

List the existing playlists.

create :: Connection -> String -> IO ResultSource

Create a new empty playlist.

shuffle :: Connection -> String -> IO ResultSource

Shuffles the current playlist.

sort :: Connection -> String -> [String] -> IO ResultSource

Sorts the playlist according to the list of properties

clear :: Connection -> String -> IO ResultSource

Clears the current playlist.

remove :: Connection -> String -> IO ResultSource

Remove the given playlist.

listEntries :: Connection -> String -> IO ResultSource

List current playlist.

insertID :: Connection -> String -> Int -> Int -> IO ResultSource

Insert a medialib id at given position in playlist.

insertURL :: Connection -> String -> Int -> String -> IO ResultSource

Insert entry at given position in playlist.

rInsert :: Connection -> String -> Int -> String -> IO ResultSource

Insert a directory recursivly at a given position in the playlist.

rInsertEncoded :: Connection -> String -> Int -> String -> IO ResultSource

Insert a directory recursivly at a given position in the playlist.

insertEncoded :: Connection -> String -> Int -> String -> IO ResultSource

Insert entry at given position in playlist.

addID :: Connection -> String -> Int -> IO ResultSource

Add a medialib id to the playlist.

addURL :: Connection -> String -> String -> IO ResultSource

Add the url to the playlist.

rAdd :: Connection -> String -> String -> IO ResultSource

Adds a directory recursivly to the playlist.

rAddEncoded :: Connection -> String -> String -> IO ResultSource

Adds a directory recursivly to the playlist.

addEncoded :: Connection -> String -> String -> IO ResultSource

Add the url to the playlist.

moveEntry :: Connection -> String -> Int -> Int -> IO ResultSource

Move a playlist entry to a new position (absolute move).

removeEntry :: Connection -> String -> Int -> IO ResultSource

Remove an entry from the playlist.

broadcastChanged :: Connection -> IO ResultSource

Request the playlist changed broadcast from the server.

broadcastCurrentPos :: Connection -> IO ResultSource

Request the playlist current pos broadcast.

setNext :: Connection -> Int -> IO ResultSource

Set next entry in the playlist.

setNextRel :: Connection -> Int -> IO ResultSource

Same as setNextRel but relative to the current postion.

load :: Connection -> String -> IO ResultSource

Load a playlist as the current active playlist.