digiKam
mimefilter.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 : 2007-10-22
7  * Description : a widget to filter album contents by type mime
8  *
9  * Copyright (C) 2007-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * 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_MIME_FILTER_H
25 #define DIGIKAM_MIME_FILTER_H
26 
27 // Qt includes
28 
29 #include <QComboBox>
30 
31 namespace Digikam
32 {
33 
34 class MimeFilter : public QComboBox
35 {
36  Q_OBJECT
37 
38 public:
39 
41  {
42  AllFiles = 0,
50  HEIFFiles, // HEVC H265 compression based containers.
52  RAWFiles, // All Raw file formats such as nef, cr2, arw, pef, etc..
55  RasterGraphics // PSD, XCF, etc...
56  };
57 
58 public:
59 
60  explicit MimeFilter(QWidget* const parent);
61  ~MimeFilter() override;
62 
63  void setMimeFilter(int filter);
64  int mimeFilter();
65 };
66 
67 } // namespace Digikam
68 
69 #endif // DIGIKAM_MIME_FILTER_H
Definition: mimefilter.h:35
void setMimeFilter(int filter)
Definition: mimefilter.cpp:63
MimeFilter(QWidget *const parent)
Definition: mimefilter.cpp:33
int mimeFilter()
Definition: mimefilter.cpp:69
~MimeFilter() override
Definition: mimefilter.cpp:59
TypeMimeFilter
Definition: mimefilter.h:41
@ AllFiles
Definition: mimefilter.h:42
@ PNGFiles
Definition: mimefilter.h:47
@ TIFFiles
Definition: mimefilter.h:48
@ ImageFiles
Definition: mimefilter.h:43
@ MoviesFiles
Definition: mimefilter.h:53
@ RasterGraphics
Definition: mimefilter.h:55
@ AudioFiles
Definition: mimefilter.h:54
@ HEIFFiles
Definition: mimefilter.h:50
@ JPEG2000Files
Definition: mimefilter.h:46
@ NoRAWFiles
Definition: mimefilter.h:44
@ DNGFiles
Definition: mimefilter.h:51
@ JPGFiles
Definition: mimefilter.h:45
@ RAWFiles
Definition: mimefilter.h:52
@ PGFFiles
Definition: mimefilter.h:49
Definition: datefolderview.cpp:43