-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c83f3e3
commit 19d75ac
Showing
10 changed files
with
205 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
package info.dvkr.screenstream; | ||
|
||
import android.databinding.ObservableBoolean; | ||
import android.databinding.ObservableField; | ||
import android.databinding.ObservableInt; | ||
import java.util.concurrent.ConcurrentLinkedDeque; | ||
import java.util.concurrent.ConcurrentLinkedQueue; | ||
|
||
public final class AppState { | ||
public final ObservableField<String> serverAddress = new ObservableField<>(); | ||
public final ObservableBoolean pinEnabled = new ObservableBoolean(); | ||
public final ObservableBoolean pinAutoHide = new ObservableBoolean(); | ||
public final ObservableField<String> streamPin = new ObservableField<>(); | ||
public final ObservableBoolean streaming = new ObservableBoolean(); | ||
public final ObservableBoolean wifiConnected = new ObservableBoolean(); | ||
public final ObservableBoolean httpServerError = new ObservableBoolean(); | ||
public final ObservableInt clients = new ObservableInt(); | ||
class AppState { | ||
final ConcurrentLinkedDeque<byte[]> JPEGQueue = new ConcurrentLinkedDeque<>(); | ||
final ConcurrentLinkedQueue<Client> clientQueue = new ConcurrentLinkedQueue<>(); | ||
volatile boolean isStreamRunning; | ||
volatile int httpServerStatus = HTTPServer.SERVER_STATUS_UNKNOWN; | ||
} |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/info/dvkr/screenstream/AppViewState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package info.dvkr.screenstream; | ||
|
||
import android.databinding.ObservableBoolean; | ||
import android.databinding.ObservableField; | ||
import android.databinding.ObservableInt; | ||
|
||
public final class AppViewState { | ||
public final ObservableField<String> serverAddress = new ObservableField<>(); | ||
public final ObservableBoolean pinEnabled = new ObservableBoolean(); | ||
public final ObservableBoolean pinAutoHide = new ObservableBoolean(); | ||
public final ObservableField<String> streamPin = new ObservableField<>(); | ||
public final ObservableBoolean streaming = new ObservableBoolean(); | ||
public final ObservableBoolean wifiConnected = new ObservableBoolean(); | ||
public final ObservableBoolean httpServerError = new ObservableBoolean(); | ||
public final ObservableInt clients = new ObservableInt(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.