Skip to content

Commit

Permalink
Fix the return types of the functions that should have been void.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Harrison committed Dec 12, 2010
1 parent d51fd09 commit 7a67cb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions mythtv/libs/libmythui/mythuiwebbrowser.cpp
Expand Up @@ -56,25 +56,25 @@ void BrowserApi::attachObject(void)
m_frame->addToJavaScriptWindowObject(QString("MusicPlayer"), this);
}

int BrowserApi::Play(void)
void BrowserApi::Play(void)
{
MythEvent me(QString("MUSIC_COMMAND PLAY"));
gCoreContext->dispatch(me);
}

int BrowserApi::Stop(void)
void BrowserApi::Stop(void)
{
MythEvent me(QString("MUSIC_COMMAND STOP"));
gCoreContext->dispatch(me);
}

int BrowserApi::Pause(void)
void BrowserApi::Pause(void)
{
MythEvent me(QString("MUSIC_COMMAND PAUSE"));
gCoreContext->dispatch(me);
}

int BrowserApi::SetVolume(int volumn)
void BrowserApi::SetVolume(int volumn)
{
MythEvent me(QString("MUSIC_COMMAND SET_VOLUME %1").arg(volumn));
gCoreContext->dispatch(me);
Expand All @@ -101,19 +101,19 @@ int BrowserApi::GetVolume(void)
return -1;
}

int BrowserApi::PlayFile(QString filename)
void BrowserApi::PlayFile(QString filename)
{
MythEvent me(QString("MUSIC_COMMAND PLAY_FILE '%1'").arg(filename));
gCoreContext->dispatch(me);
}

int BrowserApi::PlayTrack(int trackID)
void BrowserApi::PlayTrack(int trackID)
{
MythEvent me(QString("MUSIC_COMMAND PLAY_TRACK %1").arg(trackID));
gCoreContext->dispatch(me);
}

int BrowserApi::PlayURL(QString url)
void BrowserApi::PlayURL(QString url)
{
MythEvent me(QString("MUSIC_COMMAND PLAY_URL %1").arg(url));
gCoreContext->dispatch(me);
Expand Down
14 changes: 7 additions & 7 deletions mythtv/libs/libmythui/mythuiwebbrowser.h
Expand Up @@ -26,16 +26,16 @@ class BrowserApi : public QObject
void setWebView(QWebView *view);

public slots:
int Play(void);
int Stop(void);
int Pause(void);
void Play(void);
void Stop(void);
void Pause(void);

int SetVolume(int volumn);
void SetVolume(int volumn);
int GetVolume(void);

int PlayFile(QString filename);
int PlayTrack(int trackID);
int PlayURL(QString url);
void PlayFile(QString filename);
void PlayTrack(int trackID);
void PlayURL(QString url);

QString GetMetadata(void);

Expand Down

0 comments on commit 7a67cb2

Please sign in to comment.