zypp::TranslatedText::Impl Struct Reference

TranslatedText implementation. More...

List of all members.

Public Types

typedef std::map
< Locale,
std::string > 
TranslationMap

Public Member Functions

 Impl ()
 Impl (const std::string &text, const Locale &lang)
 Impl (const std::list< std::string > &text, const Locale &lang)
bool empty () const
std::string text (const Locale &lang) const
std::set< Localelocales () const
void setText (const std::string &text, const Locale &lang)
void setText (const std::list< std::string > &text, const Locale &lang)
Locale detectLanguage () const

Static Public Member Functions

static shared_ptr< Implnullimpl ()
 Offer default Impl.

Private Member Functions

Implclone () const
 clone for RWCOW_pointer

Private Attributes

TranslationMap translations

Friends

Implr (const Impl *rhs)


Detailed Description

TranslatedText implementation.

Definition at line 30 of file TranslatedText.cc.


Member Typedef Documentation

typedef std::map<Locale, std::string> zypp::TranslatedText::Impl::TranslationMap

Definition at line 32 of file TranslatedText.cc.


Constructor & Destructor Documentation

zypp::TranslatedText::Impl::Impl (  )  [inline]

Definition at line 34 of file TranslatedText.cc.

Referenced by clone().

zypp::TranslatedText::Impl::Impl ( const std::string &  text,
const Locale lang 
) [inline]

Definition at line 37 of file TranslatedText.cc.

References setText().

zypp::TranslatedText::Impl::Impl ( const std::list< std::string > &  text,
const Locale lang 
) [inline]

Definition at line 40 of file TranslatedText.cc.

References setText().


Member Function Documentation

bool zypp::TranslatedText::Impl::empty (  )  const [inline]

Definition at line 43 of file TranslatedText.cc.

References translations.

std::string zypp::TranslatedText::Impl::text ( const Locale lang  )  const [inline]

Definition at line 48 of file TranslatedText.cc.

References zypp::Locale::fallback(), zypp::ZConfig::instance(), zypp::Locale::noCode, zypp::ZConfig::textLocale(), and translations.

std::set<Locale> zypp::TranslatedText::Impl::locales (  )  const [inline]

Definition at line 82 of file TranslatedText.cc.

References translations.

void zypp::TranslatedText::Impl::setText ( const std::string &  text,
const Locale lang 
) [inline]

Definition at line 92 of file TranslatedText.cc.

References translations.

Referenced by Impl().

void zypp::TranslatedText::Impl::setText ( const std::list< std::string > &  text,
const Locale lang 
) [inline]

Definition at line 95 of file TranslatedText.cc.

References zypp::url::join(), and translations.

Locale zypp::TranslatedText::Impl::detectLanguage (  )  const [inline]

Todo:
Do it by accessing the global ZYpp.

Definition at line 99 of file TranslatedText.cc.

static shared_ptr<Impl> zypp::TranslatedText::Impl::nullimpl (  )  [inline, static]

Offer default Impl.

Definition at line 109 of file TranslatedText.cc.

Impl* zypp::TranslatedText::Impl::clone (  )  const [inline, private]

clone for RWCOW_pointer

Definition at line 118 of file TranslatedText.cc.

References Impl().


Friends And Related Function Documentation

Impl* r ( const Impl rhs  )  [friend]


Member Data Documentation

TranslationMap zypp::TranslatedText::Impl::translations [mutable, private]

Definition at line 105 of file TranslatedText.cc.

Referenced by empty(), locales(), setText(), and text().


The documentation for this struct was generated from the following file:
Generated on Tue Sep 25 19:23:16 2007 for libzypp by  doxygen 1.5.3