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

arts

  • arts
  • kde
kplayobjectfactory.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 KPLAYOBJECTFACTORY_H
23 #define KPLAYOBJECTFACTORY_H
24 
25 #include <kurl.h>
26 #include <kdelibs_export.h>
27 
28 #include "soundserver.h"
29 #include "kplayobject.h"
30 
31 class KArtsServer;
32 
33 class KDE_EXPORT KPlayObjectFactory
34 {
35 public:
40  KPlayObjectFactory(Arts::SoundServerV2 server);
41 
49  KPlayObjectFactory(KArtsServer* server);
50 
51  ~KPlayObjectFactory();
52 
53  KPlayObject *createPlayObject(const KURL& url, bool createBUS);
54  KPlayObject *createPlayObject(const KURL& url, const TQString &mimetype, bool createBUS);
55 
56  void setAllowStreaming(bool s) { m_allowStreaming = s; }
57  bool allowStreaming() { return m_allowStreaming; }
58 
59  bool isAStream() { return m_stream; }
60 
61 private:
62  Arts::SoundServerV2 m_server;
63  bool m_allowStreaming;
64  bool m_stream;
65 };
66 
67 class KAudioManagerPlay;
68 
69 namespace KDE {
70 
71 class POFHelper;
72 
79 class KDE_EXPORT PlayObjectFactory// : public TQObject ### for KDE4 make it a TQObject to be able to receive signals
80 {
81 public:
86  PlayObjectFactory(Arts::SoundServerV2 server);
94  PlayObjectFactory( KArtsServer* server );
95  ~PlayObjectFactory();
96 
101  void setAudioManagerPlay( KAudioManagerPlay * amanplay );
102 
113  KDE::PlayObject *createPlayObject(const KURL& url, bool createBUS);
114 
119  KDE::PlayObject *createPlayObject(const KURL& url, const TQString &mimetype, bool createBUS);
120 
126  void setAllowStreaming(bool s) { d->allowStreaming = s; }
127 
132  bool allowStreaming() { return d->allowStreaming; }
133 
137  static TQStringList mimeTypes(void);
138 
139 /*private slots: ### KDE4 and remove Helper class
140  void connectAmanPlay();*/
141 
142 private:
143  struct PrivateData {
144  Arts::SoundServerV2 server;
145  KDE::PlayObject* playObj;
146  KAudioManagerPlay* amanPlay;
147  POFHelper* helper;
148  bool allowStreaming;
149  bool isStream;
150  };
151  PrivateData* d;
152 };
153 
154 }
155 #endif
156 // vim: sw=4 ts=4 noet
KURL
KArtsServer
KArtsServer is a wrapper to conveniently get a reference to a SoundServer, and restart artsd when nec...
Definition: kartsserver.h:37
KDE::PlayObjectFactory::allowStreaming
bool allowStreaming()
returns "true" if the factory is allowed to create streaming PlayObjects.
Definition: kplayobjectfactory.h:132
KDE::PlayObject
This class acts as a general interface to the KDE multimedia framework.
Definition: kplayobject.h:188
KDE
KAudioManagerPlay
KDE Wrapper for Arts::Synth_AMAN_PLAY.
Definition: kaudiomanagerplay.h:38
KDE::PlayObjectFactory::setAllowStreaming
void setAllowStreaming(bool s)
setAllowStreaming( true ) allows the factory to create a streaming PlayObject for a non-local URL...
Definition: kplayobjectfactory.h:126
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
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for arts by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |