mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
e8cc80f046
Fix some bugs with mimetype filters when the Qt mimetype database does not match the Android database
23 lines
679 B
Kotlin
23 lines
679 B
Kotlin
package org.amnezia.vpn.qt
|
|
|
|
/**
|
|
* JNI functions of the AndroidController class from android_controller.cpp,
|
|
* called by events in the Android part of the client
|
|
*/
|
|
object QtAndroidController {
|
|
external fun onStatus(stateCode: Int)
|
|
external fun onServiceDisconnected()
|
|
external fun onServiceError()
|
|
|
|
external fun onVpnPermissionRejected()
|
|
external fun onVpnConnected()
|
|
external fun onVpnDisconnected()
|
|
external fun onVpnReconnecting()
|
|
external fun onStatisticsUpdate(rxBytes: Long, txBytes: Long)
|
|
|
|
external fun onFileOpened(uri: String)
|
|
|
|
external fun onConfigImported(data: String)
|
|
|
|
external fun decodeQrCode(data: String): Boolean
|
|
} |