digiKam
cameratype.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 : 2003-01-29
7  * Description : Camera settings container.
8  *
9  * Copyright (C) 2003-2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2006-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
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)
16  * any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * ============================================================ */
24 
25 #ifndef DIGIKAM_CAMERA_TYPE_H
26 #define DIGIKAM_CAMERA_TYPE_H
27 
28 // Qt includes
29 
30 #include <QString>
31 #include <QPointer>
32 
33 class QAction;
34 
35 namespace Digikam
36 {
37 
38 class ImportUI;
39 
41 {
42 public:
43 
44  CameraType();
45  CameraType(const QString& title, const QString& model,
46  const QString& port, const QString& path,
47  int startingNumber, QAction* const action = nullptr);
48  ~CameraType();
49 
50  CameraType(const CameraType& ctype);
51  CameraType& operator=(const CameraType& type);
52 
53  void setTitle(const QString& title);
54  void setModel(const QString& model);
55  void setPort(const QString& port);
56  void setPath(const QString& path);
57  void setStartingNumber(int sn);
58  void setAction(QAction* const action);
59  void setValid(bool valid);
60  void setCurrentImportUI(ImportUI* const importui);
61 
62  QString title() const;
63  QString model() const;
64  QString port() const;
65  QString path() const;
66  int startingNumber() const;
67  QAction* action() const;
68  bool valid() const;
69  ImportUI* currentImportUI() const;
70 
71 private:
72 
73  class Private;
74  Private* const d;
75 };
76 
77 } // namespace Digikam
78 
79 #endif // DIGIKAM_CAMERA_TYPE_H
Definition: cameratype.h:41
int startingNumber() const
Definition: cameratype.cpp:175
QAction * action() const
Definition: cameratype.cpp:180
CameraType & operator=(const CameraType &type)
Definition: cameratype.cpp:99
void setPort(const QString &port)
Definition: cameratype.cpp:125
ImportUI * currentImportUI() const
Definition: cameratype.cpp:190
void setAction(QAction *const action)
Definition: cameratype.cpp:140
void setModel(const QString &model)
Definition: cameratype.cpp:120
CameraType()
Definition: cameratype.cpp:63
void setCurrentImportUI(ImportUI *const importui)
Definition: cameratype.cpp:150
QString port() const
Definition: cameratype.cpp:165
void setPath(const QString &path)
Definition: cameratype.cpp:130
bool valid() const
Definition: cameratype.cpp:185
QString path() const
Definition: cameratype.cpp:170
QString title() const
Definition: cameratype.cpp:155
~CameraType()
Definition: cameratype.cpp:82
void setTitle(const QString &title)
Definition: cameratype.cpp:115
void setValid(bool valid)
Definition: cameratype.cpp:145
QString model() const
Definition: cameratype.cpp:160
void setStartingNumber(int sn)
Definition: cameratype.cpp:135
Definition: importui.h:62
Definition: datefolderview.cpp:43