public PortInfo GetInfo (int n)
		{
			PortInfo info = new PortInfo ();
			unsafe {
				Error.CheckError (gp_port_info_list_get_info (this.handle, n,  out info.Handle));
			}
			return info;
		}
Example #2
0
 private Camera(CameraAbilities abilities, PortInfo port, Context context)
 {
     string[] parts = port.Path.Substring(4).Split(',');
     this.abilities = new Abilities(abilities);
     this.baseAbilities = abilities;
     this.context = context;
     this.musicPath = "";
     this.photosPath = "";
     this.playlistPath = "";
     this.port = port;
     this.usbBusNumber = int.Parse(parts[0]);
     this.usbDeviceNumber = int.Parse(parts[1]);
 }
 public void SetPortInfo(PortInfo portinfo)
 {
     unsafe {
         Error.CheckError(gp_camera_set_port_info(this.Handle, portinfo.Handle));
     }
 }
		public int Append (PortInfo info)
		{
			unsafe {
				return (int) Error.CheckError (gp_port_info_list_append (this.Handle, info.Handle));
			}
		}
		public PortInfo GetPortInfo ()
		{
			PortInfo portinfo = new PortInfo ();
			unsafe { 
				Error.CheckError (gp_camera_get_port_info (this.Handle, out portinfo.Handle));				
			}
			return portinfo;
		}
		public void SetPortInfo (PortInfo portinfo)
		{
			unsafe {
				Error.CheckError (gp_camera_set_port_info (this.Handle, portinfo.Handle));
			}
		}
Example #7
0
 public int Append(PortInfo info)
 {
     unsafe {
         return((int)Error.CheckError(gp_port_info_list_append(this.Handle, info.Handle)));
     }
 }
Example #8
0
 public void SetInfo(PortInfo info)
 {
     Error.CheckError(gp_port_set_info(this.Handle, ref info.Handle));
 }
Example #9
0
 public void SetInfo(PortInfo info)
 {
     Error.CheckError (gp_port_set_info (this.Handle, ref info.Handle));
 }
Example #10
0
        public PortInfo GetInfo()
        {
            PortInfo info = new PortInfo ();

            Error.CheckError (gp_port_get_info (this.Handle, out info.Handle));

            return info;
        }
Example #11
0
 /// <summary>
 /// Initialises to the specified device on the specified port
 /// </summary>
 /// <param name="context"></param>
 /// <param name="abilities">The abilities which represent the device to be connected to</param>
 /// <param name="portInfo">The port which the device is connected on</param>
 public void Init(Context context, CameraAbilities abilities, PortInfo portInfo)
 {
     SetPortInfo(portInfo);
     SetAbilities(abilities);
     Init(context);
 }
Example #12
0
 /// <summary>
 /// Initialises to the specified device on the specified port
 /// </summary>
 /// <param name="context"></param>
 /// <param name="abilities">The abilities which represent the device to be connected to</param>
 /// <param name="portInfo">The port which the device is connected on</param>
 public void Init(Context context, CameraAbilities abilities, PortInfo portInfo)
 {
     SetPortInfo(portInfo);
     SetAbilities(abilities);
     Init(context);
 }