|
| MMessageCatalog (MConstChars domain=NULL) |
| Message catalog constructor that takes one domain name. More...
|
|
| MMessageCatalog (NoThrowEnum, MConstChars domain) |
| No-throw version of message catalog constructor that takes one domain name. More...
|
|
virtual | ~MMessageCatalog () |
| Message catalog destructor.
|
|
void | AddDomain (const MStdString &domainName) |
| Add translation domain to the catalog. More...
|
|
void | Clear () |
| Clear all messages from the catalog.
|
|
MStdString | GetText (MConstLocalChars str) const |
| Translate the given English text into current language. More...
|
|
MStdString | GetText (MConstLocalChars str, unsigned strSize) const |
| Translate the given English text into current language. More...
|
|
MStdString | GetText (MConstChars domain, MConstLocalChars str) const |
| Translate the given English text into current language given the translation domain. More...
|
|
MStdString | GetText (MConstChars domain, MConstLocalChars str, unsigned strSize) const |
| Translate the given English text into current language given the translation domain. More...
|
|
MStdString | GetFormattedText (MConstLocalChars str,...) const |
| Translate the given English text with parameters into current language. More...
|
|
MStdString | GetFormattedText (MConstChars domain, MConstLocalChars str,...) const |
| Translate the given English text with parameters into current language given the translation domain. More...
|
|
MStdString | GetVaText (MConstLocalChars str, va_list va) const |
| Translate the given English text with parameters into current language. More...
|
|
MStdString | GetVaText (MConstChars domain, MConstLocalChars str, va_list va) const |
| Translate the given English text with parameters into current language given the translation domain. More...
|
|
MStdString | GetStdString (const MStdString &str) const |
| Translate the given English text into current language. More...
|
|
MStdString | GetStdStringDomain (const MStdString &domain, const MStdString &str) const |
| Translate the given English text into current language given the translation domain. More...
|
|
|
void | SetTranslationDelegate (TranslationDelegate delegate=NULL) |
|
TranslationDelegate | GetTranslationDelegate () const |
|
|
void | SetPath (const MStdString &) |
|
const MStdString & | GetPath () const |
|
|
const MStdString & | GetLocale () const |
|
void | SetLocale (const MStdString &locale) |
|
virtual | ~MObject () |
| Object destructor.
|
|
virtual const MClass * | GetClass () const =0 |
| Get the final class of the object. More...
|
|
virtual unsigned | GetEmbeddedSizeof () const |
| For embedded object types, return the size of the class. More...
|
|
bool | IsEmbeddedObject () const |
| Tell if the object is of embedded kind. More...
|
|
SHOW_INTERNAL MVariant | Call (const MStdString &name, const MVariant ¶ms) |
| Call the object service with parameters, given as variant. More...
|
|
MVariant | Call0 (const MStdString &name) |
| Call the object service with no parameters. More...
|
|
MVariant | Call1 (const MStdString &name, const MVariant &p1) |
| Call the object service with one parameter. More...
|
|
MVariant | Call2 (const MStdString &name, const MVariant &p1, const MVariant &p2) |
| Call the object service with two parameter. More...
|
|
MVariant | Call3 (const MStdString &name, const MVariant &p1, const MVariant &p2, const MVariant &p3) |
| Call the object service with three parameter. More...
|
|
MVariant | Call4 (const MStdString &name, const MVariant &p1, const MVariant &p2, const MVariant &p3, const MVariant &p4) |
| Call the object service with four parameter. More...
|
|
MVariant | Call5 (const MStdString &name, const MVariant &p1, const MVariant &p2, const MVariant &p3, const MVariant &p4, const MVariant &p5) |
| Call the object service with five parameter. More...
|
|
MVariant | Call6 (const MStdString &name, const MVariant &p1, const MVariant &p2, const MVariant &p3, const MVariant &p4, const MVariant &p5, const MVariant &p6) |
| Call the object service with six parameter. More...
|
|
virtual MVariant | CallV (const MStdString &name, const MVariant::VariantVector ¶ms) |
| Call the object service with parameters, given as variant vector. More...
|
|
virtual bool | IsPropertyPresent (const MStdString &name) const |
| Tell if the property with the given name exists.
|
|
virtual bool | IsServicePresent (const MStdString &name) const |
| Tell if the service with the given name exists.
|
|
virtual MVariant | GetProperty (const MStdString &name) const |
| Get the property value using name of the property. More...
|
|
virtual void | SetProperty (const MStdString &name, const MVariant &value) |
| Set the property using name of the property, and value. More...
|
|
virtual MStdStringVector | GetAllPropertyNames () const |
| Return the list of publicly available properties, persistent or not. More...
|
|
virtual MStdStringVector | GetAllPersistentPropertyNames () const |
| Return the list of persistent properties. More...
|
|
virtual void | SetPersistentPropertiesToDefault () |
| Set the persistent properties of the object to their default values. More...
|
|
virtual MVariant | GetPersistentPropertyDefaultValue (const MStdString &name) const |
| Get the default value of persistent property with the name given. More...
|
|
virtual void | SetPersistentPropertyToDefault (const MStdString &name) |
| Set the persistent property with the name given to default value. More...
|
|
virtual const char * | GetType () const |
| Get the name of the type for the object (could be the same as class name).
|
|
virtual void | SetType (const MStdString &) |
| Intentionally, it will set the name of the type for the object, but the service will not allow setting the name to anything other than the current name. More...
|
|
virtual void | Validate () |
| Validate internal structures of the object. More...
|
|
|
static const MMessageCatalog * | GetDefaultConst () |
| Access the constant global default message catalog. More...
|
|
static void | SetLocaleToAllCatalogs (const MStdString &locale) |
| Enumerate all created catalogs and set the given locale string to each.
|
|
static MStdString | GetTextDefault (MConstLocalChars str) |
| Static variant that calls GetText of the default catalog. More...
|
|
static MStdString | GetTextDefault (MConstLocalChars str, unsigned strSize) |
| Static variant that calls GetText of the default catalog. More...
|
|
static MStdString | GetTextDefault (MConstChars domain, MConstLocalChars str) |
| Static variant that calls GetText of the default catalog. More...
|
|
static MStdString | GetTextDefault (MConstChars domain, MConstLocalChars str, unsigned strSize) |
| Static variant that calls GetText of the default catalog. More...
|
|
static MStdString | GetFormattedTextDefault (MConstLocalChars str,...) |
| Static variant that calls GetFormattedText of the default catalog. More...
|
|
static MStdString | GetFormattedTextDefault (MConstChars domain, MConstLocalChars str,...) |
| Static variant that calls GetFormattedText of the default catalog. More...
|
|
static MStdString | GetVaTextDefault (MConstLocalChars str, va_list va) |
| Static variant that calls GetVaText of the default catalog. More...
|
|
static MStdString | GetVaTextDefault (MConstChars domain, MConstLocalChars str, va_list va) |
| Static variant that calls GetVaText of the default catalog. More...
|
|
static MStdString | GetStdStringDefault (const MStdString &str) |
| Static variant that calls GetStdString of the default catalog. More...
|
|
static MStdString | GetStdStringDomainDefault (const MStdString &domain, const MStdString &str) |
| Static variant that calls GetStdString of the default catalog. More...
|
|
static MStdString | StaticGetLocaleDescription (const MStdString &lang) |
| Get a human readable description of the given locale. More...
|
|
|
static MMessageCatalog * | GetDefault () |
|
static void | SetDefault (MMessageCatalog *def) |
|
static const MClass * | GetStaticClass () |
| Get the declared class of this particular object. More...
|
|
static bool | IsClassPresent (const MStdString &name) |
| Tells if the given class name is available. More...
|
|
Catalog of local strings.
The design and concepts of this class is done after standard POSIX gettext facility. Please see the documentation available on the web to refer to the notions, file formats, and so on.