• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KMediaPlayer

  • interfaces
  • kmediaplayer
view.h
Go to the documentation of this file.
1// Copyright (C) 2002 Neil Stevens <neil@qualityassistant.com>
2//
3// Permission is hereby granted, free of charge, to any person obtaining a copy
4// of this software and associated documentation files (the "Software"), to deal
5// in the Software without restriction, including without limitation the rights
6// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7// copies of the Software, and to permit persons to whom the Software is
8// furnished to do so, subject to the following conditions:
9//
10// The above copyright notice and this permission notice shall be included in
11// all copies or substantial portions of the Software.
12//
13// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16// THE AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
17// AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19//
20// Except as contained in this notice, the name(s) of the author(s) shall not be
21// used in advertising or otherwise to promote the sale, use or other dealings
22// in this Software without prior written authorization from the author(s).
23
24#ifndef KMEDIAPLAYERVIEW_H
25#define KMEDIAPLAYERVIEW_H
26
27#include <QtGui/QWidget>
28#include <kmediaplayer/kmediaplayer_export.h>
29
30namespace KMediaPlayer
31{
32
34class KMEDIAPLAYER_EXPORT View : public QWidget
35{
36Q_OBJECT
37
38public:
40 View(QWidget *parent);
41 virtual ~View(void);
42
44 enum Button
45 {
47 Play = 1,
49 Stop = 2,
51 Pause = 4,
53 Seeker = 8,
55 All = 255
56 };
57
59 int buttons(void);
60
63 QWidget *videoWidget();
64
65public Q_SLOTS:
67 void setButtons(int);
68
70 bool button(int);
72 void showButton(int);
74 void hideButton(int);
76 void toggleButton(int);
77
78Q_SIGNALS:
80 void buttonsChanged(int);
81
82protected:
87 void setVideoWidget(QWidget *videoWidget);
88
89private:
90 int currentButtons;
91
92 struct Data;
93 Data *d;
94};
95
96}
97
98#endif
KMediaPlayer::View
View is part of the user interface of a Player.
Definition: view.h:35
KMediaPlayer::View::buttonsChanged
void buttonsChanged(int)
Emitted when the set of displayed buttons changes.
KMediaPlayer::View::Button
Button
The Possible buttons that can appear in the UI.
Definition: view.h:45
QWidget
kmediaplayer_export.h
KMediaPlayer
KMediaPlayer contains an interface to reusable media player components.
Definition: player.h:33
Stop
Stop
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KMediaPlayer

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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