//----------------------------------------------------------------------------
//
// 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
{
///
///The IPS_ScreenSettingData class represents Extended Displays Configuration settings for KVM redirection service in the Intel(R) AMT.
///
[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
{
///
/// Default constructor.
///
public IPS_ScreenSettingData() :base()
{
}
///
/// Constructor that recieves an xml string for deserialization.
///
/// xml string to deserialize
public IPS_ScreenSettingData(string xml): base((IWSManClient)null)
{
this.Deserialize(xml);
}
///
/// Constructor which recieves a Ws-Management client object.
///
/// Ws-Management client
public IPS_ScreenSettingData(IWSManClient client): base(client)
{
}
///
/// Remove IsActive field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveIsActive()
{
RemoveField("IsActive");
}
///
/// Is true if the field IsActive exists in the current object,
/// otherwise is false.
///
public virtual bool IsActiveExist
{
get
{
return ContainsField("IsActive");
}
}
///
/// Optional, Represent if screen[i] is present
///
[CimField(false, false)]
public virtual bool[] IsActive
{
get
{
return CimTypesUtils.StringArrayToArray(this["IsActive"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("IsActive", arr);
}
}
///
/// Remove PrimaryIndex field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemovePrimaryIndex()
{
RemoveField("PrimaryIndex");
}
///
/// Is true if the field PrimaryIndex exists in the current object,
/// otherwise is false.
///
public virtual bool PrimaryIndexExist
{
get
{
return ContainsField("PrimaryIndex");
}
}
///
/// Optional, The display with the start button. When working in extended display mode, this display have (0,0) coordinates as left-upper corner
///
[CimField(false, false)]
public virtual byte PrimaryIndex
{
get
{
return byte.Parse(this["PrimaryIndex"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("PrimaryIndex",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove QuadraryIndex field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveQuadraryIndex()
{
RemoveField("QuadraryIndex");
}
///
/// Is true if the field QuadraryIndex exists in the current object,
/// otherwise is false.
///
public virtual bool QuadraryIndexExist
{
get
{
return ContainsField("QuadraryIndex");
}
}
///
/// Optional, The quadrary display according to GFX driver
///
[CimField(false, false)]
public virtual byte QuadraryIndex
{
get
{
return byte.Parse(this["QuadraryIndex"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("QuadraryIndex",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove ResolutionX field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveResolutionX()
{
RemoveField("ResolutionX");
}
///
/// Is true if the field ResolutionX exists in the current object,
/// otherwise is false.
///
public virtual bool ResolutionXExist
{
get
{
return ContainsField("ResolutionX");
}
}
///
/// Optional, X resolution of screen[i]
///
[CimField(false, false)]
public virtual uint[] ResolutionX
{
get
{
return CimTypesUtils.StringArrayToArray(this["ResolutionX"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("ResolutionX", arr);
}
}
///
/// Remove ResolutionY field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveResolutionY()
{
RemoveField("ResolutionY");
}
///
/// Is true if the field ResolutionY exists in the current object,
/// otherwise is false.
///
public virtual bool ResolutionYExist
{
get
{
return ContainsField("ResolutionY");
}
}
///
/// Optional, Y resolution of screen[i]
///
[CimField(false, false)]
public virtual uint[] ResolutionY
{
get
{
return CimTypesUtils.StringArrayToArray(this["ResolutionY"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("ResolutionY", arr);
}
}
///
/// Remove SecondaryIndex field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveSecondaryIndex()
{
RemoveField("SecondaryIndex");
}
///
/// Is true if the field SecondaryIndex exists in the current object,
/// otherwise is false.
///
public virtual bool SecondaryIndexExist
{
get
{
return ContainsField("SecondaryIndex");
}
}
///
/// Optional, The secondary display according to GFX driver
///
[CimField(false, false)]
public virtual byte SecondaryIndex
{
get
{
return byte.Parse(this["SecondaryIndex"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("SecondaryIndex",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove TertiaryIndex field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveTertiaryIndex()
{
RemoveField("TertiaryIndex");
}
///
/// Is true if the field TertiaryIndex exists in the current object,
/// otherwise is false.
///
public virtual bool TertiaryIndexExist
{
get
{
return ContainsField("TertiaryIndex");
}
}
///
/// Optional, The tertiary display according to GFX driver
///
[CimField(false, false)]
public virtual byte TertiaryIndex
{
get
{
return byte.Parse(this["TertiaryIndex"][0], CultureInfo.InvariantCulture);
}
set
{
this.SetOrAddField("TertiaryIndex",value.ToString(CultureInfo.InvariantCulture));
}
}
///
/// Remove UpperLeftX field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveUpperLeftX()
{
RemoveField("UpperLeftX");
}
///
/// Is true if the field UpperLeftX exists in the current object,
/// otherwise is false.
///
public virtual bool UpperLeftXExist
{
get
{
return ContainsField("UpperLeftX");
}
}
///
/// Optional, Upper left X coordinate of screen[i]. Shall be set to 0 for primary display.Can be negative
///
[CimField(false, false)]
public virtual int[] UpperLeftX
{
get
{
return CimTypesUtils.StringArrayToArray(this["UpperLeftX"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("UpperLeftX", arr);
}
}
///
/// Remove UpperLeftY field.
/// Note: This method will succeed only if this field is optional in the concrete object.
///
public virtual void RemoveUpperLeftY()
{
RemoveField("UpperLeftY");
}
///
/// Is true if the field UpperLeftY exists in the current object,
/// otherwise is false.
///
public virtual bool UpperLeftYExist
{
get
{
return ContainsField("UpperLeftY");
}
}
///
/// Optional, Upper left Y coordinate of screen[i]. Shall be set to 0 for primary display.Can be negative
///
[CimField(false, false)]
public virtual int[] UpperLeftY
{
get
{
return CimTypesUtils.StringArrayToArray(this["UpperLeftY"]);
}
set
{
string[] arr = CimTypesUtils.ArrayToStringArray(value);
this.SetOrAddField("UpperLeftY", arr);
}
}
///
///This API resets the extended display configuration settings
///
[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)
{
}
}
///
///This API resets the extended display configuration settings
///
[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("")
{
}
}
///
///This API resets the extended display configuration settings
///
///
/// Legal values:
/// PT_STATUS_SUCCESS : 0
/// PT_STATUS_INTERNAL_ERROR : 1
///
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;
}
///
/// Enumerate instances of IPS_ScreenSettingData class at an endpoint.
///
/// WS-Management client
/// Keys for selecting the instances
/// Collection of IPS_ScreenSettingData objects
public static new Collection Enumerate(IWSManClient client, CimBase.CimKeys cimKeys)
{
List ret = CimBase.Enumerate(client, cimKeys);
return new Collection(ret);
}
///
/// Enumerate instances of IPS_ScreenSettingData class at an endpoint.
///
/// WS-Management client
/// Collection of IPS_ScreenSettingData objects
public static new Collection Enumerate(IWSManClient client)
{
List ret = CimBase.Enumerate(client);
return new Collection(ret);
}
///
/// Delete the instance of IPS_ScreenSettingData if it is singular.
/// Note: This method will succeed only if a single instance of the class exists.
///
/// WS-Management client
public static new void Delete(IWSManClient client)
{
CimBase.Delete(client);
}
///
/// Represents the keys of the IPS_ScreenSettingData class.
///
public new class CimKeys : CIM_SettingData.CimKeys
{
}
}
}