//---------------------------------------------------------------------------- // // Copyright (c) Intel Corporation, 2003 - 2012 All Rights Reserved. // // File: IPS_ScreenConfigurationService.cs // // Contents: Configures the screen blanking settings in the Intel(R) AMT subsystem. // This file was automatically generated from IPS_ScreenConfigurationService.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 { /// ///Configures the screen blanking settings in the Intel(R) AMT subsystem. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_ScreenConfigurationService")] [System.Xml.Serialization.XmlRootAttribute("IPS_ScreenConfigurationService", Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_ScreenConfigurationService", IsNullable=false)] public class IPS_ScreenConfigurationService : CIM_Service { /// /// Default constructor. /// public IPS_ScreenConfigurationService() :base() { } /// /// Constructor that recieves an xml string for deserialization. /// /// xml string to deserialize public IPS_ScreenConfigurationService(string xml): base((IWSManClient)null) { this.Deserialize(xml); } /// /// Constructor which recieves a Ws-Management client object. /// /// Ws-Management client public IPS_ScreenConfigurationService(IWSManClient client): base(client) { } /// /// Remove CurrentState field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveCurrentState() { RemoveField("CurrentState"); } /// /// Is true if the field CurrentState exists in the current object, /// otherwise is false. /// public virtual bool CurrentStateExist { get { return ContainsField("CurrentState"); } } /// /// Optional, Indicates if currently screen blanking session is open. This property is read only. /// [CimField(false, false)] public virtual ushort CurrentState { get { return ushort.Parse(this["CurrentState"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("CurrentState",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove EnabledState field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveEnabledState() { RemoveField("EnabledState"); } /// /// Is true if the field EnabledState exists in the current object, /// otherwise is false. /// public virtual bool EnabledStateExist { get { return ContainsField("EnabledState"); } } /// /// Optional, Indicates if currently screen blanking is enabled, i.e. screen blanking session can be opened. /// [CimField(false, false)] public virtual ushort EnabledState { get { return ushort.Parse(this["EnabledState"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("EnabledState",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Remove RemainingConsecutiveRebootsNum field. /// Note: This method will succeed only if this field is optional in the concrete object. /// public virtual void RemoveRemainingConsecutiveRebootsNum() { RemoveField("RemainingConsecutiveRebootsNum"); } /// /// Is true if the field RemainingConsecutiveRebootsNum exists in the current object, /// otherwise is false. /// public virtual bool RemainingConsecutiveRebootsNumExist { get { return ContainsField("RemainingConsecutiveRebootsNum"); } } /// /// Optional, number of remaining conscutive reboots that will end the screen blanking session. If the value is 0 AMT will not blank the screen after a reboot.Only a warm reset should be counted as a reboot. Global reset or a power cycle reset will not survive the screen blanking session.This property is read only. /// [CimField(false, false)] public virtual ushort RemainingConsecutiveRebootsNum { get { return ushort.Parse(this["RemainingConsecutiveRebootsNum"][0], CultureInfo.InvariantCulture); } set { this.SetOrAddField("RemainingConsecutiveRebootsNum",value.ToString(CultureInfo.InvariantCulture)); } } /// ///AMT will start a screen blanking session and require the GFX to blank all the screens connected to the iGFX simultaneously. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_ScreenConfigurationService", IsNullable=false)] private class SetSessionState_INPUT : CimParams { public SetSessionState_INPUT(string ns) : base(ns) { } /// /// Optional, Open if required to open session blanking session, Otherwise, (close session) the parameter is Close. /// [CimField(false,false)] public virtual byte SessionState { set { this.SetOrAddField("SessionState",value.ToString(CultureInfo.InvariantCulture)); } } /// /// Optional, If SessionState is Open, reflects number of reboots session should survive. /// [CimField(false,false)] public virtual byte ConsecutiveRebootsNum { set { this.SetOrAddField("ConsecutiveRebootsNum",value.ToString(CultureInfo.InvariantCulture)); } } } /// ///AMT will start a screen blanking session and require the GFX to blank all the screens connected to the iGFX simultaneously. /// [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)] [System.Xml.Serialization.XmlRootAttribute(Namespace="http://intel.com/wbem/wscim/1/ips-schema/1/IPS_ScreenConfigurationService", IsNullable=false)] private class SetSessionState_OUTPUT : CimParams { public SetSessionState_OUTPUT() : base("") { } } /// ///AMT will start a screen blanking session and require the GFX to blank all the screens connected to the iGFX simultaneously. /// /// Optional, IN -Open if required to open session blanking session, Otherwise, (close session) the parameter is Close. /// Optional, IN -If SessionState is Open, reflects number of reboots session should survive. /// /// Legal values: /// PT_STATUS_SUCCESS : 0 /// PT_STATUS_INTERNAL_ERROR : 1 /// Reserved : 2.. /// public virtual uint SetSessionState(byte inSessionState,byte inConsecutiveRebootsNum) { SetSessionState_INPUT input = new SetSessionState_INPUT(this.XmlNamespace); if (inSessionState != null) input.SessionState=inSessionState; if (inConsecutiveRebootsNum != null) input.ConsecutiveRebootsNum=inConsecutiveRebootsNum; SetSessionState_OUTPUT output = new SetSessionState_OUTPUT(); uint returnValue = base.Invoke("SetSessionState",input,out output); return returnValue; } /// /// Enumerate instances of IPS_ScreenConfigurationService class at an endpoint. /// /// WS-Management client /// Keys for selecting the instances /// Collection of IPS_ScreenConfigurationService 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_ScreenConfigurationService class at an endpoint. /// /// WS-Management client /// Collection of IPS_ScreenConfigurationService objects public static new Collection Enumerate(IWSManClient client) { List ret = CimBase.Enumerate(client); return new Collection(ret); } /// /// Delete the instance of IPS_ScreenConfigurationService 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_ScreenConfigurationService class. /// public new class CimKeys : CIM_Service.CimKeys { } } }