OSDN Git Service

NIKON対応の開始。
[gokigen/A01d.git] / app / src / main / java / net / osdn / gokigen / a01d / camera / ICameraConnection.java
1 package net.osdn.gokigen.a01d.camera;
2
3 import android.content.Context;
4
5 /**
6  *   カメラの接続/切断
7  *
8  */
9 public interface ICameraConnection
10 {
11     enum CameraConnectionMethod
12     {
13         OPC,
14         SONY,
15         RICOH_GR2,
16         FUJI_X,
17         PANASONIC,
18         OLYMPUS,
19         THETA,
20         CANON,
21         NIKON,
22     }
23
24     enum CameraConnectionStatus
25     {
26         UNKNOWN,
27         DISCONNECTED,
28         CONNECTING,
29         CONNECTED
30     }
31
32     /**  WIFI 接続系  **/
33     void startWatchWifiStatus(Context context);
34     void stopWatchWifiStatus(Context context);
35
36     /** カメラ接続系 **/
37     void disconnect(final boolean powerOff);
38     void connect();
39
40     /** カメラ接続失敗 **/
41     void alertConnectingFailed(String message);
42
43     /** 接続状態 **/
44     CameraConnectionStatus getConnectionStatus();
45     void forceUpdateConnectionStatus(CameraConnectionStatus status);
46
47 }