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

parley

  • sources
  • kde-4.12
  • kdeedu
  • parley
  • src
  • practice
audiobutton.h
Go to the documentation of this file.
1 /***************************************************************************
2  Copyright 2010 Daniel Laidig <d.laidig@gmx.de>
3  ***************************************************************************/
4 
5 /***************************************************************************
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #ifndef PRACTICE_AUDIOBUTTON_H
15 #define PRACTICE_AUDIOBUTTON_H
16 
17 #include <QtGui/QToolButton>
18 #include <kurl.h>
19 
20 #include <Phonon/MediaObject>
21 
22 namespace Practice {
23 
24 class AudioButton : public QToolButton
25 {
26  Q_OBJECT
27 public:
28  AudioButton(QWidget *parent);
29  void setSoundFile(KUrl url);
30 
31 private Q_SLOTS:
32  void playAudio();
33  void playerStateChanged(Phonon::State newState);
34 
35 private:
36  Phonon::MediaObject *m_player;
37  KUrl m_url;
38 };
39 
40 }
41 
42 #endif // PRACTICE_AUDIOBUTTON_H
QWidget
Practice::AudioButton::AudioButton
AudioButton(QWidget *parent)
Definition: audiobutton.cpp:21
Practice::AudioButton
Definition: audiobutton.h:24
Practice::AudioButton::setSoundFile
void setSoundFile(KUrl url)
Definition: audiobutton.cpp:31
QToolButton
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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