• 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
30class TDE_EXPORT KPlayObject : public TQObject
31{
32TQ_OBJECT
33public:
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
114private:
115 Arts::PlayObject m_playObject;
116 bool m_isStream;
117};
118
119
120
121namespace KDE {
122
123class PlayObjectFactory;
124
188class TDE_EXPORT PlayObject : public TQObject
189{
190TQ_OBJECT
191public:
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
274signals:
282 void playObjectCreated();
283
284private slots:
285 void attachPlayObject( Arts::PlayObject );
286
287private:
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
KDE::PlayObjectFactory
This class implements a factory to create KDE::PlayObjects for a given URL and mimetype.
Definition: kplayobjectfactory.h:80
KDE::PlayObject
This class acts as a general interface to the KDE multimedia framework.
Definition: kplayobject.h:189
KDE::PlayObject::playObjectCreated
void playObjectCreated()
this signal is emitted as soon as the internal Arts::PlayObject is created and ready to play.
KURL
TDEStdAccel::description
TQString description(StdAccel id)

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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for arts by doxygen 1.9.4
This website is maintained by Timothy Pearson.