OSDN Git Service

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