• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

interfaces

view.h

Go to the documentation of this file.
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 #include <kdelibs_export.h>
00029 
00030 namespace KMediaPlayer
00031 {
00032 
00034 class KDE_EXPORT View : public QWidget
00035 {
00036 Q_OBJECT
00037 
00038 public:
00040     View(QWidget *parent, const char *name);
00041     virtual ~View(void);
00042 
00044     enum Button
00045     {
00047         Play = 1,
00049         Stop = 2,
00051         Pause = 4,
00053         Seeker = 8,
00055         All = 255
00056     };
00057 
00059     int buttons(void);
00060 
00063     QWidget *videoWidget();
00064 
00065 public slots:
00067     void setButtons(int);
00068 
00070     bool button(int);
00072     void showButton(int);
00074     void hideButton(int);
00076     void toggleButton(int);
00077 
00078 signals:
00080     void buttonsChanged(int);
00081 
00082 protected:
00087     void setVideoWidget(QWidget *videoWidget);
00088 
00089 private:
00090     int currentButtons;
00091 
00092     struct Data;
00093     Data *d;
00094 };
00095 
00096 }
00097 
00098 #endif

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal