NDEVR
API Documentation
DeviceEditor.h
1#pragma once
2#include "NDEVR/Headers/QTDesignObject.h"
3#include "Base/Headers/Pointer.hpp"
4#include "NDEVR/Headers/Editor.h"
5#include <QWidget>
6namespace Ui
7{
8 class DeviceTechnicianInfoSheetUI;
9}
10namespace NDEVR
11{
12 class CustomerDevice;
18 class DeviceEditor : public Editor
19 {
20 Q_OBJECT
21 public:
26 DeviceEditor(const DynamicPointer<QTDesignObject>& device, QWidget* parent = nullptr);
27 protected:
29 void updateValues() final override;
34 protected slots:
37 protected:
38 Ui::DeviceTechnicianInfoSheetUI* ui;
39 };
40}
Model representing a customer's device (PC, phone, etc.) with associated metadata.
DeviceEditor(const DynamicPointer< QTDesignObject > &device, QWidget *parent=nullptr)
Constructs the device editor.
void updateValues() final override
Updates the displayed values from the underlying design object.
Ui::DeviceTechnicianInfoSheetUI * ui
The Qt Designer-generated UI.
void descriptionChangedSlot()
Handles changes to the description field.
CustomerDevice device() const
Returns the CustomerDevice model for this editor.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Editor(QWidget *parent=nullptr)
Constructs an Editor with no design object target.
The primary namespace for the NDEVR SDK.