digiKam
tableview_column_audiovideo.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2013-05-13
7  * Description : Table view column helpers: Audio/video properties
8  *
9  * Copyright (C) 2017-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2013 by Michael G. Hansen <mike at mghansen dot de>
11  *
12  * This program is free software; you can redistribute it
13  * and/or modify it under the terms of the GNU General
14  * Public License as published by the Free Software Foundation;
15  * either version 2, or (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_TABLE_VIEW_COLUMN_AUDIOVIDEO_H
25 #define DIGIKAM_TABLE_VIEW_COLUMN_AUDIOVIDEO_H
26 
27 // Qt includes
28 
29 #include <QStringList>
30 
31 // Local includes
32 
34 
35 namespace Digikam
36 {
37 
38 namespace TableViewColumns
39 {
40 
42 {
43  Q_OBJECT
44 
45 public:
46 
47  enum SubColumn
48  {
55  };
56 
57 public:
58 
59  explicit ColumnAudioVideoProperties(TableViewShared* const tableViewShared,
60  const TableViewColumnConfiguration& pConfiguration,
61  const SubColumn pSubColumn,
62  QObject* const parent = nullptr);
63  ~ColumnAudioVideoProperties() override;
64 
65  QString getTitle() const override;
66  ColumnFlags getColumnFlags() const override;
67  QVariant data(TableViewModel::Item* const item, const int role) const override;
68  ColumnCompareResult compare(TableViewModel::Item* const itemA, TableViewModel::Item* const itemB) const override;
69  void setConfiguration(const TableViewColumnConfiguration& newConfiguration) override;
70 
72  static QStringList getSubColumns();
73 
74 private:
75 
76  SubColumn subColumn;
77 };
78 
79 } // namespace TableViewColumns
80 
81 } // namespace Digikam
82 
83 #endif // DIGIKAM_TABLE_VIEW_COLUMN_AUDIOVIDEO_H
Definition: tableview_columnfactory.h:50
Definition: tableview_columnfactory.h:81
Definition: tableview_columnfactory.h:196
ColumnCompareResult
Definition: tableview_columnfactory.h:216
Definition: tableview_column_audiovideo.h:42
ColumnCompareResult compare(TableViewModel::Item *const itemA, TableViewModel::Item *const itemB) const override
Definition: tableview_column_audiovideo.cpp:239
void setConfiguration(const TableViewColumnConfiguration &newConfiguration) override
Definition: tableview_column_audiovideo.cpp:318
ColumnAudioVideoProperties(TableViewShared *const tableViewShared, const TableViewColumnConfiguration &pConfiguration, const SubColumn pSubColumn, QObject *const parent=nullptr)
Definition: tableview_column_audiovideo.cpp:47
SubColumn
Definition: tableview_column_audiovideo.h:48
@ SubColumnFrameRate
Definition: tableview_column_audiovideo.h:53
@ SubColumnVideoCodec
Definition: tableview_column_audiovideo.h:54
@ SubColumnAudioBitRate
Definition: tableview_column_audiovideo.h:49
@ SubColumnAudioChannelType
Definition: tableview_column_audiovideo.h:50
@ SubColumnAudioCodec
Definition: tableview_column_audiovideo.h:51
@ SubColumnDuration
Definition: tableview_column_audiovideo.h:52
QVariant data(TableViewModel::Item *const item, const int role) const override
Definition: tableview_column_audiovideo.cpp:144
ColumnFlags getColumnFlags() const override
Definition: tableview_column_audiovideo.cpp:126
static QStringList getSubColumns()
Definition: tableview_column_audiovideo.cpp:60
QString getTitle() const override
Definition: tableview_column_audiovideo.cpp:88
~ColumnAudioVideoProperties() override
Definition: tableview_column_audiovideo.cpp:56
static TableViewColumnDescription getDescription()
Definition: tableview_column_audiovideo.cpp:73
Definition: tableview_model.h:71
Definition: tableview_shared.h:44
Definition: datefolderview.cpp:43