/usr/include/sipxtapi/ptapi/PtPhoneTerminal.h is in libsipxtapi-dev 3.3.0~test17-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | //
// Copyright (C) 2004-2006 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// $$
///////////////////////////////////////////////////////////////////////////////
#ifndef _PtPhoneTerminal_h_
#define _PtPhoneTerminal_h_
// SYSTEM INCLUDES
// APPLICATION INCLUDES
#include "ptapi/PtTerminal.h"
#include "ptapi/PtDefs.h"
// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS
class PtComponentGroup;
//:The PtPhoneTerminal interface extends the PtTerminal interface to provide
// functionality for the Phone package. It allows applications to obtain arrays of
// telephony Components (each group is called a ComponentGroup) which
// represents the physical components of telephones. <br>
// <br>
// <H3>Do Not Disturb</H3>
// The PtPhoneTerminal class defines the <i>do-not-disturb</i> attribute. The
// <i>do-not-disturb</i> attribute indicates to the telephony platform that
// this terminal does not want to be bothered with incoming telephone calls.
// That is, if this feature is activated, the underlying telephone platform
// will not ring this terminal for incoming telephone calls. Applications use
// the PtPhoneTerminal.setDoNotDisturb() method to activate and deactivate this
// feature and the PtPhoneTerminal.getDoNotDisturb() method to return the current
// state of this attribute.<br>
// <br>
// Note that the PtAddress class also carries the <i>do-not-disturb</i>
// attribute. The attributes associated with each class are maintained
// independently. Maintaining a separate <i>do-not-disturb</i> attribute at
// both the terminal and address allows for control over the
// <i>do-not-disturb</i> feature at either the terminal or address level.
class PtPhoneTerminal : public PtTerminal
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:
/* ============================ CREATORS ================================== */
PtPhoneTerminal();
//:Default constructor
virtual
~PtPhoneTerminal();
//:Destructor
PtPhoneTerminal(const PtPhoneTerminal& rPtPhoneTerminal);
//:Copy constructor
PtPhoneTerminal(const char* terminalName);
/* ============================ MANIPULATORS ============================== */
PtPhoneTerminal& operator=(const PtPhoneTerminal& rhs);
//:Assignment operator
/* ============================ ACCESSORS ================================= */
virtual PtStatus getComponentGroups(PtComponentGroup* pComponentGroup[], int size, int& nItems);
//:Returns an array of ComponentGroup objects available on the Terminal. A
//:ComponentGroup object is composed of a number of Components.
//:Examples of Component objects include headsets, handsets,
// speakerphones, and buttons. ComponentGroup objects group Components
// together.
//!param: (out) pComponentGroup - The array of PtComponetGroups
//!param: (in) size - The number of elements in the <i>components</i> array
//!param: (out) nItems - The number of items assigned
//!retcode: PT_SUCCESS - Success
//!retcode: PT_MORE_DATA - There are more than <i>size</i> components
//!retcode: PT_PROVIDER_UNAVAILABLE - The provider is not available
/* ============================ INQUIRY =================================== */
/* //////////////////////////// PROTECTED ///////////////////////////////// */
protected:
/* //////////////////////////// PRIVATE /////////////////////////////////// */
private:
};
/* ============================ INLINE METHODS ============================ */
#endif // _PtPhoneTerminal_h_
|