import net.osdn.gokigen.pkremote.camera.vendor.fujix.wrapper.FujiXInterfaceProvider;
import net.osdn.gokigen.pkremote.camera.vendor.olympus.IOlympusInterfaceProvider;
import net.osdn.gokigen.pkremote.camera.vendor.olympus.wrapper.OlympusInterfaceProvider;
+import net.osdn.gokigen.pkremote.camera.vendor.olympuspen.wrapper.OlympusPenInterfaceProvider;
import net.osdn.gokigen.pkremote.camera.vendor.panasonic.wrapper.PanasonicCameraWrapper;
+import net.osdn.gokigen.pkremote.camera.vendor.ptpip.IPtpIpInterfaceProvider;
+import net.osdn.gokigen.pkremote.camera.vendor.ptpip.wrapper.PtpIpInterfaceProvider;
import net.osdn.gokigen.pkremote.camera.vendor.ricoh.wrapper.RicohGr2InterfaceProvider;
import net.osdn.gokigen.pkremote.camera.vendor.sony.ISonyInterfaceProvider;
import net.osdn.gokigen.pkremote.camera.vendor.sony.wrapper.SonyCameraWrapper;
import net.osdn.gokigen.pkremote.preference.IPreferencePropertyAccessor;
-import net.osdn.gokigen.pkremote.preference.panasonic.PanasonicPreferenceFragment;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
private final RicohGr2InterfaceProvider ricohGr2;
private final FujiXInterfaceProvider fujiX;
private final PanasonicCameraWrapper panasonic;
+ private final PtpIpInterfaceProvider ptpip;
+ private final OlympusPenInterfaceProvider olympuspen;
private final IInformationReceiver informationReceiver;
private final CameraContentsRecognizer cameraContentsRecognizer;
private final AppCompatActivity context;
olympus = new OlympusInterfaceProvider(context, provider);
ricohGr2 = new RicohGr2InterfaceProvider(context, provider);
fujiX = new FujiXInterfaceProvider(context, provider, statusListener, informationReceiver);
- sony = new SonyCameraWrapper(context, provider, statusListener);
- panasonic = new PanasonicCameraWrapper(context, provider, statusListener);
+ sony = new SonyCameraWrapper(context, provider, statusListener, informationReceiver);
+ ptpip = new PtpIpInterfaceProvider(context, provider, statusListener, informationReceiver);
+ panasonic = new PanasonicCameraWrapper(context, provider, statusListener, informationReceiver);
+ olympuspen = new OlympusPenInterfaceProvider(context, provider);
this.informationReceiver = informationReceiver;
this.cameraContentsRecognizer = new CameraContentsRecognizer(context, this);
}
return (sony);
}
+ @Override
+ public IPtpIpInterfaceProvider getPtpIpInterface()
+ {
+ return (ptpip);
+ }
+
/**
*
*
{
return (panasonic.getPanasonicCameraConnection());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getSonyCameraConnection());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getPtpIpCameraConnection());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getPtpIpCameraConnection());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getOlyCameraConnection());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getRicohGr2CameraConnection());
{
return (panasonic.getButtonControl());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getButtonControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getButtonControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getButtonControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getButtonControl());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getButtonControl());
{
return (panasonic.getDisplayInjector());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getDisplayInjector());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getDisplayInjector());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getDisplayInjector());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getDisplayInjector());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getDisplayInjector());
{
return (panasonic.getPanasonicLiveViewControl());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getLiveViewControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getLiveViewControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getLiveViewControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getLiveViewControl());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getLiveViewControl());
{
return (panasonic.getLiveViewListener());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getLiveViewListener());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getLiveViewListener());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getLiveViewListener());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getLiveViewListener());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getLiveViewListener());
{
return (panasonic.getFocusingControl());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getFocusingControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getFocusingControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getFocusingControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getFocusingControl());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getFocusingControl());
{
return (panasonic.getCameraInformation());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getCameraInformation());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getCameraInformation());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getCameraInformation());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getCameraInformation());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getCameraInformation());
{
return (panasonic.getZoomLensControl());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getZoomLensControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getZoomLensControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getZoomLensControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getZoomLensControl());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getZoomLensControl());
{
return (panasonic.getCaptureControl());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getCaptureControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getCaptureControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getCaptureControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getCaptureControl());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getCaptureControl());
{
return (panasonic.getCameraStatusListHolder());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getCameraStatusListHolder());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getCameraStatusListHolder());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getCameraStatusListHolder());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getCameraStatusListHolder());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getCameraStatusListHolder());
{
return (panasonic.getCameraStatusWatcher());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getCameraStatusWatcher());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getCameraStatusWatcher());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getCameraStatusWatcher());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getCameraStatusWatcher());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getCameraStatusWatcher());
{
return (panasonic.getPlaybackControl());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getPlaybackControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getPlaybackControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getPlaybackControl());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getPlaybackControl());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getPlaybackControl());
{
return (panasonic.getHardwareStatus());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getHardwareStatus());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getHardwareStatus());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getHardwareStatus());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getHardwareStatus());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getHardwareStatus());
{
return (panasonic.getCameraRunMode());
}
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.SONY)
+ {
+ return (sony.getCameraRunMode());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.CANON)
+ {
+ return (ptpip.getCameraRunMode());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.NIKON)
+ {
+ return (ptpip.getCameraRunMode());
+ }
+ else if (connectionMethod == ICameraConnection.CameraConnectionMethod.OLYMPUS)
+ {
+ return (olympuspen.getCameraRunMode());
+ }
else // if (connectionMethod == ICameraConnection.CameraConnectionMethod.RICOH)
{
return (ricohGr2.getCameraRunMode());
{
ret = ICameraConnection.CameraConnectionMethod.PANASONIC;
}
+ else if (connectionMethod.contains("SONY"))
+ {
+ ret = ICameraConnection.CameraConnectionMethod.SONY;
+ }
+ else if (connectionMethod.contains("CANON"))
+ {
+ ret = ICameraConnection.CameraConnectionMethod.CANON;
+ }
+ else if (connectionMethod.contains("NIKON"))
+ {
+ ret = ICameraConnection.CameraConnectionMethod.NIKON;
+ }
+ else if (connectionMethod.contains("OLYMPUS"))
+ {
+ ret = ICameraConnection.CameraConnectionMethod.OLYMPUS;
+ }
else // if (connectionMethod.contains("OPC"))
{
ret = ICameraConnection.CameraConnectionMethod.OPC;