• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • arts
 

arts

  • arts
  • kde
kplayobject.h
1  /*
2 
3  Copyright (C) 2001 Nikolas Zimmermann <wildfox@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 
20  */
21 
22 #ifndef KPLAYOBJECT_H
23 #define KPLAYOBJECT_H
24 
25 #include "kmedia2.h"
26 #include "soundserver.h"
27 #include <kurl.h>
28 #include <tqobject.h>
29 
30 class KDE_EXPORT KPlayObject : public TQObject
31 {
32 Q_OBJECT
33 public:
34  KPlayObject();
35  KPlayObject(Arts::PlayObject playobject, bool isStream);
36  ~KPlayObject();
37 
42  void setObject(Arts::PlayObject playObject);
43 
47  Arts::PlayObject object();
48 
55  bool isNull();
56 
61  bool stream();
62 
66  void play();
67 
71  void seek(Arts::poTime newTime);
72 
76  void pause();
77 
82  void halt();
83 
87  TQString description();
88 
92  Arts::poTime currentTime();
93 
97  Arts::poTime overallTime();
98 
102  Arts::poCapabilities capabilities();
103 
107  TQString mediaName();
108 
112  Arts::poState state();
113 
114 private:
115  Arts::PlayObject m_playObject;
116  bool m_isStream;
117 };
118 
119 
120 
121 namespace KDE {
122 
123 class PlayObjectFactory;
124 
188 class KDE_EXPORT PlayObject : public TQObject
189 {
190 Q_OBJECT
191 public:
192  ~PlayObject();
193 
197  Arts::PlayObject object();
198 
205  bool isNull();
206 
210  bool stream();
211 
215  void play();
216 
221  void seek(Arts::poTime newTime);
222 
229  void pause();
230 
237  void halt();
238 
242  TQString description();
243 
247  Arts::poTime currentTime();
248 
252  Arts::poTime overallTime();
253 
258  Arts::poCapabilities capabilities();
259 
263  TQString mediaName();
264 
272  Arts::poState state();
273 
274 signals:
282  void playObjectCreated();
283 
284 private slots:
285  void attachPlayObject( Arts::PlayObject );
286 
287 private:
288  Arts::PlayObject m_playObject;
289  bool m_isStream;
290 
291  struct PrivateData;
292  PrivateData* d;
293 
294  /* private constructors, to prevent instantiation and copying */
295  PlayObject();
296  PlayObject( const PlayObject& ) : TQObject() {};
297  PlayObject(Arts::PlayObject playobject, bool isStream);
298  PlayObject( Arts::SoundServerV2 server, const KURL& url, bool isStream, bool createBUS );
299 
300  friend class KDE::PlayObjectFactory;
301 
302 };
303 
304 }
305 
306 #endif
TDEStdAccel::description
TQString description(StdAccel id) KDE_DEPRECATED
KURL
KDE::PlayObject
This class acts as a general interface to the KDE multimedia framework.
Definition: kplayobject.h:188
KDE
KDE::PlayObjectFactory
This class implements a factory to create KDE::PlayObjects for a given URL and mimetype.
Definition: kplayobjectfactory.h:79

arts

Skip menu "arts"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

arts

Skip menu "arts"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for arts by doxygen 1.8.8
This website is maintained by Timothy Pearson.