[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    API proposal: Phonon BackendInfo
From:       Harald Sitter <sitter () kde ! org>
Date:       2012-09-09 11:51:29
Message-ID: CAEc+18FfRsdneK4KOYDH96arzSf7coVvs=ffXK9O=49H73i8Sw () mail ! gmail ! com
[Download RAW message or body]

ahoyahoy

attached is a proposed api for phonon backend information as both
amarok and tomahawk have diagnostics functionality that needs accurate
information on the loaded backend. this addition would would address
[1].

feedback would be much appreciated.

implementation-wise this is a no-brainer as we have all the
information in the factory already, it is just a matter of exposing
it.

[1] https://bugs.kde.org/show_bug.cgi?id=306250

HS

["backendinfo.h" (text/x-chdr)]

#ifndef PHONON_BACKENDINFO_H
#define PHONON_BACKENDINFO_H

#include <QtCore/QString>

namespace Phonon {

class BackendInfo
{
public:
    /** @returns Name of the backend (e.g. Phonon-VLC) */
    QString name() const;

    /** @returns Version of the backend (e.g. 0.6.0) */
    QString version() const;

    /** @returns \c true when this backend was provided by a platform plugin */
    bool isPlatformProvided() const;

    /**
     * @returns Path the backend plugin file is located at or an empty string
     *          if the backend was provided by a platform plugin.
     */
    QString path() const;

#warning TODO: do we really want this here?
    /** @returns \c true when the backend uses PulseAudio */
    bool usesPulseAudio();

private:
    BackendInfo();
};

} // namespace Phonon

#endif // PHONON_BACKENDINFO_H


_______________________________________________
kde-multimedia mailing list
kde-multimedia@kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic