• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • routing
NullAudioOutput.cpp
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2011 Dennis Nienhüser <earthwings@gentoo.org>
9 //
10 
11 #include "AudioOutput.h"
12 
13 #include "MarbleDirs.h"
14 #include "MarbleDebug.h"
15 #include "routing/instructions/RoutingInstruction.h"
16 
17 namespace Marble
18 {
19 
20 class AudioOutputPrivate
21 {
22 public:
23  void audioOutputFinished();
24  void playInstructions();
25 };
26 
27 void AudioOutputPrivate::audioOutputFinished()
28 {
29  // nothing to do
30 }
31 
32 void AudioOutputPrivate::playInstructions()
33 {
34  // nothing to do
35 }
36 
37 AudioOutput::AudioOutput( QObject* parent ) : QObject( parent ),
38  d( new AudioOutputPrivate )
39 {
40  // nothing to do
41 }
42 
43 AudioOutput::~AudioOutput()
44 {
45  delete d;
46 }
47 
48 void AudioOutput::update( const Route &, qreal, qreal, bool )
49 {
50  // nothing to do
51 }
52 
53 void AudioOutput::setMuted( bool )
54 {
55  // nothing to do
56 }
57 
58 bool AudioOutput::isMuted() const
59 {
60  return true;
61 }
62 
63 void AudioOutput::setSpeaker( const QString & )
64 {
65  // nothing to do
66 }
67 
68 QString AudioOutput::speaker() const
69 {
70  return QString();
71 }
72 
73 void AudioOutput::setSoundEnabled( bool )
74 {
75  // nothing to do
76 }
77 
78 bool AudioOutput::isSoundEnabled() const
79 {
80  return false;
81 }
82 
83 }
84 
85 #include "AudioOutput.moc"
Marble::AudioOutput::setMuted
void setMuted(bool muted)
Toggle muting (neither sound nor voice output)
Definition: AudioOutput.cpp:108
RoutingInstruction.h
Marble::AudioOutput::setSoundEnabled
void setSoundEnabled(bool enabled)
Toggle whether sound output is used instead of a speaker.
Definition: AudioOutput.cpp:128
Marble::AudioOutput::~AudioOutput
~AudioOutput()
Destructor.
Definition: AudioOutput.cpp:98
MarbleDebug.h
Marble::AudioOutput::speaker
QString speaker() const
Definition: AudioOutput.cpp:123
Marble::AudioOutput::setSpeaker
void setSpeaker(const QString &speaker)
Change the speaker to use.
Definition: AudioOutput.cpp:118
QObject
MarbleDirs.h
QString
Marble::AudioOutput::isSoundEnabled
bool isSoundEnabled() const
Definition: AudioOutput.cpp:133
Marble::AudioOutput::AudioOutput
AudioOutput(QObject *parent=0)
Constructor.
Definition: AudioOutput.cpp:92
Marble::AudioOutput::update
void update(const Route &route, qreal distanceManeuver, qreal distanceTarget, bool deviated)
Generate an audible notification (if needed) after the position on the route has changed.
Definition: AudioOutput.cpp:103
AudioOutput.h
Marble::AudioOutput::isMuted
bool isMuted() const
Definition: AudioOutput.cpp:113
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal