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

 1 martin 1.30 //%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.30 // 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.30 //////////////////////////////////////////////////////////////////////////
29 chip   1.1  //
30             //%/////////////////////////////////////////////////////////////////////////////
31             
32             #include "ProviderManager.h"
33 konrad.r 1.6  #include <Pegasus/Common/FileSystem.h>
34 kumpf    1.12 #include <Pegasus/Config/ConfigManager.h>
35 kumpf    1.28 #include <Pegasus/Common/PegasusVersion.h>
36 chip     1.1  
37               PEGASUS_NAMESPACE_BEGIN
38               
39 kumpf    1.25 ProviderManager::ProviderManager()
40 chip     1.1  {
41               }
42               
43 kumpf    1.25 ProviderManager::~ProviderManager()
44 chip     1.1  {
45               }
46 schuur   1.4  
47               String ProviderManager::_resolvePhysicalName(String physicalName)
48               {
49 s.kodali 1.29 
50               #ifdef PEGASUS_ALLOW_ABSOLUTEPATH_IN_PROVIDERMODULE
51                   if ( System::is_absolute_path(physicalName.getCString()) )
52                   {
53                        return physicalName;
54                   }
55               #endif
56               
57 gs.keenan 1.24     String fileName = FileSystem::buildLibraryFileName(physicalName);
58 kumpf     1.14     fileName = FileSystem::getAbsoluteFileName(
59                        ConfigManager::getHomedPath(
60                            ConfigManager::getInstance()->getCurrentValue("providerDir")),
61                        fileName);
62                
63                    return fileName;
64 schuur    1.4  }
65                
66 kumpf     1.13 void ProviderManager::setIndicationCallback(
67 kumpf     1.23         PEGASUS_INDICATION_CALLBACK_T indicationCallback)
68 kumpf     1.13 {
69                    _indicationCallback = indicationCallback;
70                }
71 chip      1.1  
72 kumpf     1.23 void ProviderManager::setResponseChunkCallback(
73                        PEGASUS_RESPONSE_CHUNK_CALLBACK_T responseChunkCallback)
74                {
75                    _responseChunkCallback = responseChunkCallback;
76                }
77                
78 carolann.graves 1.18 void ProviderManager::setSubscriptionInitComplete
79                          (Boolean subscriptionInitComplete)
80                      {
81                          _subscriptionInitComplete = subscriptionInitComplete;
82                      }
83                      
84 chip            1.1  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2