kwave  18.07.70
Kwave::PlayBackTypesMap Class Reference

#include <PlayBackTypesMap.h>

Inheritance diagram for Kwave::PlayBackTypesMap:
Inheritance graph
Collaboration diagram for Kwave::PlayBackTypesMap:
Collaboration graph

Public Member Functions

 PlayBackTypesMap ()
 
virtual ~PlayBackTypesMap () Q_DECL_OVERRIDE
 
virtual void fill () Q_DECL_OVERRIDE
 
- Public Member Functions inherited from Kwave::TypesMap< unsigned int, Kwave::playback_method_t >
 TypesMap ()
 
virtual ~TypesMap ()
 
virtual void append (unsigned int index, Kwave::playback_method_t data, const QString &name, const QString &description)
 
unsigned int count () const
 
unsigned int findFromData (const Kwave::playback_method_t &data) const
 
unsigned int findFromName (const QString &name) const
 
Kwave::playback_method_t data (unsigned int type) const
 
QString name (unsigned int type) const
 
QString description (unsigned int type, bool localized) const
 
QStringList allNames () const
 
QList< unsigned int > keys () const
 

Detailed Description

Definition at line 29 of file PlayBackTypesMap.h.

Constructor & Destructor Documentation

◆ PlayBackTypesMap()

Kwave::PlayBackTypesMap::PlayBackTypesMap ( )
inlineexplicit

◆ ~PlayBackTypesMap()

virtual Kwave::PlayBackTypesMap::~PlayBackTypesMap ( )
inlinevirtual

Destructor

Definition at line 41 of file PlayBackTypesMap.h.

41 {}

Member Function Documentation

◆ fill()

void Kwave::PlayBackTypesMap::fill ( )
virtual

fill function for the map

Implements Kwave::TypesMap< unsigned int, Kwave::playback_method_t >.

Definition at line 28 of file PlayBackTypesMap.cpp.

References _, Kwave::TypesMap< unsigned int, Kwave::playback_method_t >::append(), Kwave::PLAYBACK_ALSA, Kwave::PLAYBACK_OSS, Kwave::PLAYBACK_PULSEAUDIO, and Kwave::PLAYBACK_QT_AUDIO.

29 {
30  unsigned int index = 0;
31 
32 #ifdef HAVE_ALSA_SUPPORT
33  append(index++, Kwave::PLAYBACK_ALSA, _("alsa"),
34  _(I18N_NOOP("ALSA (Advanced Linux Sound Architecture)")) );
35 #endif /* HAVE_ALSA_SUPPORT */
36 
37 #ifdef HAVE_OSS_SUPPORT
38  append(index++, Kwave::PLAYBACK_OSS, _("oss"),
39  _(I18N_NOOP("OSS (Open Sound System)")) );
40 #endif /* HAVE_OSS_SUPPORT */
41 
42 #ifdef HAVE_PULSEAUDIO_SUPPORT
43  append(index++, Kwave::PLAYBACK_PULSEAUDIO, _("pulseaudio"),
44  _(I18N_NOOP("Pulse Audio")) );
45 #endif /* HAVE_PULSEAUDIO_SUPPORT */
46 
47 #ifdef HAVE_QT_AUDIO_SUPPORT
48  append(index++, Kwave::PLAYBACK_QT_AUDIO, _("qt_audio"),
49  _(I18N_NOOP("Qt Multimedia Audio")) );
50 #endif /* HAVE_QT_AUDIO_SUPPORT */
51 
52  if (!index) qWarning("no playback method defined!");
53 }
virtual void append(unsigned int index, Kwave::playback_method_t data, const QString &name, const QString &description)
Definition: TypesMap.h:72
#define _(m)
Definition: memcpy.c:66
Here is the call graph for this function:

The documentation for this class was generated from the following files: