summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/tinyb/BluetoothAdapter.hpp4
-rw-r--r--api/tinyb/BluetoothDevice.hpp4
-rw-r--r--api/tinyb/BluetoothGattCharacteristic.hpp5
-rw-r--r--api/tinyb/BluetoothGattDescriptor.hpp5
-rw-r--r--api/tinyb/BluetoothGattService.hpp5
-rw-r--r--api/tinyb/BluetoothManager.hpp5
-rw-r--r--api/tinyb/BluetoothObject.hpp6
7 files changed, 33 insertions, 1 deletions
diff --git a/api/tinyb/BluetoothAdapter.hpp b/api/tinyb/BluetoothAdapter.hpp
index 856eda61..b200f786 100644
--- a/api/tinyb/BluetoothAdapter.hpp
+++ b/api/tinyb/BluetoothAdapter.hpp
@@ -64,6 +64,10 @@ protected:
BluetoothObject *parent = nullptr);
public:
+ static std::string java_class() {
+ return std::string(JAVA_PACKAGE "/BluetoothAdapter");
+ }
+
virtual std::string get_java_class() const;
virtual std::string get_class_name() const;
virtual std::string get_object_path() const;
diff --git a/api/tinyb/BluetoothDevice.hpp b/api/tinyb/BluetoothDevice.hpp
index 5a44795e..c8554081 100644
--- a/api/tinyb/BluetoothDevice.hpp
+++ b/api/tinyb/BluetoothDevice.hpp
@@ -58,6 +58,10 @@ protected:
BluetoothObject *parent = nullptr);
public:
+ static std::string java_class() {
+ return std::string(JAVA_PACKAGE "/BluetoothDevice");
+ }
+
virtual std::string get_java_class() const;
virtual std::string get_class_name() const;
virtual std::string get_object_path() const;
diff --git a/api/tinyb/BluetoothGattCharacteristic.hpp b/api/tinyb/BluetoothGattCharacteristic.hpp
index 4aa78ecb..7164d519 100644
--- a/api/tinyb/BluetoothGattCharacteristic.hpp
+++ b/api/tinyb/BluetoothGattCharacteristic.hpp
@@ -57,6 +57,11 @@ protected:
std::string *identifier = nullptr,
BluetoothObject *parent = nullptr);
public:
+
+ static std::string java_class() {
+ return std::string(JAVA_PACKAGE "/BluetoothGattCharacteristic");
+ }
+
virtual std::string get_java_class() const;
virtual std::string get_class_name() const ;
virtual std::string get_object_path() const;
diff --git a/api/tinyb/BluetoothGattDescriptor.hpp b/api/tinyb/BluetoothGattDescriptor.hpp
index dc281295..28a030fd 100644
--- a/api/tinyb/BluetoothGattDescriptor.hpp
+++ b/api/tinyb/BluetoothGattDescriptor.hpp
@@ -57,6 +57,11 @@ protected:
BluetoothObject *parent = nullptr);
public:
+
+ static std::string java_class() {
+ return std::string(JAVA_PACKAGE "/BluetoothGattDescriptor");
+ }
+
virtual std::string get_java_class() const;
virtual std::string get_class_name() const;
virtual std::string get_object_path() const;
diff --git a/api/tinyb/BluetoothGattService.hpp b/api/tinyb/BluetoothGattService.hpp
index e947e1ae..88f2716d 100644
--- a/api/tinyb/BluetoothGattService.hpp
+++ b/api/tinyb/BluetoothGattService.hpp
@@ -58,6 +58,11 @@ protected:
BluetoothObject *parent = nullptr);
public:
+
+ static std::string java_class() {
+ return std::string(JAVA_PACKAGE "/BluetoothGattService");
+ }
+
virtual std::string get_java_class() const;
virtual std::string get_class_name() const;
virtual std::string get_object_path() const;
diff --git a/api/tinyb/BluetoothManager.hpp b/api/tinyb/BluetoothManager.hpp
index 199cbda4..b01da946 100644
--- a/api/tinyb/BluetoothManager.hpp
+++ b/api/tinyb/BluetoothManager.hpp
@@ -46,6 +46,11 @@ private:
BluetoothManager(const BluetoothManager &object);
public:
+
+ static std::string java_class() {
+ return std::string(JAVA_PACKAGE "/BluetoothManager");
+ }
+
virtual std::string get_java_class() const;
virtual std::string get_class_name() const;
virtual std::string get_object_path() const;
diff --git a/api/tinyb/BluetoothObject.hpp b/api/tinyb/BluetoothObject.hpp
index 0be38cbb..43866380 100644
--- a/api/tinyb/BluetoothObject.hpp
+++ b/api/tinyb/BluetoothObject.hpp
@@ -25,7 +25,7 @@
#include <memory>
#pragma once
-#define JAVA_PACKAGE "io/mraa/tinyb"
+#define JAVA_PACKAGE "tinyb"
namespace tinyb {
enum class BluetoothType {
@@ -52,6 +52,10 @@ class tinyb::BluetoothObject
{
public:
+ static std::string java_class() {
+ return std::string(JAVA_PACKAGE "/BluetoothObject");
+ }
+
/** Returns the complete Java class of this object
* @return A std::string containing the java class of this object
*/