Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxmediametadata_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 Research In Motion
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3#ifndef QQnxMediaMetaData_H
4#define QQnxMediaMetaData_H
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15//
16
17#include <QtCore/qglobal.h>
18#include <QtCore/QSize>
19#include <QtCore/QString>
20
21typedef struct strm_dict strm_dict_t;
22
23QT_BEGIN_NAMESPACE
24
25class QQnxMediaMetaData
26{
27public:
28 QQnxMediaMetaData();
29 bool update(const strm_dict_t *dict);
30 void clear();
31
32 // Duration in milliseconds
33 qlonglong duration() const;
34
35 int height() const;
36 int width() const;
37 bool hasVideo() const;
38 bool hasAudio() const;
39 bool isSeekable() const;
40
41 QString title() const;
42 QString artist() const;
43 QString comment() const;
44 QString genre() const;
45 int year() const;
46 QString mediaType() const;
47 int audioBitRate() const;
48 int sampleRate() const;
49 QString album() const;
50 int track() const;
51 QSize resolution() const;
52
53private:
54 qlonglong m_duration;
55 int m_height;
56 int m_width;
57 int m_mediaType;
58 float m_pixelWidth;
59 float m_pixelHeight;
60 bool m_seekable;
61 QString m_title;
62 QString m_artist;
63 QString m_comment;
64 QString m_genre;
65 int m_year;
66 int m_audioBitRate;
67 int m_sampleRate;
68 QString m_album;
69 int m_track;
70};
71
72QT_END_NAMESPACE
73
74#endif
static const char * widthKey
static const char * trackKey
static const char * titleKey
static const char * pixelHeightKey
static const char * trackPixelHeightKey
static const char * artistKey
static const char * trackHeightKey
static const char * trackPixelWidthKey
static const char * pixelWidthKey
static const char * mediaTypeKey
static const char * genreKey
static const char * trackSampleKey
static const char * bitRateKey
static const char * trackWidthKey
static const char * trackBitRateKey
static const int mediaTypeAudioFlag
static const char * yearKey
static const char * durationKey
static const int mediaTypeVideoFlag
static const char * strm_string_getx(const strm_string_t *sstr, const char *defaultValue)
static const char * commentKey
static const char * heightKey
static const char * sampleKey
static const char * albumKey
static const char * seekableKey
struct strm_dict strm_dict_t