Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
24
26{
27public:
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
73
74#endif
QString comment() const
bool update(const strm_dict_t *dict)
QString mediaType() const
qlonglong duration() const
\inmodule QtCore
Definition qsize.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
struct strm_dict strm_dict_t
qint64 qlonglong
Definition qtypes.h:63