version 1.9, 2005/07/13 19:47:21
|
version 1.10, 2005/12/19 21:51:42
|
|
|
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
|
#include <Pegasus/Common/LanguageParser.h> |
| |
#include "IndicationConstants.h" | #include "IndicationConstants.h" |
#include "SubscriptionRepository.h" | #include "SubscriptionRepository.h" |
|
|
{ | { |
instance.addProperty (CIMProperty | instance.addProperty (CIMProperty |
(PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS, | (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS, |
acceptLangs.toString ())); |
LanguageParser::buildAcceptLanguageHeader(acceptLangs))); |
} | } |
else | else |
{ | { |
CIMProperty langs = instance.getProperty | CIMProperty langs = instance.getProperty |
(instance.findProperty | (instance.findProperty |
(PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS)); | (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS)); |
langs.setValue (CIMValue (acceptLangs.toString ())); |
langs.setValue (CIMValue ( |
|
LanguageParser::buildAcceptLanguageHeader(acceptLangs))); |
} | } |
| |
ContentLanguages contentLangs = contentLanguages; | ContentLanguages contentLangs = contentLanguages; |
|
|
{ | { |
instance.addProperty (CIMProperty | instance.addProperty (CIMProperty |
(PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS, | (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS, |
contentLangs.toString ())); |
LanguageParser::buildContentLanguageHeader(contentLangs))); |
} | } |
else | else |
{ | { |
CIMProperty langs = instance.getProperty | CIMProperty langs = instance.getProperty |
(instance.findProperty | (instance.findProperty |
(PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS)); | (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS)); |
langs.setValue (CIMValue (contentLangs.toString ())); |
langs.setValue (CIMValue ( |
|
LanguageParser::buildContentLanguageHeader(contentLangs))); |
} | } |
// l10n -end | // l10n -end |
| |