version 1.18, 2003/10/27 19:48:06
|
version 1.25, 2006/01/30 16:17:07
|
|
|
//%2003//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; | // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Chip Vincent (cvincent@us.ibm.com) |
|
// |
|
// Modified By: Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_ResponseHandler_h | #ifndef Pegasus_ResponseHandler_h |
|
|
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class ResponseHandlerRep; |
|
|
|
/** | /** |
<p>The <tt>ResponseHandler</tt> class allows a provider | <p>The <tt>ResponseHandler</tt> class allows a provider |
to report operation progress and results to the CIM Server. | to report operation progress and results to the CIM Server. |
|
|
virtual void complete(void) = 0; | virtual void complete(void) = 0; |
| |
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES | #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
/** |
/** <I><B>Experimental Interface</B></I><BR> |
Set the context for the results delivered to the CIM Server. | Set the context for the results delivered to the CIM Server. |
<p>The <tt>setContext</tt> function is used by providers to | <p>The <tt>setContext</tt> function is used by providers to |
set a context for the response, in the form of an OperationContext | set a context for the response, in the form of an OperationContext |
|
|
processing before <tt>complete</tt> is called.</p> | processing before <tt>complete</tt> is called.</p> |
<p>Currently supported OperationContext containers: | <p>Currently supported OperationContext containers: |
<li> | <li> |
ContentLanguageListContainer: used to set the ContentLanguages of the |
ContentLanguageListContainer: used to set the ContentLanguageList of the |
results. | results. |
</li> | </li> |
</p> | </p> |
|
|
virtual void deliver(const Array<CIMObject> & objects) = 0; | virtual void deliver(const Array<CIMObject> & objects) = 0; |
}; | }; |
| |
|
|
#ifdef PEGASUS_INTERNALONLY |
|
// This type is used in CIMPropertyProvider which Pegasus does not support |
|
// |
|
// ValueResponseHandler |
|
// |
|
class PEGASUS_COMMON_LINKAGE ValueResponseHandler : virtual public ResponseHandler |
|
{ |
|
public: |
|
virtual void deliver(const CIMValue & value) = 0; |
|
|
|
virtual void deliver(const Array<CIMValue> & values) = 0; |
|
}; |
|
#endif |
|
|
|
|
|
#ifdef PEGASUS_INTERNALONLY |
|
// This type is used in CIMClassProvider which Pegasus does not support |
|
// |
|
// ClassResponseHandler |
|
// |
|
class PEGASUS_COMMON_LINKAGE ClassResponseHandler : virtual public ResponseHandler |
|
{ |
|
public: |
|
virtual void deliver(const CIMClass & classObj) = 0; |
|
|
|
virtual void deliver(const Array<CIMClass> & classObjs) = 0; |
|
}; |
|
#endif |
|
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif | #endif |