mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-22 02:01:08 +07:00
175477d31f
* Up Gradle to 8.10 * Update Android dependencies * Up Qt to 6.7.2 * Up qtkeychain to 0.14.3 * Move function of changing the color of the navigation bar to the android side * Fix splashscreen and recent apps thumbnail backgrounds * Android authentication refactoring * Fix GitHub action * Fix the extra circle around the connect button on Android * Fix keyboard popup * Increase the amount of requestNetwork attempts on Android 11
31 lines
943 B
Kotlin
31 lines
943 B
Kotlin
package org.amnezia.vpn.qt
|
|
|
|
import org.amnezia.vpn.protocol.ProtocolState
|
|
import org.amnezia.vpn.protocol.Status
|
|
|
|
/**
|
|
* JNI functions of the AndroidController class from android_controller.cpp,
|
|
* called by events in the Android part of the client
|
|
*/
|
|
object QtAndroidController {
|
|
|
|
fun onStatus(status: Status) = onStatus(status.state)
|
|
fun onStatus(protocolState: ProtocolState) = onStatus(protocolState.ordinal)
|
|
|
|
external fun onStatus(stateCode: Int)
|
|
external fun onServiceDisconnected()
|
|
external fun onServiceError()
|
|
|
|
external fun onVpnPermissionRejected()
|
|
external fun onNotificationStateChanged()
|
|
external fun onVpnStateChanged(stateCode: Int)
|
|
external fun onStatisticsUpdate(rxBytes: Long, txBytes: Long)
|
|
|
|
external fun onFileOpened(uri: String)
|
|
|
|
external fun onConfigImported(data: String)
|
|
|
|
external fun onAuthResult(result: Boolean)
|
|
|
|
external fun decodeQrCode(data: String): Boolean
|
|
} |