📄 pstaohookswitch.h
字号:
//// Copyright (C) 2004, 2005 Pingtel Corp.// //// $$//////////////////////////////////////////////////////////////////////////////#ifndef _PsTaoHookswitch_h_#define _PsTaoHookswitch_h_// SYSTEM INCLUDES// APPLICATION INCLUDES#include "ps/PsTaoComponent.h"// DEFINES// MACROS// EXTERNAL FUNCTIONS// EXTERNAL VARIABLES// CONSTANTS// STRUCTS// TYPEDEFS// FORWARD DECLARATIONS//:The PsTaoHookswitch class models the phone hook switch.class PsTaoHookswitch : public PsTaoComponent{ friend class PsPhoneTask; // The PsPhoneTask is responsible for creating and destroying // all objects derived from the PsTaoComponent class. No other entity // should invoke the constructors or destructors for these classes./* //////////////////////////// PUBLIC //////////////////////////////////// */public: enum HookswitchState { ON_HOOK, OFF_HOOK };/* ============================ CREATORS ================================== *//* ============================ MANIPULATORS ============================== */ void setHookSwitch(int hookswitchState); //:Sets the state of the hookswitch to either ON_HOOK or OFF_HOOK./* ============================ ACCESSORS ================================= */ int getHookSwitchState(void); //:Returns the current state of the hookswitch./* ============================ INQUIRY =================================== *//* //////////////////////////// PROTECTED ///////////////////////////////// */protected: PsTaoHookswitch(const UtlString& rComponentName, int componentType);/* //////////////////////////// PRIVATE /////////////////////////////////// */private: int mHookState; // hookswitch state virtual ~PsTaoHookswitch(); //:Destructor PsTaoHookswitch(); //:Default constructor (not implemented for this class) PsTaoHookswitch(const PsTaoHookswitch& rPsTaoHookswitch); //:Copy constructor (not implemented for this class) PsTaoHookswitch& operator=(const PsTaoHookswitch& rhs); //:Assignment operator (not implemented for this class)};/* ============================ INLINE METHODS ============================ */#endif // _PsTaoHookswitch_h_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -