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

Diff for /pegasus/src/Pegasus/Listener/CIMListenerIndicationDispatcher.cpp between version 1.10 and 1.10.10.1

version 1.10, 2005/06/24 19:34:25 version 1.10.10.1, 2006/01/18 17:38:02
Line 45 
Line 45 
  
 #include <Pegasus/Listener/List.h> #include <Pegasus/Listener/List.h>
 #include <Pegasus/Consumer/CIMIndicationConsumer.h> #include <Pegasus/Consumer/CIMIndicationConsumer.h>
 #include <Pegasus/Common/ContentLanguages.h>  #include <Pegasus/Common/ContentLanguageList.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 58 
Line 58 
         CIMListenerIndicationDispatchEvent(CIMIndicationConsumer* consumer,         CIMListenerIndicationDispatchEvent(CIMIndicationConsumer* consumer,
                                            String url,                                            String url,
                                            CIMInstance instance,                                            CIMInstance instance,
                                            ContentLanguages contentLangs);                                             ContentLanguageList contentLangs);
         ~CIMListenerIndicationDispatchEvent();         ~CIMListenerIndicationDispatchEvent();
  
         CIMIndicationConsumer* getConsumer() const;         CIMIndicationConsumer* getConsumer() const;
  
         String getURL() const;         String getURL() const;
         CIMInstance getIndicationInstance() const;         CIMInstance getIndicationInstance() const;
         ContentLanguages getContentLanguages() const;          ContentLanguageList getContentLanguages() const;
  
 private: private:
         CIMIndicationConsumer*  _consumer;         CIMIndicationConsumer*  _consumer;
         String                                                                  _url;         String                                                                  _url;
         CIMInstance                                                     _instance;         CIMInstance                                                     _instance;
         ContentLanguages                    _contentLangs;          ContentLanguageList                    _contentLangs;
 }; };
  
 CIMListenerIndicationDispatchEvent::CIMListenerIndicationDispatchEvent(CIMIndicationConsumer* consumer, CIMListenerIndicationDispatchEvent::CIMListenerIndicationDispatchEvent(CIMIndicationConsumer* consumer,
                                                                        String url,                                                                        String url,
                                                                        CIMInstance instance,                                                                        CIMInstance instance,
                                                                        ContentLanguages contentLangs)                                                                         ContentLanguageList contentLangs)
 :_consumer(consumer),_url(url),_instance(instance), _contentLangs(contentLangs) :_consumer(consumer),_url(url),_instance(instance), _contentLangs(contentLangs)
 { {
 } }
Line 96 
Line 96 
 { {
         return _instance;         return _instance;
 } }
 ContentLanguages CIMListenerIndicationDispatchEvent::getContentLanguages() const  ContentLanguageList CIMListenerIndicationDispatchEvent::getContentLanguages() const
 { {
         return _contentLangs;         return _contentLangs;
 } }
Line 119 
Line 119 
         static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL deliver_routine(void *param);         static PEGASUS_THREAD_RETURN PEGASUS_THREAD_CDECL deliver_routine(void *param);
  
 private: private:
         void    deliverIndication(String url, CIMInstance instance, ContentLanguages contentLangs);          void    deliverIndication(String url, CIMInstance instance, ContentLanguageList contentLangs);
  
         ThreadPool* _thread_pool;         ThreadPool* _thread_pool;
         PtrList*                _consumers;         PtrList*                _consumers;
Line 158 
Line 158 
  
         CIMInstance instance = request->indicationInstance;         CIMInstance instance = request->indicationInstance;
         String                  url = request->destinationPath;         String                  url = request->destinationPath;
     ContentLanguages contentLangs =((ContentLanguageListContainer)request->operationContext.      ContentLanguageList contentLangs =((ContentLanguageListContainer)request->operationContext.
                                                             get(ContentLanguageListContainer::NAME)).getLanguages();                                                             get(ContentLanguageListContainer::NAME)).getLanguages();
  
         deliverIndication(url,instance,contentLangs);         deliverIndication(url,instance,contentLangs);
Line 180 
Line 180 
  
 void CIMListenerIndicationDispatcherRep::deliverIndication(String url, void CIMListenerIndicationDispatcherRep::deliverIndication(String url,
                                                            CIMInstance instance,                                                            CIMInstance instance,
                                                            ContentLanguages contentLangs)                                                             ContentLanguageList contentLangs)
 { {
         // go thru all consumers and broadcast the result; should be run in seperate thread         // go thru all consumers and broadcast the result; should be run in seperate thread
         Iterator* it = _consumers->iterator();         Iterator* it = _consumers->iterator();


Legend:
Removed from v.1.10  
changed lines
  Added in v.1.10.10.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2