#include <soundwidget.h>
Soundplayer can search and play by name, or the application can manage directly thru SoundList
Definition at line 35 of file soundwidget.h.
Public Slots | |
void | add (QString sound_name, QString file_name) |
void | rem (QString sound_name) |
void | play (QString sound_name) |
Signals | |
void | sigSoundList (QStringList list) |
Public Member Functions | |
SoundPlayer (int ID, QWidget *parent=0) | |
bool | isAvailable () |
bool | haveSound (QString Sound_name) |
QStringList | soundList () |
Private Attributes | |
int | MyID |
QLinkedList< Sound > | list |
SoundPlayer::SoundPlayer | ( | int | ID, | |
QWidget * | parent = 0 | |||
) |
bool SoundPlayer::isAvailable | ( | ) |
Definition at line 35 of file soundwidget.cpp.
References QSound::isAvailable().
bool SoundPlayer::haveSound | ( | QString | Sound_name | ) |
QStringList SoundPlayer::soundList | ( | ) |
Definition at line 40 of file soundwidget.cpp.
References QLinkedListIterator::hasNext(), list, Sound::name, and QLinkedListIterator::next().
Referenced by add(), and rem().
void SoundPlayer::sigSoundList | ( | QStringList | list | ) | [signal] |
Definition at line 55 of file soundwidget.cpp.
References list, sigSoundList(), and soundList().
Referenced by SoundPlugin::remote_data().
void SoundPlayer::rem | ( | QString | sound_name | ) | [slot] |
Definition at line 61 of file soundwidget.cpp.
References list, QLinkedList::removeAll(), sigSoundList(), and soundList().
void SoundPlayer::play | ( | QString | sound_name | ) | [slot] |
Definition at line 67 of file soundwidget.cpp.
References QLinkedList::constBegin(), QLinkedList::constEnd(), and list.
Referenced by SoundPlugin::remote_data().
int SoundPlayer::MyID [private] |
QLinkedList<Sound> SoundPlayer::list [private] |