Okular::SoundAction
#include <action.h>

Public Member Functions | |
SoundAction (double volume, bool synchronous, bool repeat, bool mix, Okular::Sound *sound) | |
~SoundAction () override | |
QString | actionTip () const override |
ActionType | actionType () const override |
bool | mix () const |
bool | repeat () const |
Okular::Sound * | sound () const |
bool | synchronous () const |
double | volume () const |
![]() | |
virtual | ~Action () |
QVariant | nativeId () const |
QVector< Action * > | nextActions () const |
void | setNativeId (const QVariant &id) |
void | setNextActions (const QVector< Action * > &actions) |
Additional Inherited Members | |
![]() | |
enum | ActionType { Goto, Execute, Browse, DocAction, Sound, Movie, Script, Rendition, BackendOpaque } |
Detailed Description
Constructor & Destructor Documentation
◆ SoundAction()
SoundAction::SoundAction | ( | double | volume, |
bool | synchronous, | ||
bool | repeat, | ||
bool | mix, | ||
Okular::Sound * | sound | ||
) |
Creates a new sound action.
- Parameters
-
volume The volume of the sound. synchronous Whether the sound shall be played synchronous. repeat Whether the sound shall be repeated. mix Whether the sound shall be mixed. sound The sound object which contains the sound data.
Definition at line 339 of file action.cpp.
◆ ~SoundAction()
|
override |
Destroys the sound action.
Definition at line 344 of file action.cpp.
Member Function Documentation
◆ actionTip()
|
overridevirtual |
Returns the action tip.
Reimplemented from Okular::Action.
Definition at line 353 of file action.cpp.
◆ actionType()
|
overridevirtual |
◆ mix()
bool SoundAction::mix | ( | ) | const |
Returns whether the sound shall be mixed.
Definition at line 376 of file action.cpp.
◆ repeat()
bool SoundAction::repeat | ( | ) | const |
Returns whether the sound shall be repeated.
Definition at line 370 of file action.cpp.
◆ sound()
Okular::Sound * SoundAction::sound | ( | ) | const |
Returns the sound object which contains the sound data.
Definition at line 382 of file action.cpp.
◆ synchronous()
bool SoundAction::synchronous | ( | ) | const |
Returns whether the sound shall be played synchronous.
Definition at line 364 of file action.cpp.
◆ volume()
double SoundAction::volume | ( | ) | const |
Returns the volume of the sound.
Definition at line 358 of file action.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:08:33 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.