pstaohookswitch.h

来自「基于sipfoundy 公司开发的sipx协议API」· C头文件 代码 · 共 85 行

H
85
字号
//// 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 + =
减小字号Ctrl + -
显示快捷键?