blob: 3e6d23f7c29f91657ee588047c4851d9feb83ea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*
* Copyright (c) 2012-2016 Arne Schwabe
* Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
*/
package de.blinkt.openvpn.core;
import android.os.Parcel;
import android.os.Parcelable;
/**
* Created by arne on 08.11.16.
*/
public enum ConnectionStatus implements Parcelable {
LEVEL_CONNECTED,
LEVEL_VPNPAUSED,
LEVEL_CONNECTING_SERVER_REPLIED,
LEVEL_CONNECTING_NO_SERVER_REPLY_YET,
LEVEL_NONETWORK,
LEVEL_NOTCONNECTED,
LEVEL_START,
LEVEL_AUTH_FAILED,
LEVEL_WAITING_FOR_USER_INPUT,
LEVEL_BLOCKING, // used for Bitmask's VoidVPN
UNKNOWN_LEVEL;
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(ordinal());
}
@Override
public int describeContents() {
return 0;
}
public static final Creator<ConnectionStatus> CREATOR = new Creator<ConnectionStatus>() {
@Override
public ConnectionStatus createFromParcel(Parcel in) {
return ConnectionStatus.values()[in.readInt()];
}
@Override
public ConnectionStatus[] newArray(int size) {
return new ConnectionStatus[size];
}
};
}
|