⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 battery_instanceobject.h

📁 270的linux说明
💻 H
字号:
/*

Copyright (c) 2008, Intel Corporation. 

All rights reserved.

 

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:


    * Redistributions of source code must retain the above copyright notice, 
this list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above copyright notice, 
this list of conditions and the following disclaimer in the documentation and/or 
other materials provided with the distribution.

    * Neither the name of Intel Corporation nor the names of its contributors 
may be used to endorse or promote products derived from this software without 
specific prior written permission.

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

*/#pragma once#include "../framework/base_InstanceObject.h"#include "../framework/base_Property.h"class ServerBatteryInstanceObject;CLASSEXPANSION      (BatteryIndexClass,                         IntelMobileInt,                     "Index",                        false, true,    5000 );CLASSEXPANSION      (BatteryConditionClass,                     IntelMobileBatteryConditionEnum,    "Condition",                    false, false,   5000 );CLASSEXPANSION      (BatteryCapacityClass,                      IntelMobileUInt64,                  "Capacity",                     false, false,   5000 );CLASSEXPANSION      (BatteryChemistryClass,                     IntelMobileString,                  "Chemistry",                    false, true,    5000 );CLASSEXPANSION      (BatteryCriticalBiasClass,                  IntelMobileUInt64,                  "CriticalBias",                 false, true,    5000 );CLASSEXPANSION      (BatteryCycleCountClass,                    IntelMobileUInt64,                  "CycleCount",                   false, false,   5000 );CLASSEXPANSION      (BatteryDesignedCapacityClass,              IntelMobileUInt64,                  "DesignedCapacity",             false, true,    5000 );CLASSEXPANSION      (BatteryEstimatedTimeRemainingClass,        IntelMobileUInt64,                  "EstimatedTimeRemaining",       false, false,   5000 );CLASSEXPANSION      (BatteryFullCapacityClass,           IntelMobileUInt64,                  "FullCapacity",          false, false,   5000 );CLASSEXPANSION      (BatteryStateUpdateIntervalClass,  IntelMobileUInt64,                  "StateUpdateInterval", false, false,   5000 );CLASSEXPANSION      (BatteryPercentRemainingClass,          IntelMobileUInt,                  "PercentRemaining",         false, false,   5000 );CLASSEXPANSION      (BatteryManufactureDateClass,               IntelMobileDate,                    "ManufactureDate",              false, true,    5000 );CLASSEXPANSION      (BatteryManufacturerClass,                  IntelMobileString,                  "Manufacturer",                 false, true,    5000 );CLASSEXPANSION      (BatteryNameClass,                          IntelMobileString,                  "Name",                         false, true,    5000 );CLASSEXPANSION      (BatteryRateClass,                          IntelMobileInt64,                   "Rate",                         false, false,   5000 );CLASSEXPANSION      (BatteryRechargeableClass,                  IntelMobileBool,                    "Rechargeable",                 false, true,    5000 );CLASSARRAYEXPANSION (BatteryReportingScaleCapacityClass,        IntelMobileUInt64,                  "ReportingScaleCapacity",       false, false,   5000 );CLASSEXPANSION      (BatteryReportingScaleEntriesClass,         IntelMobileUInt,                   "ReportingScaleEntries",        false, false,   5000 );CLASSARRAYEXPANSION (BatteryReportingScaleGranularityClass,     IntelMobileUInt64,                  "ReportingScaleGranularity",    false, false,   5000 ); CLASSEXPANSION      (BatterySerialNumberClass,                  IntelMobileString,                  "SerialNumber",                 false, true,    5000 );CLASSEXPANSION      (BatterySuggestedCriticalAlertCapacityClass,        IntelMobileUInt64,                  "SuggestedCriticalAlertCapacity",       false, true,    5000 );CLASSEXPANSION      (BatterySuggestedLowAlertCapacityClass,             IntelMobileUInt64,                  "SuggestedLowAlertCapacity",            false, true,    5000 );CLASSEXPANSION      (BatteryCriticalAlertCapacityClass,                 IntelMobileUInt64,                  "CriticalAlertCapacity",                false, false,   5000 );CLASSEXPANSION      (BatteryLowAlertCapacityClass,                      IntelMobileUInt64,                  "LowAlertCapacity",                     false, false,   5000 );CLASSEXPANSION      (BatteryFailSafeClass,                 IntelMobileBool,                    "FailSafe",                false, true,    5000 );CLASSEXPANSION      (BatteryTemperatureClass,                   IntelMobileUInt,                  "Temperature",                  false, false,   5000 );CLASSEXPANSION      (BatteryTimeRemainingClass,    IntelMobileUInt64,                  "TimeRemaining",   false, false,   5000 );CLASSEXPANSION      (BatteryIdClass,                            IntelMobileString,                  "Id",                           false, true,    5000 );CLASSEXPANSION      (BatteryVoltageClass,                       IntelMobileUInt64,                  "Voltage",                      false, false,   5000 );// CLASSEXPANSION      (BatteryDeadClass,							IntelMobileBool,					"Dead",							false, false,	5000 );class ServerBatteryInstanceObject : public ServerInstanceObject{public:    ServerBatteryInstanceObject( const IntelMobileString& szKey, CLog& theLog, const IntelMobileString sType = IntelMobileText("Battery") ) ;   virtual ~ServerBatteryInstanceObject()  {}public:    // Properties	BatteryCapacityClass                            Capacity;    BatteryChemistryClass                           Chemistry;    BatteryConditionClass                           Condition;    BatteryCriticalAlertCapacityClass                       CriticalAlertCapacity;    BatteryCriticalBiasClass                        CriticalBias;    BatteryCycleCountClass                          CycleCount;    BatteryDesignedCapacityClass                    DesignedCapacity;    BatteryEstimatedTimeRemainingClass              EstimatedTimeRemaining;    BatteryFailSafeClass                       FailSafe;    BatteryFullCapacityClass                 	    FullCapacity;    BatteryIdClass                                  Id;    BatteryIndexClass                               Index;    BatteryLowAlertCapacityClass                            LowAlertCapacity;    BatteryManufactureDateClass                     ManufactureDate;    BatteryManufacturerClass                        Manufacturer;    BatteryNameClass                                Name;    BatteryPercentRemainingClass                PercentRemaining;    BatteryRateClass                                Rate;    BatteryRechargeableClass                        Rechargeable;    BatteryReportingScaleCapacityClass              ReportingScaleCapacity;    BatteryReportingScaleEntriesClass               ReportingScaleEntries;    BatteryReportingScaleGranularityClass           ReportingScaleGranularity;    BatterySerialNumberClass                        SerialNumber;    BatteryStateUpdateIntervalClass        StateUpdateInterval;    BatterySuggestedCriticalAlertCapacityClass              SuggestedCriticalAlertCapacity;    BatterySuggestedLowAlertCapacityClass                   SuggestedLowAlertCapacity;    BatteryTemperatureClass                         Temperature;    BatteryTimeRemainingClass          TimeRemaining;    BatteryVoltageClass                             Voltage;//	BatteryDeadClass								Dead;    // Method};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -