471 lines
12 KiB
C#
471 lines
12 KiB
C#
//----------------------------------------------------------------------------
|
|
//
|
|
// Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved.
|
|
//
|
|
// File: IPS_ScreenSettingData.cs
|
|
//
|
|
// Contents: The IPS_ScreenSettingData class represents Extended Displays Configuration settings for KVM redirection service in the Intel(R) AMT.
|
|
// This file was automatically generated from IPS_ScreenSettingData.mof
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Text;
|
|
using System.Globalization;
|
|
using System.Xml.Serialization;
|
|
using System.IO;
|
|
using Intel.Manageability.WSManagement;
|
|
using Intel.Manageability.Cim.Untyped;
|
|
|
|
|
|
namespace Intel.Manageability.Cim.Typed
|
|
{
|
|
/// <summary>
|
|
///The IPS_ScreenSettingData class represents Extended Displays Configuration settings for KVM redirection service in the Intel(R) AMT.
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_ScreenSettingData")]
|
|
[System.Xml.Serialization.XmlRootAttribute("IPS_ScreenSettingData", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_ScreenSettingData", IsNullable=false)]
|
|
public class IPS_ScreenSettingData : CIM_SettingData
|
|
{
|
|
/// <summary>
|
|
/// Default constructor.
|
|
/// </summary>
|
|
public IPS_ScreenSettingData() :base()
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Constructor that recieves an xml string for deserialization.
|
|
/// </summary>
|
|
/// <param name="xml">xml string to deserialize</param>
|
|
public IPS_ScreenSettingData(string xml): base((IWSManClient)null)
|
|
{
|
|
this.Deserialize(xml);
|
|
}
|
|
/// <summary>
|
|
/// Constructor which recieves a Ws-Management client object.
|
|
/// </summary>
|
|
/// <param name="client">Ws-Management client</param>
|
|
public IPS_ScreenSettingData(IWSManClient client): base(client)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Remove IsActive field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveIsActive()
|
|
{
|
|
RemoveField("IsActive");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field IsActive exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool IsActiveExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("IsActive");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Represent if screen[i] is present
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual bool[] IsActive
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<bool>(this["IsActive"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<bool>(value);
|
|
this.SetOrAddField("IsActive", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove PrimaryIndex field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemovePrimaryIndex()
|
|
{
|
|
RemoveField("PrimaryIndex");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field PrimaryIndex exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool PrimaryIndexExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("PrimaryIndex");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The display with the start button. When working in extended display mode, this display have (0,0) coordinates as left-upper corner
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual byte PrimaryIndex
|
|
{
|
|
get
|
|
{
|
|
return byte.Parse(this["PrimaryIndex"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("PrimaryIndex",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove QuadraryIndex field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveQuadraryIndex()
|
|
{
|
|
RemoveField("QuadraryIndex");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field QuadraryIndex exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool QuadraryIndexExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("QuadraryIndex");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The quadrary display according to GFX driver
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual byte QuadraryIndex
|
|
{
|
|
get
|
|
{
|
|
return byte.Parse(this["QuadraryIndex"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("QuadraryIndex",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ResolutionX field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveResolutionX()
|
|
{
|
|
RemoveField("ResolutionX");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ResolutionX exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ResolutionXExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ResolutionX");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, X resolution of screen[i]
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint[] ResolutionX
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<uint>(this["ResolutionX"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<uint>(value);
|
|
this.SetOrAddField("ResolutionX", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove ResolutionY field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveResolutionY()
|
|
{
|
|
RemoveField("ResolutionY");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field ResolutionY exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool ResolutionYExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("ResolutionY");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Y resolution of screen[i]
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual uint[] ResolutionY
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<uint>(this["ResolutionY"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<uint>(value);
|
|
this.SetOrAddField("ResolutionY", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove SecondaryIndex field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveSecondaryIndex()
|
|
{
|
|
RemoveField("SecondaryIndex");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field SecondaryIndex exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool SecondaryIndexExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("SecondaryIndex");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The secondary display according to GFX driver
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual byte SecondaryIndex
|
|
{
|
|
get
|
|
{
|
|
return byte.Parse(this["SecondaryIndex"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("SecondaryIndex",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove TertiaryIndex field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveTertiaryIndex()
|
|
{
|
|
RemoveField("TertiaryIndex");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field TertiaryIndex exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool TertiaryIndexExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("TertiaryIndex");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, The tertiary display according to GFX driver
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual byte TertiaryIndex
|
|
{
|
|
get
|
|
{
|
|
return byte.Parse(this["TertiaryIndex"][0], CultureInfo.InvariantCulture);
|
|
}
|
|
set
|
|
{
|
|
this.SetOrAddField("TertiaryIndex",value.ToString(CultureInfo.InvariantCulture));
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove UpperLeftX field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveUpperLeftX()
|
|
{
|
|
RemoveField("UpperLeftX");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field UpperLeftX exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool UpperLeftXExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("UpperLeftX");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Upper left X coordinate of screen[i]. Shall be set to 0 for primary display.Can be negative
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual int[] UpperLeftX
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<int>(this["UpperLeftX"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<int>(value);
|
|
this.SetOrAddField("UpperLeftX", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Remove UpperLeftY field.
|
|
/// Note: This method will succeed only if this field is optional in the concrete object.
|
|
/// </summary>
|
|
public virtual void RemoveUpperLeftY()
|
|
{
|
|
RemoveField("UpperLeftY");
|
|
}
|
|
|
|
/// <summary>
|
|
/// Is true if the field UpperLeftY exists in the current object,
|
|
/// otherwise is false.
|
|
/// </summary>
|
|
public virtual bool UpperLeftYExist
|
|
{
|
|
get
|
|
{
|
|
return ContainsField("UpperLeftY");
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Optional, Upper left Y coordinate of screen[i]. Shall be set to 0 for primary display.Can be negative
|
|
/// </summary>
|
|
[CimField(false, false)]
|
|
public virtual int[] UpperLeftY
|
|
{
|
|
get
|
|
{
|
|
return CimTypesUtils.StringArrayToArray<int>(this["UpperLeftY"]);
|
|
}
|
|
set
|
|
{
|
|
string[] arr = CimTypesUtils.ArrayToStringArray<int>(value);
|
|
this.SetOrAddField("UpperLeftY", arr);
|
|
}
|
|
}
|
|
/// <summary>
|
|
///This API resets the extended display configuration settings
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_ScreenSettingData", IsNullable=false)]
|
|
private class ResetToDefault_INPUT : CimParams
|
|
{
|
|
public ResetToDefault_INPUT(string ns) : base(ns)
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///This API resets the extended display configuration settings
|
|
/// </summary>
|
|
[System.SerializableAttribute()]
|
|
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
|
|
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_ScreenSettingData", IsNullable=false)]
|
|
private class ResetToDefault_OUTPUT : CimParams
|
|
{
|
|
public ResetToDefault_OUTPUT() : base("")
|
|
{
|
|
}
|
|
|
|
}
|
|
/// <summary>
|
|
///This API resets the extended display configuration settings
|
|
/// </summary>
|
|
/// <returns>
|
|
/// Legal values:
|
|
/// PT_STATUS_SUCCESS : 0
|
|
/// PT_STATUS_INTERNAL_ERROR : 1
|
|
/// </returns>
|
|
public virtual uint ResetToDefault()
|
|
{
|
|
ResetToDefault_INPUT input = new ResetToDefault_INPUT(this.XmlNamespace);
|
|
ResetToDefault_OUTPUT output = new ResetToDefault_OUTPUT();
|
|
uint returnValue = base.Invoke("ResetToDefault",input,out output);
|
|
return returnValue;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_ScreenSettingData class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <param name="cimKeys">Keys for selecting the instances</param>
|
|
/// <returns>Collection of IPS_ScreenSettingData objects</returns>
|
|
public static new Collection<IPS_ScreenSettingData> Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
|
|
{
|
|
List<IPS_ScreenSettingData> ret = CimBase.Enumerate<IPS_ScreenSettingData>(client, cimKeys);
|
|
return new Collection<IPS_ScreenSettingData>(ret);
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerate instances of IPS_ScreenSettingData class at an endpoint.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
/// <returns>Collection of IPS_ScreenSettingData objects</returns>
|
|
public static new Collection<IPS_ScreenSettingData> Enumerate(IWSManClient client)
|
|
{
|
|
List<IPS_ScreenSettingData> ret = CimBase.Enumerate<IPS_ScreenSettingData>(client);
|
|
return new Collection<IPS_ScreenSettingData>(ret);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Delete the instance of IPS_ScreenSettingData if it is singular.
|
|
/// Note: This method will succeed only if a single instance of the class exists.
|
|
/// </summary>
|
|
/// <param name="client">WS-Management client</param>
|
|
public static new void Delete(IWSManClient client)
|
|
{
|
|
CimBase.Delete<IPS_ScreenSettingData>(client);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// Represents the keys of the IPS_ScreenSettingData class.
|
|
/// </summary>
|
|
|
|
public new class CimKeys : CIM_SettingData.CimKeys
|
|
{
|
|
}
|
|
|
|
}
|
|
}
|
|
|