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

okular

  • sources
  • kde-4.14
  • kdegraphics
  • okular
  • core
audioplayer.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef _OKULAR_AUDIOPLAYER_H_
11 #define _OKULAR_AUDIOPLAYER_H_
12 
13 #include "okular_export.h"
14 
15 #include <QtCore/QObject>
16 
17 namespace Okular {
18 
19 class AudioPlayerPrivate;
20 class Document;
21 class Sound;
22 class SoundAction;
23 
30 class OKULAR_EXPORT AudioPlayer : public QObject
31 {
32  Q_OBJECT
33 
34  public:
35 
40  enum State
41  {
45  PlayingState,
49  StoppedState
50  };
51 
52  ~AudioPlayer();
53 
57  static AudioPlayer * instance();
58 
63  void playSound( const Sound * sound, const SoundAction * linksound = 0 );
64 
68  void stopPlaybacks();
69 
74  State state() const;
75 
76  private:
77  AudioPlayer();
78 
79  friend class AudioPlayerPrivate;
80  AudioPlayerPrivate * const d;
81  friend class Document;
82 
83  Q_DISABLE_COPY( AudioPlayer )
84  Q_PRIVATE_SLOT( d, void finished( int ) )
85 };
86 
87 }
88 
89 #endif
Okular::AudioPlayer::State
State
The state of AudioPlayer.
Definition: audioplayer.h:40
okular_export.h
QObject
Okular::AudioPlayer
An audio player.
Definition: audioplayer.h:30
Okular::Document
The Document.
Definition: document.h:84
Okular::Sound
Contains information about a sound object.
Definition: sound.h:26
Okular::AudioPlayer::PlayingState
The AudioPlayer is playing a audio file.
Definition: audioplayer.h:45
Okular::AudioPlayerPrivate
Definition: audioplayer_p.h:26
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
Okular::SoundAction
The Sound action plays a sound on activation.
Definition: action.h:323
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:25 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

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

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

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