4S Device Communication Module Collection  Version 0.6-SNAPSHOT
Full documentation of the modules in the 4SDC collection (aimed at 4SDC module developers)
anonymous_namespace{bluedroid.cpp}::JniManager Class Reference
+ Inheritance diagram for anonymous_namespace{bluedroid.cpp}::JniManager:
+ Collaboration diagram for anonymous_namespace{bluedroid.cpp}::JniManager:

Public Member Functions

 JniManager (MsgAddr &sink)
 
void runJavaDispatcher ()
 
void attachThread ()
 
void detachThread ()
 
void interruptReq ()
 
void datatypeReq (uint16_t datatype, bool added)
 
void disconnectReq (string address, uint16_t datatype)
 
void sendApduReq (string address, uint16_t datatype, vector< uint8_t > &&apdu, bool primary)
 
void connectIndication (JNIEnv *env, jobject thiz, jstring address, jchar datatype, jstring displayName, jstring serviceName, jstring mdepDescription)
 
void disconnectIndication (JNIEnv *env, jobject thiz, jstring address, jchar datatype, jint error)
 
void messageReceived (JNIEnv *env, jobject thiz, jstring address, jchar datatype, jbyteArray apdu, jboolean reliable)
 

Private Attributes

JNIEnv * javaEnv = nullptr
 
JNIEnv * cppEnv = nullptr
 
jobject subsystem = nullptr
 
MsgAddrsink
 
jmethodID run
 
jmethodID interruptRequest
 
jmethodID datatypeRequest
 
jmethodID disconnectRequest
 
jmethodID sendApduRequest
 

Additional Inherited Members

- Private Member Functions inherited from FSYS::MsgSender< JniManager >
void broadcast (T &msg)
 Template function to broadcast messages. More...
 
void respond (T &msg, BaseMsg &received)
 Template function to respond to messages. More...
 
void send (T &msg, const MsgAddr &destination)
 
- Private Member Functions inherited from FSYS::MsgAddrGenerator< JniManager >
 MsgAddrGenerator (void)
 Constructor that creates an address.
 
 operator MsgAddr & ()
 MsgAddr operator for type conversion of MsgAddrGenerator to a MsgAddr. More...
 

The documentation for this class was generated from the following file: