Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 0 additions & 73 deletions CES_DEVICE_CONNECTION_TEST/.gitignore

This file was deleted.

33 changes: 0 additions & 33 deletions CES_DEVICE_CONNECTION_TEST/CES_DEVICE_CONNECTION_TEST.pro

This file was deleted.

46 changes: 0 additions & 46 deletions CES_DEVICE_CONNECTION_TEST/connectiontest.cpp

This file was deleted.

28 changes: 0 additions & 28 deletions CES_DEVICE_CONNECTION_TEST/connectiontest.h

This file was deleted.

11 changes: 0 additions & 11 deletions CES_DEVICE_CONNECTION_TEST/main.cpp

This file was deleted.

19 changes: 0 additions & 19 deletions CES_DEVICE_CONNECTION_TEST/mainwindow.cpp

This file was deleted.

23 changes: 0 additions & 23 deletions CES_DEVICE_CONNECTION_TEST/mainwindow.h

This file was deleted.

42 changes: 0 additions & 42 deletions CES_DEVICE_CONNECTION_TEST/mainwindow.ui

This file was deleted.

28 changes: 20 additions & 8 deletions CES_Device/connectiontest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,33 @@

connectionTest::connectionTest()
{

blink = new QTimer();
connect(blink, &QTimer::timeout, this, &connectionTest::sendblink_modeLight);
}




void connectionTest::sendcheckConnection(){
emit checkConnection();
int connectionTest::checkConnection(bool w, bool x, bool y, bool z){
if((w == true) && (x == true) && (y == true) && (z == true)){
return 0;
} else if((w == true) && (x == true) && (y == true)){
return 1;
} else if((w == true) && (x == true) && (z == true)){
return 2;
} else if((w == true) && (x == true)){
return 3;
}else{
return 4;
}
}

//void connectionTest::sendcheckConnection(){
// emit checkConnection();
//}
void connectionTest::sendblink_modeLight(){
blink->start(1000);
emit blink_modeLight();
}
void connectionTest::senddisplayConnection(){
emit displayConnection();
void connectionTest::senddisplayConnection(int x){
emit displayConnection(x);
}
void connectionTest::sendsoftOn(){
emit softOn();
Expand Down
10 changes: 7 additions & 3 deletions CES_Device/connectiontest.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define CONNECTIONTEST_H

#include <QObject>
#include <QTimer>

class connectionTest: public QObject
{
Expand All @@ -10,18 +11,21 @@ class connectionTest: public QObject
connectionTest();
//enum LR;
//enum RE;
QTimer *blink;

void sendcheckConnection();
void sendblink_modeLight();
void senddisplayConnection();
void senddisplayConnection(int);
void sendsoftOn();
void sendsoftOff();
void sendclearDisplay();
void sendwetEarLobes();
int checkConnection(bool, bool, bool, bool);

signals:
void checkConnection();
//void checkConnection();
void blink_modeLight();
void displayConnection();
void displayConnection(int);
void softOn();
void softOff();
void clearDisplay();
Expand Down
Loading