This class provides a central resource to translate an application into the local language for the user.
More...
|
| | I18nBundle (const String &language) |
| | Constructor.
|
| |
| void | appendMo (Stream *stream) |
| | This method reads a *.mo file and adds the content to this bundle.
|
| |
| String | translate (const String &key) const |
| |
| | Preferences () |
| | Constructor.
|
| |
| | ~Preferences () override |
| | Destructor. Deletes all entries in the hashtable.
|
| |
| void | load (File file) |
| | This method reads the data from the file.
|
| |
| void | save (File file) |
| | This method writes the preferences to the file.
|
| |
| bool | hasValue (const String &key) const |
| | Check if the property is present.
|
| |
| void | setValue (const String &key, const String &value) |
| | Sets the property. Essentially calls the Put() method of Hashtable, but ensures that strings are used.
|
| |
| void | setValue (const String &key, int64 value) |
| | Sets the property. Essentially calls the Put() method of Hashtable, but ensures that strings are used.
|
| |
| void | setValue (const String &key, double value) |
| | Sets the property. Essentially calls the Put() method of Hashtable, but ensures that strings are used.
|
| |
| void | setValue (const String &key, bool value) |
| | Sets the property. Essentially calls the Put() method of Hashtable, but ensures that strings are used.
|
| |
| String | value (const String &key) const |
| | Returns the desired property.
|
| |
| String | value (const String &key, const String &defaultValue) const |
| | Returns the desired property.
|
| |
| int64 | valueInt (const String &key, int64 defaultValue) const |
| | Returns the desired property.
|
| |
| double | valueDouble (const String &key, double defaultValue) const |
| | Returns the desired property.
|
| |
| bool | valueBool (const String &key, bool defaultValue) const |
| | Returns the desired property.
|
| |
| | Hashtable () noexcept |
| | Default constructor for the Hashtable class.
|
| |
| | ~Hashtable () noexcept override |
| | Destructor for the Hashtable class.
|
| |
| void * | put (String key, void *value) noexcept |
| | This method inserts a new element into the hash table.
|
| |
| void * | get (const String &key) const noexcept |
| | This method returns the object associated with the specified key.
|
| |
| void * | remove (const String &key) noexcept |
| | This method removes the object associated with the specified key.
|
| |
| size_t | size () const noexcept |
| | Returns the number of entries in this hash table.
|
| |
| bool | isEmpty () const noexcept |
| | This method returns true if the hashtable is empty.
|
| |
| bool | containsKey (const String &key) const noexcept |
| | This method returns true if an object is associated with the specified key.
|
| |
| bool | containsValue (void *value) const noexcept |
| | This method returns true if the hashtable contains an object associated with the specified value.
|
| |
| Iterator * | keys () noexcept |
| | This method returns an object of the "Iterator" class that iterates through the keys of this table.
|
| |
| Iterator * | values () noexcept |
| | This method returns an object of the "Iterator" class that iterates through the values of this table.
|
| |
| void | clear () noexcept |
| | This method removes all elements from the Hashtable.
|
| |
| | Object () noexcept |
| | Constructor.
|
| |
| virtual | ~Object () noexcept |
| | Destructor.
|
| |
| void | release () noexcept |
| | Decreases the reference counter and releases the object immediately when the reference counter becomes 0.
|
| |
| Object * | retain () noexcept |
| | Increases the reference counter of this object by 1.
|
| |
| Object * | autorelease () noexcept |
| | Same function as release(), but releases the object with a delay if the reference counter is 0. AutoreleasePool::drain() must be called in the to release the object.
|
| |
| int32 | referenceCount () const noexcept |
| | Returns the value of the reference counter.
|
| |
| virtual bool | equals (const Object *other) const |
| | Comparison of objects.
|
| |
| virtual String | displayName () const |
| | Returns the display name of the object intended to present to a user.
|
| |
| virtual void | printDiffInfo (DiffOperation operation, Object *other) const |
| | Output method for outputting the diff results for the diff algorithm.
|
| |
| void | setHighBit (bool status) noexcept |
| |
| bool | highBit () const noexcept |
| |
This class provides a central resource to translate an application into the local language for the user.