SoundPlayer Class Reference

#include <soundwidget.h>

Inheritance diagram for SoundPlayer:

QWidget

List of all members.


Detailed Description

Holds a list of sounds and names.

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< Soundlist

Constructor & Destructor Documentation

SoundPlayer::SoundPlayer ( int  ID,
QWidget parent = 0 
)

Definition at line 28 of file soundwidget.cpp.

References MyID.


Member Function Documentation

bool SoundPlayer::isAvailable (  ) 

Definition at line 35 of file soundwidget.cpp.

References QSound::isAvailable().

Here is the call graph for this function:

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().

Here is the call graph for this function:

void SoundPlayer::sigSoundList ( QStringList  list  )  [signal]

Referenced by add(), and rem().

void SoundPlayer::add ( QString  sound_name,
QString  file_name 
) [slot]

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().


Member Data Documentation

int SoundPlayer::MyID [private]

Definition at line 39 of file soundwidget.h.

Referenced by SoundPlayer().

QLinkedList<Sound> SoundPlayer::list [private]

Definition at line 49 of file soundwidget.h.

Referenced by add(), play(), rem(), and soundList().


The documentation for this class was generated from the following files:
Generated on Sun Oct 28 22:51:45 2007 for BBoB by  doxygen 1.5.3