sipXcallLib home page


CpIntMessage.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _CpIntMessage_h_
13 #define _CpIntMessage_h_
14 
15 // SYSTEM INCLUDES
16 //#include <...>
17 
18 // APPLICATION INCLUDES
19 #include <os/OsDefs.h>
20 #include <os/OsMsg.h>
21 #include <cp/CallManager.h>
22 
23 // DEFINES
24 // MACROS
25 // EXTERNAL FUNCTIONS
26 // EXTERNAL VARIABLES
27 // CONSTANTS
28 // STRUCTS
29 // TYPEDEFS
30 // FORWARD DECLARATIONS
31 
32 //:Class short description which may consist of multiple lines (note the ':')
33 // Class detailed description which may extend to multiple lines
34 class CpIntMessage : public OsMsg
35 {
36 /* //////////////////////////// PUBLIC //////////////////////////////////// */
37 public:
38 
39 /* ============================ CREATORS ================================== */
40 
41  CpIntMessage(unsigned char messageSubtype = CallManager::CP_UNSPECIFIED,
42  intptr_t intValue = 0);
43  //:Default constructor
44 
45 
46  virtual
47  ~CpIntMessage();
48  //:Destructor
49 
50  virtual OsMsg* createCopy() const;
51 
52 /* ============================ MANIPULATORS ============================== */
53 
54 
55 /* ============================ ACCESSORS ================================= */
56  void getIntData(intptr_t& intValue) const;
57 
58 /* ============================ INQUIRY =================================== */
59 
60 /* //////////////////////////// PROTECTED ///////////////////////////////// */
61 protected:
62 
63 /* //////////////////////////// PRIVATE /////////////////////////////////// */
64 private:
65  intptr_t mIntData;
66 
67  CpIntMessage(const CpIntMessage& rCpIntMessage);
68  //:disable Copy constructor
69 
70  CpIntMessage& operator=(const CpIntMessage& rhs);
71  //:disable Assignment operator
72 
73 };
74 
75 /* ============================ INLINE METHODS ============================ */
76 
77 #endif // _CpIntMessage_h_
Definition: CpCallManager.h:106
CpIntMessage & operator=(const CpIntMessage &rhs)
Definition: CpIntMessage.cpp:57
intptr_t mIntData
Definition: CpIntMessage.h:65
virtual ~CpIntMessage()
Definition: CpIntMessage.cpp:43
Definition: CpIntMessage.h:34
void getIntData(intptr_t &intValue) const
Definition: CpIntMessage.cpp:70
virtual OsMsg * createCopy() const
Definition: CpIntMessage.cpp:48
CpIntMessage(unsigned char messageSubtype=CallManager::CP_UNSPECIFIED, intptr_t intValue=0)
Definition: CpIntMessage.cpp:29