Home ยท All Classes
Signals | Public Member Functions

MusicSuiteInterface Class Reference

MusicSuite interface for launching Music application and playing audio content with it. More...

List of all members.

Signals

void mediaChanged (const QStringList &mediaChanged)
void playbackStateChanged (int playbackState)

Public Member Functions

void currentMedia ()
void next ()
void openOviMusicLink (const QStringList &link)
void pausePlayback ()
void play (const QStringList &uriList)
void playPlaylist (const QStringList &uriList)
int playbackState ()
void previous ()
void resumePlayback ()
 MusicSuiteInterface (const QString &preferredService="", QObject *parent=0)
void setService (const QString &service)

Detailed Description

MusicSuite interface for launching Music application and playing audio content with it.

MusicSuite interface can be used to play local audio and audio streams and show Ovi store pages


Constructor & Destructor Documentation

MusicSuiteInterface::MusicSuiteInterface ( const QString preferredService = "",
QObject parent = 0 
)

Constructs a base interface.

Parameters:
preferredService the preferred service provider. Leave empty if no preferred provider. In most cases, this should be left empty.
parent Parent object

Member Function Documentation

void MusicSuiteInterface::currentMedia (  ) 

Queries the current media for song name and.

artist data

Query for the current media for song name and artist data. Triggers the emit of the mediaChanged signal with the result of the query as the

signal parameters.

void MusicSuiteInterface::mediaChanged ( const QStringList mediaChanged  )  [signal]

Emitted when currently playing media changes.

The return parameters in a list are the content type, the song title and the artist name.

void MusicSuiteInterface::next (  ) 

Jump to next song on playlist.

void MusicSuiteInterface::openOviMusicLink ( const QStringList link  ) 

Opens correct Ovi store page in Ovi tab.

Given stringlist parameter contains URI to Ovi Music store. The link points to e.g. music album page.

void MusicSuiteInterface::pausePlayback (  ) 

Pauses the already started playback.

void MusicSuiteInterface::play ( const QStringList uriList  ) 

Starts to play given uris.

int MusicSuiteInterface::playbackState (  ) 

Query the playback state.

Possible values are Stopped, Playing, Paused, Transitioning, Invalid = 100.

void MusicSuiteInterface::playbackStateChanged ( int  playbackState  )  [signal]

The playback state has changed.

Emitted when the playback state has changed.

Possible values are Stopped, Playing, Paused, Transitioning, Invalid = 100.

void MusicSuiteInterface::playPlaylist ( const QStringList uriList  ) 

Starts to play given playlists.

void MusicSuiteInterface::previous (  ) 

Jump to previous song on playlist.

void MusicSuiteInterface::resumePlayback (  ) 

Resume the paused playback.

void MusicSuiteInterface::setService ( const QString service  ) 

Set the service name.

Parameters:
service Name of the desired service

Copyright © 2010 Nokia Corporation
MeeGo Touch