kplayobject.h
/*
Copyright (C) 2001 Nikolas Zimmermann <wildfox@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KPLAYOBJECT_H
#define KPLAYOBJECT_H
#include "kmedia2.h"
#include "soundserver.h"
#include <kurl.h>
#include <qobject.h>
class KDE_EXPORT KPlayObject : public QObject
{
Q_OBJECT
public:
KPlayObject();
KPlayObject(Arts::PlayObject playobject, bool isStream);
~KPlayObject();
void setObject(Arts::PlayObject playObject);
Arts::PlayObject object();
bool isNull();
bool stream();
void play();
void seek(Arts::poTime newTime);
void pause();
void halt();
QString description();
Arts::poTime currentTime();
Arts::poTime overallTime();
Arts::poCapabilities capabilities();
QString mediaName();
Arts::poState state();
private:
Arts::PlayObject m_playObject;
bool m_isStream;
};
namespace KDE {
class PlayObjectFactory;
class KDE_EXPORT PlayObject : public QObject
{
Q_OBJECT
public:
~PlayObject();
Arts::PlayObject object();
bool isNull();
bool stream();
void play();
void seek(Arts::poTime newTime);
void pause();
void halt();
QString description();
Arts::poTime currentTime();
Arts::poTime overallTime();
Arts::poCapabilities capabilities();
QString mediaName();
Arts::poState state();
signals:
void playObjectCreated();
private slots:
void attachPlayObject( Arts::PlayObject );
private:
Arts::PlayObject m_playObject;
bool m_isStream;
struct PrivateData;
PrivateData* d;
/* private constructors, to prevent instantiation and copying */
PlayObject();
PlayObject( const PlayObject& ) : QObject() {};
PlayObject(Arts::PlayObject playobject, bool isStream);
PlayObject( Arts::SoundServerV2 server, const KURL& url, bool isStream, bool createBUS );
friend class KDE::PlayObjectFactory;
};
}
#endif
KURL
KStdAccel::description
QString description(StdAccel id) KDE_DEPRECATED
KDE::PlayObject
This class acts as a general interface to the KDE multimedia framework.
Definition: kplayobject.h:188
KDE::PlayObjectFactory
This class implements a factory to create KDE::PlayObjects for a given URL and mimetype.
Definition: kplayobjectfactory.h:79

KDE Home | KDE Accessibility Home | Description of Access Keys