sipXcallLib home page


TaoAdaptor.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 _TaoAdaptor_h_
13 #define _TaoAdaptor_h_
14 
15 #if _MSC_VER >= 1000
16 #pragma once
17 #endif // _MSC_VER >= 1000
18 
19 // SYSTEM INCLUDES
20 
21 // APPLICATION INCLUDES
22 #include "os/OsServerTask.h"
23 #include "tao/TaoListenerManager.h"
24 #include "tao/TaoMessage.h"
25 //#include "tao/TaoReference.h"
26 //#include "TaoDefs.h" // Added by ClassView
27 
28 // DEFINES
29 // MACROS
30 // EXTERNAL FUNCTIONS
31 // EXTERNAL VARIABLES
32 // CONSTANTS
33 // STRUCTS
34 // TYPEDEFS
35 // FORWARD DECLARATIONS
36 
38 
41 class TaoAdaptor : public OsServerTask
42 {
43 /* //////////////////////////// PUBLIC //////////////////////////////////// */
44 public:
45 /* ============================ CREATORS ================================== */
46  TaoAdaptor(const UtlString& name = "TaoAdaptor-%d",
47  const int maxRequestQMsgs=DEF_MAX_MSGS);
48  //:Constructor
49 
50  TaoAdaptor(const TaoAdaptor& rTaoAdaptor);
51  //:Copy constructor (not implemented for this class)
52 
53  virtual ~TaoAdaptor();
54 
55 /* ============================ MANIPULATORS ============================== */
56 
58 
63  virtual UtlBoolean handleMessage(OsMsg& rMsg);
64 
65  virtual void setListenerManager(TaoListenerManager*& rpListenerMgr)
66  { mpListenerMgr = rpListenerMgr; };
67 
68  virtual void parseMessage(TaoMessage& rMsg);
69  //:Parse the incoming message.
70 
71  virtual OsStatus setErrno(int errno);
72  //:Set the errno status for the task
73  // This call has no effect under Windows NT and, if the task has been
74  // started, will always returns OS_SUCCESS
75 
76 /* //////////////////////////// PROTECTED //////////////////////////////////// */
77 protected:
78 
79  unsigned char mCmd;
83  UtlString mArgList;
84  int mArgCnt;
85 
87 
88 private:
89 
90 
91 };
92 
93 #endif // _TaoAdaptor_h_
virtual void setListenerManager(TaoListenerManager *&rpListenerMgr)
Definition: TaoAdaptor.h:65
Definition: TaoMessage.h:51
TaoObjHandle mMsgID
Definition: TaoAdaptor.h:80
TaoObjHandle mClientSocket
Definition: TaoAdaptor.h:82
TaoListenerManager * mpListenerMgr
Definition: TaoAdaptor.h:86
virtual void parseMessage(TaoMessage &rMsg)
Definition: TaoAdaptor.cpp:54
virtual ~TaoAdaptor()
Definition: TaoAdaptor.cpp:31
Abstract event handler for processing call management event.
Definition: TaoAdaptor.h:41
int mArgCnt
Definition: TaoAdaptor.h:84
virtual UtlBoolean handleMessage(OsMsg &rMsg)
Handle an incoming message.
Definition: TaoAdaptor.cpp:35
virtual OsStatus setErrno(int errno)
Definition: TaoAdaptor.cpp:68
unsigned char mCmd
Definition: TaoAdaptor.h:79
UtlString mArgList
Definition: TaoAdaptor.h:83
TaoAdaptor(const UtlString &name="TaoAdaptor-%d", const int maxRequestQMsgs=DEF_MAX_MSGS)
Definition: TaoAdaptor.cpp:25
TaoObjHandle mObjId
Definition: TaoAdaptor.h:81
uintptr_t TaoObjHandle
Definition: TaoDefs.h:32
Definition: TaoListenerManager.h:44