sipxtacklib  Version 3.3
SipObserverCriteria.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 _SipObserverCriteria_h_
13 #define _SipObserverCriteria_h_
14 
15 // SYSTEM INCLUDES
16 //#include <...>
17 
18 // APPLICATION INCLUDES
19 #include <os/OsMsgQ.h>
20 
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 class SipSession;
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 SipObserverCriteria : public UtlString
35 {
36 /* //////////////////////////// PUBLIC //////////////////////////////////// */
37 public:
38 
39 /* ============================ CREATORS ================================== */
40 
41  SipObserverCriteria(void* observerData = NULL,
42  OsMsgQ* messageQueue = NULL,
43  const char* sipMethod = NULL,
44  UtlBoolean wantRequests = TRUE,
45  UtlBoolean wantResponses = TRUE,
46  UtlBoolean wantIncoming = TRUE,
47  UtlBoolean wantOutGoing = TRUE,
48  const char* eventName = NULL,
49  SipSession* pSession = NULL);
50  //:Default constructor
51 
52  virtual
54  //:Destructor
55 
56 /* ============================ MANIPULATORS ============================== */
57 
58 
59 /* ============================ ACCESSORS ================================= */
60 
61  OsMsgQ* getObserverQueue();
62  void* getObserverData();
63  void getEventName(UtlString& eventName);
65 
66 /* ============================ INQUIRY =================================== */
67 
68  UtlBoolean wantsRequests();
69  UtlBoolean wantsResponses();
70  UtlBoolean wantsIncoming();
71  UtlBoolean wantsOutGoing();
72 
73 /* //////////////////////////// PROTECTED ///////////////////////////////// */
74 protected:
75 
76 /* //////////////////////////// PRIVATE /////////////////////////////////// */
77 private:
78 
79  void* mObserverData;
80  UtlBoolean mWantsRequests;
81  UtlBoolean mWantsResponses;
82  UtlBoolean mWantsIncoming;
83  UtlBoolean mWantsOutGoing;
84  OsMsgQ* mpMessageObserverQueue;
85  UtlString mEventName;
86  SipSession* mpSession ;
87 
88  SipObserverCriteria& operator=(const SipObserverCriteria& rhs);
89  //:Assignment operator (not implemented)
90 
91  SipObserverCriteria(const SipObserverCriteria& rSipObserverCriteria);
92  //:Copy constructor (not implemented)
93 
94 };
95 
96 /* ============================ INLINE METHODS ============================ */
97 
98 #endif // _SipObserverCriteria_h_
Definition: SipSession.h:33
SipObserverCriteria(void *observerData=NULL, OsMsgQ *messageQueue=NULL, const char *sipMethod=NULL, UtlBoolean wantRequests=TRUE, UtlBoolean wantResponses=TRUE, UtlBoolean wantIncoming=TRUE, UtlBoolean wantOutGoing=TRUE, const char *eventName=NULL, SipSession *pSession=NULL)
Definition: SipObserverCriteria.cpp:29
OsMsgQ * getObserverQueue()
Definition: SipObserverCriteria.cpp:85
Definition: SipObserverCriteria.h:34
UtlBoolean wantsOutGoing()
Definition: SipObserverCriteria.cpp:122
void * getObserverData()
Definition: SipObserverCriteria.cpp:90
UtlBoolean wantsResponses()
Definition: SipObserverCriteria.cpp:112
UtlBoolean wantsRequests()
Definition: SipObserverCriteria.cpp:107
UtlBoolean wantsIncoming()
Definition: SipObserverCriteria.cpp:117
virtual ~SipObserverCriteria()
Definition: SipObserverCriteria.cpp:63
SipSession * getSession()
Definition: SipObserverCriteria.cpp:100
void getEventName(UtlString &eventName)
Definition: SipObserverCriteria.cpp:95

sipXtackLib home page