view.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KMEDIAPLAYERVIEW_H
00025 #define KMEDIAPLAYERVIEW_H
00026
00027 #include <qwidget.h>
00028
00029 namespace KMediaPlayer
00030 {
00031
00033 class View : public QWidget
00034 {
00035 Q_OBJECT
00036
00037 public:
00039 View(QWidget *parent, const char *name);
00040 virtual ~View(void);
00041
00043 enum Button
00044 {
00046 Play = 1,
00048 Stop = 2,
00050 Pause = 4,
00052 Seeker = 8,
00054 All = 255
00055 };
00056
00058 int buttons(void);
00059
00062 QWidget *videoWidget();
00063
00064 public slots:
00066 void setButtons(int);
00067
00069 bool button(int);
00071 void showButton(int);
00073 void hideButton(int);
00075 void toggleButton(int);
00076
00077 signals:
00079 void buttonsChanged(int);
00080
00081 protected:
00086 void setVideoWidget(QWidget *videoWidget);
00087
00088 private:
00089 int currentButtons;
00090
00091 struct Data;
00092 Data *d;
00093 };
00094
00095 }
00096
00097 #endif
This file is part of the documentation for interfaces Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:45:05 2004 by
doxygen 1.3.6-20040222 written by
Dimitri van Heesch, © 1997-2003