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

okular

  • sources
  • kde-4.12
  • 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  ~AudioPlayer();
36 
40  static AudioPlayer * instance();
41 
46  void playSound( const Sound * sound, const SoundAction * linksound = 0 );
47 
51  void stopPlaybacks();
52 
53  private:
54  AudioPlayer();
55 
56  friend class AudioPlayerPrivate;
57  AudioPlayerPrivate * const d;
58  friend class Document;
59 
60  Q_DISABLE_COPY( AudioPlayer )
61  Q_PRIVATE_SLOT( d, void finished( int ) )
62 };
63 
64 }
65 
66 #endif
QObject
okular_export.h
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::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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 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