(file) Return to ProviderManager.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2

  1 martin 1.24 //%LICENSE////////////////////////////////////////////////////////////////
  2             // 
  3             // Licensed to The Open Group (TOG) under one or more contributor license
  4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             // this work for additional information regarding copyright ownership.
  6             // Each contributor licenses this file to you under the OpenPegasus Open
  7             // Source License; you may not use this file except in compliance with the
  8             // License.
  9             // 
 10             // Permission is hereby granted, free of charge, to any person obtaining a
 11             // copy of this software and associated documentation files (the "Software"),
 12             // to deal in the Software without restriction, including without limitation
 13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             // and/or sell copies of the Software, and to permit persons to whom the
 15             // Software is furnished to do so, subject to the following conditions:
 16             // 
 17             // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19             // 
 20             // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21             // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
 22 martin 1.24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 karl   1.15 // 
 28 martin 1.24 //////////////////////////////////////////////////////////////////////////
 29 chip   1.1  //
 30             //%/////////////////////////////////////////////////////////////////////////////
 31             
 32             #ifndef Pegasus_ProviderManager_h
 33             #define Pegasus_ProviderManager_h
 34             
 35             #include <Pegasus/Common/Config.h>
 36 b.whiteley 1.23 #include <Pegasus/Common/PegasusVersion.h>
 37 kumpf      1.12 #include <Pegasus/Common/CIMMessage.h>
 38 chip       1.1  
 39 schuur     1.5  #include <Pegasus/ProviderManager2/Linkage.h>
 40 chip       1.1  
 41                 PEGASUS_NAMESPACE_BEGIN
 42                 
 43 kumpf      1.19 typedef void (*PEGASUS_INDICATION_CALLBACK_T)(
 44 kumpf      1.12     CIMProcessIndicationRequestMessage*);
 45                 
 46 kumpf      1.19 typedef void (*PEGASUS_RESPONSE_CHUNK_CALLBACK_T)(
 47                     CIMRequestMessage* request, CIMResponseMessage* response);
 48                 
 49 schuur     1.5  class PEGASUS_PPM_LINKAGE ProviderManager
 50 chip       1.1  {
 51                 public:
 52 kumpf      1.21     ProviderManager();
 53                     virtual ~ProviderManager();
 54 chip       1.1  
 55 kumpf      1.21     virtual Message* processMessage(Message* message) = 0;
 56 chip       1.1  
 57 kumpf      1.13     virtual Boolean hasActiveProviders() = 0;
 58                     virtual void unloadIdleProviders() = 0;
 59 schuur     1.4      static String _resolvePhysicalName(String physicalName);
 60 chip       1.1  
 61 kumpf      1.12     /**
 62                         Sets the callback function to which indications generated by this
 63                         ProviderManager should be forwarded for processing.
 64                      */
 65                     virtual void setIndicationCallback(
 66 kumpf      1.19         PEGASUS_INDICATION_CALLBACK_T indicationCallback);
 67                 
 68                     /**
 69                         Sets the callback function to which response chunks generated by this
 70                         ProviderManager should be forwarded for processing.
 71                      */
 72                     virtual void setResponseChunkCallback(
 73                         PEGASUS_RESPONSE_CHUNK_CALLBACK_T responseChunkCallback);
 74 kumpf      1.12 
 75 schuur     1.14     virtual Boolean supportsRemoteNameSpaces() { return false; }
 76                 
 77 carolann.graves 1.17     /**
 78                              Sets the SubscriptionInitComplete flag indicating whether the Indication
 79                              Service has completed its initialization.
 80                           */
 81 kumpf           1.21     virtual void setSubscriptionInitComplete(Boolean subscriptionInitComplete);
 82 carolann.graves 1.17 
 83 chip            1.1  protected:
 84 kumpf           1.19     PEGASUS_INDICATION_CALLBACK_T _indicationCallback;
 85                          PEGASUS_RESPONSE_CHUNK_CALLBACK_T _responseChunkCallback;
 86 kumpf           1.12 
 87 carolann.graves 1.17     /**
 88                              Indicates whether the Indication Service has completed initialization.
 89                      
 90 kumpf           1.21         For more information, please see the description of the
 91 carolann.graves 1.17         ProviderManagerRouter::_subscriptionInitComplete member variable.
 92                           */
 93                          Boolean _subscriptionInitComplete;
 94                      
 95 chip            1.1      // ingredients for CIMOMHandle (binary message handler, repository, etc.)
 96                      };
 97                      
 98                      PEGASUS_NAMESPACE_END
 99                      
100 b.whiteley      1.23 #define PEGASUS_GET_VERSION_FUNC \
101                      extern "C" PEGASUS_EXPORT Uint32 getPegasusVersion() \
102                      { \
103                          return PEGASUS_VERSION_NUMBER;  \
104                      }
105                      
106 chip            1.1  #endif

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2