Sprinkler

This commit is contained in:
Jean-Francois Martel
2017-04-23 10:16:06 -04:00
parent 46d6d4ac05
commit 2c22dda0f4
10 changed files with 159 additions and 61 deletions
+3 -2
View File
@@ -11,9 +11,10 @@ CSMSMasterCtrlInterface::CSMSMasterCtrlInterface(CSMSClient *ProgramHandle)
{
mDeviceAddress = 1;
mNetworkPort = 2182;
mMasterCtrlAddress = "127.0.0.1";
// mMasterCtrlAddress = "127.0.0.1";
// mNetworkPort = 6463;
// mMasterCtrlAddress = "192.168.0.112";
// mMasterCtrlAddress = "192.168.0.100";
mMasterCtrlAddress = "mortel.myftp.org";
mNetworkCommSocket = 0;
mMyDeviceID = ID_SMS_CLIENT;
+6
View File
@@ -0,0 +1,6 @@
#include "SprinklerDevice.h"
CSprinklerDevice::CSprinklerDevice(QObject *parent) : QObject(parent)
{
}
+17
View File
@@ -0,0 +1,17 @@
#ifndef SPRINKLERDEVICE_H
#define SPRINKLERDEVICE_H
#include <QObject>
class CSprinklerDevice : public QObject
{
Q_OBJECT
public:
explicit CSprinklerDevice(QObject *parent = 0);
signals:
public slots:
};
#endif // SPRINKLERDEVICE_H
@@ -0,0 +1,13 @@
#include "SprinklerDeviceGuiItem.h"
CSprinklerDeviceGuiItem::CSprinklerDeviceGuiItem(QWidget *parent) :
QWidget(parent)
{
setupUi(this);
}
CSprinklerDeviceGuiItem::~CSprinklerDeviceGuiItem()
{
}
@@ -0,0 +1,22 @@
#ifndef SPRINKLERDEVICEGUIITEM_H
#define SPRINKLERDEVICEGUIITEM_H
#include <QWidget>
#include "ui_SprinklerDeviceGuiItem.h"
namespace Ui {
class CSprinklerDeviceGuiItem;
}
class CSprinklerDeviceGuiItem : public QWidget, public Ui::CSprinklerDeviceGuiItem
{
Q_OBJECT
public:
explicit CSprinklerDeviceGuiItem(QWidget *parent = 0);
~CSprinklerDeviceGuiItem();
};
#endif // SPRINKLERDEVICEGUIITEM_H
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CSprinklerDeviceGuiItem</class>
<widget class="QWidget" name="CSprinklerDeviceGuiItem">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>540</width>
<height>399</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<widget class="QLabel" name="SprinklerAddress">
<property name="geometry">
<rect>
<x>20</x>
<y>10</y>
<width>101</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>Address : </string>
</property>
</widget>
<widget class="QLabel" name="SprinklerFlowSpeed">
<property name="geometry">
<rect>
<x>20</x>
<y>50</y>
<width>131</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>Flow speed :</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>30</x>
<y>100</y>
<width>54</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>State : </string>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>220</x>
<y>20</y>
<width>80</width>
<height>25</height>
</rect>
</property>
<property name="text">
<string>PushButton</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>
+1 -1
View File
@@ -23,7 +23,7 @@
</rect>
</property>
<property name="text">
<string>Sprinklers</string>
<string>Sprinklers network</string>
</property>
</widget>
</widget>