Browse files

completing getName transition down the hierarchy; (was left in a stat…

…e such that when Q_OS_SYMBIAN was set, getName would have no implementation making these classes abstract
  • Loading branch information...
1 parent c35ef9d commit 18553761af7d0f81dc7b0dd583f4d658ae2891a7 Clovis Scotti committed Jun 14, 2011
View
2 PushBurton2/pushn8btdevice.h
@@ -59,7 +59,7 @@ class PushN8BtDevice : public PushBurtonGenericDevice
QString getDetails();
- QString get_description();
+ virtual QString getName();
bool is_online();
View
5 PushBurton2/pushn8footdevice.cpp
@@ -83,3 +83,8 @@ char PushN8FootDevice::get_side()
{
return side;
}
+
+QString PushN8FootDevice::getName()
+{
+ return "push.n8.bt.foot";
+}
View
2 PushBurton2/pushn8footdevice.h
@@ -45,6 +45,8 @@ class PushN8FootDevice : public PushN8BtDevice
char get_side();
+ virtual QString getName();
+
private:
char side;
View
5 PushBurton2/pushn8gsrdevice.cpp
@@ -66,3 +66,8 @@ void PushN8GSRDevice::gotDataReceived(QString data)
}
// qDebug() << "Data received: " << data;
}
+
+QString PushN8GSRDevice::getName()
+{
+ return "push.n8.bt.gsr";
+}
View
2 PushBurton2/pushn8gsrdevice.h
@@ -43,6 +43,8 @@ class PushN8GSRDevice : public PushN8BtDevice
~PushN8GSRDevice();
+ virtual QString getName();
+
public slots:
void gotDataReceived(QString);
#endif
View
5 PushBurton2/pushn8heartdevice.cpp
@@ -66,3 +66,8 @@ void PushN8HeartDevice::gotDataReceived(QString data)
}
}
}
+
+QString PushN8HeartDevice::getName()
+{
+ return "push.n8.bt.heart";
+}
View
2 PushBurton2/pushn8heartdevice.h
@@ -44,6 +44,8 @@ class PushN8HeartDevice : public PushN8BtDevice
~PushN8HeartDevice();
+ virtual QString getName();
+
public slots:
void gotDataReceived(QString);
#endif
View
5 PushBurton2/pushn8imudevice.cpp
@@ -79,3 +79,8 @@ void PushN8IMUDevice::gotDataReceived(QString data)
}
+
+QString PushN8IMUDevice::getName()
+{
+ return "push.n8.bt.imu";
+}
View
2 PushBurton2/pushn8imudevice.h
@@ -43,6 +43,8 @@ class PushN8IMUDevice : public PushN8BtDevice
~PushN8IMUDevice();
+ virtual QString getName();
+
public slots:
void gotDataReceived(QString);

0 comments on commit 1855376

Please sign in to comment.