summaryrefslogtreecommitdiff
path: root/src/QGst/propertyprobe.h
blob: 75714e6d4a2c1df80d49910eee9b505e008be580 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
    Copyright (C) 2010 George Kiagiadakis <kiagiadakis.george@gmail.com>

    This library is free software; you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published
    by the Free Software Foundation; either version 2.1 of the License, or
    (at your option) any later version.

    This program 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 General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef QGST_PROPERTYPROBE_H
#define QGST_PROPERTYPROBE_H

#include "global.h"
#include "../QGlib/object.h"

namespace QGst {

/*! \interface PropertyProbe propertyprobe.h <QGst/PropertyProbe>
 * \brief Wrapper class for GstPropertyProbe
 */
class PropertyProbe : public QGlib::Interface
{
    QGST_WRAPPER(PropertyProbe)
public:
    QList<QGlib::ParamSpecPtr> properties() const;

    bool propertySupportsProbe(const QGlib::ParamSpecPtr & property) const;
    bool propertySupportsProbe(const char *property) const;

    bool needsProbe(const QGlib::ParamSpecPtr & property) const;
    bool needsProbe(const char *property) const;

    void probe(const QGlib::ParamSpecPtr & property);
    void probe(const char *property);

    QList<QGlib::Value> values(const QGlib::ParamSpecPtr & property) const;
    QList<QGlib::Value> values(const char *property) const;

    QList<QGlib::Value> probeAndGetValues(const QGlib::ParamSpecPtr & property);
    QList<QGlib::Value> probeAndGetValues(const char *property);
};

}

QGLIB_REGISTER_TYPE(QGst::PropertyProbe)

#endif // QGST_PROPERTYPROBE_H