Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
PartInspection.h
Go to the documentation of this file.
1#pragma once
2#include <QDateTime>
3#include <QString>
4#include <ipj/iface/global.h>
5#include <misc/gen/TClosure.h>
6
7namespace sf
8{
9
11{
12 public:
17
21 QString getPart() const;
22
26 void setPart(const QString&);
27
31 QString getSerial() const;
32
36 void setSerial(const QString&);
37
41 void setDateTimeStr(const QString&);
42
46 void setDateTime(const QDateTime& dt);
47
51 QString getDateTimeStr() const;
52
57 QString getRefName() const;
58
62 void clear();
63
67 void assign(const PartInspection*);
68
72 QString getPartInspection() const;
73
78 void setPartInspection(const QString&);
79
83 bool exists() const;
84
88 bool isEmpty() const;
89
93 QString getFilePath() const;
94
99 QDateTime getDateTime() const;
100
105
106 private:
108 void doChange();
110 QString _part;
112 QString _serial;
114 QString _dateTimeStr;
115};
116
117}// namespace sf
Definition PartInspection.h:11
QString getPartInspection() const
Gets the part and project using a string with delimiters.
void setDateTime(const QDateTime &dt)
Sets the date time of the inspection.
void clear()
Clears the part and project member.
QString getPart() const
Gets the part name.
bool exists() const
Checks if the part inspection exists.
QString getFilePath() const
Gets the file path of the project.
bool isEmpty() const
Checks if the instance is empty.
void assign(const PartInspection *)
Overridden from base class.
PartInspection()
Default constructor.
void setPartInspection(const QString &)
Sets the part and project using a string with delimiters. Delimiters used: sf::INSPECT_SERIAL_DELIM a...
void setDateTimeStr(const QString &)
Sets the date time of the inspection using a string.
QString getDateTimeStr() const
Gets the date time as string of the inspection.
QDateTime getDateTime() const
Gets the data time formatted string. Uses sf::InspectStrToDateTime().
void setSerial(const QString &)
Sets the serial number.
QString getRefName() const
Gets reference string of the part inspection. Actually calls getPartInspection().
QString getSerial() const
Gets the serial number.
TClosure< void, const PartInspection * > onChange
Holds the handler for notifying a change of this class.
Definition PartInspection.h:104
void setPart(const QString &)
Sets the part name.
Encapsulates the std::function() template.
Definition TClosure.h:14
#define _IPJ_CLASS
Definition ipj/iface/global.h:35
Definition Application.h:10