3 karl 1.3 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
9 tony 1.1 //
10 // Permission is hereby granted, free of charge, to any person obtaining a copy
11 // of this software and associated documentation files (the "Software"), to
12 // deal in the Software without restriction, including without limitation the
13 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14 // sell copies of the Software, and to permit persons to whom the Software is
15 // furnished to do so, subject to the following conditions:
16 //
17 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
18 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
19 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
20 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
22 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 //
26 //==============================================================================
27 //
28 // Author: Dong Xiang, EMC Corporation (xiang_dong@emc.com)
29 //
30 tony 1.1 // Modified By:
31 //
32 //%/////////////////////////////////////////////////////////////////////////////
33
34 #ifndef Pegasus_CIMListenerIndicationDispatcher_h
35 #define Pegasus_CIMListenerIndicationDispatcher_h
36
37 #include <Pegasus/Common/Config.h>
38 #include <Pegasus/Common/MessageQueueService.h>
39 #include <Pegasus/Listener/Linkage.h>
40
41 PEGASUS_NAMESPACE_BEGIN
42
43 class CIMIndicationConsumer;
44 /** This class dispatches CIM export requests. For now it simply
45 */
46 class PEGASUS_LISTENER_LINKAGE CIMListenerIndicationDispatcher
47 : public MessageQueueService
48 {
49 public:
50 typedef MessageQueueService Base;
51 tony 1.1
52 public:
53 CIMListenerIndicationDispatcher();
54 virtual ~CIMListenerIndicationDispatcher();
55
56 protected:
57 virtual void handleEnqueue(Message *);
58 virtual void handleEnqueue();
59
60 public:
61 Boolean addConsumer(CIMIndicationConsumer* consumer);
62 Boolean removeConsumer(CIMIndicationConsumer* consumer);
63
64 private:
65 void* _rep;
66 };
67
68 #define PEGASUS_QUEUENAME_LISTENERINDICATIONDISPACTCHER "CIMListenerIndicationDispacther"
69
70 PEGASUS_NAMESPACE_END
71
72 tony 1.1 #endif /* Pegasus_CIMListenerIndicationDispatcher_h */
|