interfaces Library API Documentation

view.h

00001 // Copyright (C) 2002 Neil Stevens <neil@qualityassistant.com>
00002 //
00003 // Permission is hereby granted, free of charge, to any person obtaining a copy
00004 // of this software and associated documentation files (the "Software"), to deal
00005 // in the Software without restriction, including without limitation the rights
00006 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
00007 // copies of the Software, and to permit persons to whom the Software is
00008 // furnished to do so, subject to the following conditions:
00009 //
00010 // The above copyright notice and this permission notice shall be included in
00011 // all copies or substantial portions of the Software.
00012 //
00013 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00014 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00015 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00016 // THE AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00017 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00018 // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00019 //
00020 // Except as contained in this notice, the name(s) of the author(s) shall not be
00021 // used in advertising or otherwise to promote the sale, use or other dealings
00022 // in this Software without prior written authorization from the author(s).
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
KDE Logo
This file is part of the documentation for interfaces Library Version 3.2.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Feb 4 12:36:08 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2003