?? gaugethreshold.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.
*///==============================================================================// GaugeThreshold.h : Definition of the GaugeThreshold classes//==============================================================================#ifndef _CLIENT_GAUGETHRESHOLD_H#define _CLIENT_GAUGETHRESHOLD_H#include "../Base/base_Threshold.h"using namespace Intel::Mobile::BaseAPI;//==============================================================================namespace Intel { namespace Mobile { namespace ThresholdAPI { // Class: GaugeThreshold class /*DllExport*/ GaugeThreshold : public Intel::Mobile::BaseAPI::Threshold { public: GaugeThreshold(); virtual ~GaugeThreshold(); bool GetNotifyHigh() const; bool GetNotifyLow () const; bool SetNotifyHigh( bool notifyHigh ); bool SetNotifyLow ( bool notifyLow ); }; //------------------------------------------------------------------------ // // Class: ByteGaugeThreshold // //------------------------------------------------------------------------ class /*DllExport*/ ByteGaugeThreshold : public GaugeThreshold { public: ByteGaugeThreshold(); virtual bool SetObservedProperty( const Intel::Mobile::BaseAPI::ByteProperty& observedProperty ); unsigned char GetHighThreshold() const; unsigned char GetLowThreshold () const; unsigned char GetOffset () const; bool SetHighThreshold( unsigned char highThreshold ); bool SetLowThreshold ( unsigned char lowThreshold ); bool SetOffset ( unsigned char offset ); };// END CLASS DEFINITION ByteGaugeThreshold //------------------------------------------------------------------------ // // Class: IntGaugeThreshold // //------------------------------------------------------------------------ class /*DllExport*/ IntGaugeThreshold : public GaugeThreshold { public: IntGaugeThreshold(); virtual bool SetObservedProperty( const Intel::Mobile::BaseAPI::IntProperty& observedProperty ); __int32 GetHighThreshold() const; __int32 GetLowThreshold () const; __int32 GetOffset () const; bool SetHighThreshold( __int32 highThreshold ); bool SetLowThreshold ( __int32 lowThreshold ); bool SetOffset ( __int32 offset ); };// END CLASS DEFINITION IntGaugeThreshold //------------------------------------------------------------------------ // // Class: UIntGaugeThreshold // //------------------------------------------------------------------------ class /*DllExport*/ UIntGaugeThreshold : public GaugeThreshold { public: UIntGaugeThreshold(); virtual bool SetObservedProperty( const Intel::Mobile::BaseAPI::UIntProperty& observedProperty ); unsigned __int32 GetHighThreshold() const; unsigned __int32 GetLowThreshold () const; unsigned __int32 GetOffset () const; bool SetHighThreshold( unsigned __int32 highThreshold ); bool SetLowThreshold ( unsigned __int32 lowThreshold ); bool SetOffset ( unsigned __int32 offset ); };// END CLASS DEFINITION UIntGaugeThreshold //------------------------------------------------------------------------ // // Class: Int64GaugeThreshold // //------------------------------------------------------------------------ class /*DllExport*/ Int64GaugeThreshold : public GaugeThreshold { public: Int64GaugeThreshold(); virtual bool SetObservedProperty( const Intel::Mobile::BaseAPI::Int64Property& observedProperty ); __int64 GetHighThreshold() const; __int64 GetLowThreshold () const; __int64 GetOffset () const; bool SetHighThreshold( __int64 highThreshold ); bool SetLowThreshold ( __int64 lowThreshold ); bool SetOffset ( __int64 offset ); };// END CLASS DEFINITION Int64GaugeThreshold //------------------------------------------------------------------------ // // Class: UInt64GaugeThreshold // //------------------------------------------------------------------------ class /*DllExport*/ UInt64GaugeThreshold : public GaugeThreshold { public: //Threshold methods UInt64GaugeThreshold(); virtual bool SetObservedProperty( const Intel::Mobile::BaseAPI::UInt64Property& observedProperty ); unsigned __int64 GetHighThreshold() const; unsigned __int64 GetLowThreshold () const; unsigned __int64 GetOffset () const; bool SetHighThreshold( unsigned __int64 highThreshold ); bool SetLowThreshold ( unsigned __int64 lowThreshold ); bool SetOffset ( unsigned __int64 offset ); };// END CLASS DEFINITION UInt64GaugeThreshold //------------------------------------------------------------------------ // // Class: DateGaugeThreshold // //------------------------------------------------------------------------ class /*DllExport*/ DateGaugeThreshold : public GaugeThreshold { public: DateGaugeThreshold(); virtual bool SetObservedProperty( const Intel::Mobile::BaseAPI::DateTimeProperty& observedProperty ); DATE GetHighThreshold() const; DATE GetLowThreshold () const; DATE GetOffset () const; bool SetHighThreshold(DATE highThreshold); bool SetLowThreshold(DATE lowThreshold); bool SetOffset(DATE offset); };// END CLASS DEFINITION DateGaugeThreshold //------------------------------------------------------------------------ // // Class: FloatGaugeThreshold // //------------------------------------------------------------------------ class /*DllExport*/ FloatGaugeThreshold : public GaugeThreshold { public: FloatGaugeThreshold(); virtual bool SetObservedProperty( const Intel::Mobile::BaseAPI::FloatProperty& observedProperty ); float GetHighThreshold() const; float GetLowThreshold () const; float GetOffset () const; bool SetHighThreshold( float highThreshold ); bool SetLowThreshold ( float lowThreshold ); bool SetOffset ( float offset ); };// END CLASS DEFINITION FloatGaugeThreshold } }}//==============================================================================#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -