## BObject

BObject — an abstract base class derived from GObject

## Synopsis

    struct      BObject;
    void        b_object_set_filename           (BObject *object,
                                                 const gchar *filename);
    void        b_object_set_name               (BObject *object,
                                                 const gchar *name);
    const gchar* b_object_get_filename          (BObject *object);
    const gchar* b_object_get_name              (BObject *object);

## Object Hierarchy

      GObject
       +----BObject

## Properties

      "filename"             gchararray           : Read / Write
      "name"                 gchararray           : Read / Write

## Description

BObject is directly derived from GObject and adds name and filename properties.

## Details

### struct BObject

    struct BObject;

The BObject struct shouldn't be accessed directly. Its members are considered private.

### b_object_set_filename ()

    void        b_object_set_filename           (BObject *object,
                                                 const gchar *filename);

Sets the filename associated with `object`.

`object` : | a BObject.
`filename` : | the new filename, a nul-terminated string in the filesystem's encoding.

### b_object_set_name ()

    void        b_object_set_name               (BObject *object,
                                                 const gchar *name);

Sets the name associated with `object`.

`object` : | a BObject.
`name` : | the new name, a nul-terminated string in UTF-8 encoding.

### b_object_get_filename ()

    const gchar* b_object_get_filename          (BObject *object);

This functions retrieves the filename associated with `object`. The returned value must not be freed.

`object` : | a BObject.
Returns : | the fileanme or `NULL` if no filename was set for `object`.

### b_object_get_name ()

    const gchar* b_object_get_name              (BObject *object);

This functions retrieves the name associated with `object`. If no name has been set for `object`, the name is generated from the `object`'s filename. The returned value must not be freed.

`object` : | a BObject.
Returns : | the name or `NULL` if no name and no filename was set for `object`.

## Properties

"`filename`" (gchararray : Read / Write) | The filename associated with the object. This is a string in the filesystems's encoding.
"`name`" (gchararray : Read / Write) | The name associated with the object. This is a string in UTF-8 encoding.