1 karl 1.7 //%2003////////////////////////////////////////////////////////////////////////
|
2 mike 1.2 //
|
3 karl 1.7 // 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.;
6 // IBM Corp.; EMC Corporation, The Open Group.
|
7 mike 1.2 //
8 // Permission is hereby granted, free of charge, to any person obtaining a copy
9 // of this software and associated documentation files (the "Software"), to
10 // deal in the Software without restriction, including without limitation the
11 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12 // sell copies of the Software, and to permit persons to whom the Software is
13 // furnished to do so, subject to the following conditions:
|
14 karl 1.7 //
|
15 mike 1.2 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
16 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
17 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
18 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
19 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 //
24 //==============================================================================
25 //
26 // Author: Nitin Upasani, Hewlett-Packard Company (Nitin_Upasani@hp.com)
27 //
|
28 kumpf 1.6 // Modified By: Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
|
29 mike 1.2 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32 #ifndef PegasusHandler_Handler_h
33 #define PegasusHandler_Handler_h
34
35 #include <Pegasus/Common/Config.h>
36 #include <Pegasus/Common/CIMObject.h>
|
37 chuck 1.5 #include <Pegasus/Common/ContentLanguages.h>
|
38 mike 1.2 #include <Pegasus/Repository/CIMRepository.h>
|
39 kumpf 1.6 #include <Pegasus/Common/OperationContext.h>
|
40 kumpf 1.4 #include <Pegasus/Handler/Linkage.h>
|
41 mike 1.2
42 PEGASUS_NAMESPACE_BEGIN
43
44 class PEGASUS_HANDLER_LINKAGE CIMHandler
45 {
46 public:
47
48 CIMHandler() { };
49
50 virtual ~CIMHandler() { };
51
52 // Abstract method which each and every handler needs to be implemented.
53 // Indication processing will instantiate IndicationDispatcher which
54 // will look into Handler Table to load the appropriate handler. If
55 // handler is already loaded then IndicationDispatcher will call this
56 // method implemented in handler.
|
57 chuck 1.5 // l10n
58 virtual void handleIndication(
|
59 kumpf 1.6 const OperationContext& context,
|
60 mike 1.2 CIMInstance& indicationHandlerInstance,
61 CIMInstance& indicationInstance,
|
62 chuck 1.5 String nameSpace,
63 ContentLanguages& contentLanguages) = 0;
|
64 mike 1.2
65 // These are the method to initialize and terminate handler. Actual need and
66 // implementation way these methods are yet to be finalized.
67
68 virtual void initialize(CIMRepository* repository) = 0;
69 virtual void terminate() = 0;
70 };
71
72 PEGASUS_NAMESPACE_END
73
74 #endif /* PegasusHandler_Handler_h */
|