daap-record

daap-record

Synopsis

#define             TYPE_DAAP_RECORD
#define             DAAP_RECORD                         (o)
#define             IS_DAAP_RECORD                      (o)
#define             DAAP_RECORD_GET_INTERFACE           (o)
                    DAAPRecord;
                    DAAPRecordInterface;
GType               daap_record_get_type                (void);
gboolean            daap_record_itunes_compat           (DAAPRecord *record);
GInputStream *      daap_record_read                    (DAAPRecord *record,
                                                         GError **err);

Object Hierarchy

  GInterface
   +----DAAPRecord

Properties

  "bitrate"                  gint                  : Read / Write
  "daap-songalbum"           gchar*                : Read / Write
  "daap-songartist"          gchar*                : Read / Write
  "daap-songgenre"           gchar*                : Read / Write
  "disc"                     gint                  : Read / Write
  "duration"                 gint                  : Read / Write
  "filesize"                 guint64               : Read / Write
  "firstseen"                gint                  : Read / Write
  "format"                   gchar*                : Read / Write
  "has-video"                gboolean              : Read / Write
  "location"                 gchar*                : Read / Write
  "mtime"                    gint                  : Read / Write
  "rating"                   gint                  : Read / Write
  "sort-album"               gchar*                : Read / Write
  "sort-artist"              gchar*                : Read / Write
  "title"                    gchar*                : Read / Write
  "track"                    gint                  : Read / Write
  "year"                     gint                  : Read / Write

Description

Details

TYPE_DAAP_RECORD

#define TYPE_DAAP_RECORD	     (daap_record_get_type ())

The type for DAAPRecord.


DAAP_RECORD()

#define             DAAP_RECORD(o)

Casts a DAAPRecord or derived pointer into a (DAAPRecord *) pointer. Depending on the current debugging level, this function may invoke certain runtime checks to identify invalid casts.

o :

Object which is subject to casting.

IS_DAAP_RECORD()

#define             IS_DAAP_RECORD(o)

Checks whether a valid GTypeInstance pointer is of type TYPE_DAAP_RECORD.

o :

Instance to check for being a TYPE_DAAP_RECORD.

DAAP_RECORD_GET_INTERFACE()

#define             DAAP_RECORD_GET_INTERFACE(o)

Get the class structure associated to a DAAPRecord instance.

o :

a DAAPRecord instance.

DAAPRecord

typedef struct _DAAPRecord DAAPRecord;


DAAPRecordInterface

typedef struct {
	GTypeInterface parent;

	gboolean	(*itunes_compat) (DAAPRecord *record);
	GInputStream *	(*read)	         (DAAPRecord *record, GError **err);
} DAAPRecordInterface;


daap_record_get_type ()

GType               daap_record_get_type                (void);

Returns :


daap_record_itunes_compat ()

gboolean            daap_record_itunes_compat           (DAAPRecord *record);

record :

A DAAPRecord.

Returns :

TRUE if record is compatible with iTunes, else FALSE.

daap_record_read ()

GInputStream *      daap_record_read                    (DAAPRecord *record,
                                                         GError **err);

record :

a DAAPRecord.

err :

a GError.

Returns :

A GInputStream that provides read-only access to the data stream associated with record.

Property Details

The "bitrate" property

  "bitrate"                  gint                  : Read / Write

Song data bitrate in Kb/s.

Allowed values: >= 0

Default value: 0


The "daap-songalbum" property

  "daap-songalbum"           gchar*                : Read / Write

Album name.

Default value: "Unknown"


The "daap-songartist" property

  "daap-songartist"          gchar*                : Read / Write

Song artist.

Default value: "Unknown"


The "daap-songgenre" property

  "daap-songgenre"           gchar*                : Read / Write

Song genre.

Default value: "Unknown"


The "disc" property

  "disc"                     gint                  : Read / Write

Song disc number.

Allowed values: >= 0

Default value: 0


The "duration" property

  "duration"                 gint                  : Read / Write

Song duration in seconds.

Allowed values: >= 0

Default value: 0


The "filesize" property

  "filesize"                 guint64               : Read / Write

Song data size in bytes.

Allowed values: <= G_MAXINT

Default value: 0


The "firstseen" property

  "firstseen"                gint                  : Read / Write

FIXME.

Allowed values: >= 0

Default value: 0


The "format" property

  "format"                   gchar*                : Read / Write

Song data format.

Default value: "Unknown"


The "has-video" property

  "has-video"                gboolean              : Read / Write

Song has video component.

Default value: FALSE


The "location" property

  "location"                 gchar*                : Read / Write

URI pointing to song data.

Default value: NULL


The "mtime" property

  "mtime"                    gint                  : Read / Write

Song modification time.

Allowed values: >= 0

Default value: 0


The "rating" property

  "rating"                   gint                  : Read / Write

Song rating.

Allowed values: [0,5]

Default value: 0


The "sort-album" property

  "sort-album"               gchar*                : Read / Write

Album sort name.

Default value: "Unknown"


The "sort-artist" property

  "sort-artist"              gchar*                : Read / Write

Song artist sort name.

Default value: "Unknown"


The "title" property

  "title"                    gchar*                : Read / Write

Song title.

Default value: "Unknown"


The "track" property

  "track"                    gint                  : Read / Write

Song track number.

Allowed values: >= 0

Default value: 0


The "year" property

  "year"                     gint                  : Read / Write

Song publication year.

Allowed values: >= 0

Default value: 0