Copiste  0.1
 All Classes Functions Variables Enumerations Friends Pages
Public Types | Public Member Functions | Public Attributes
Profile Class Reference

Stores informations about both the audio source and the metadata source of a radio stream. More...

#include <profile.h>

List of all members.

Public Types

enum  Mode { FULL, GUESS }
 Represents two modes of information extracting (not used anymore)
typedef enum Mode Mode

Public Member Functions

 Profile (QString source="")
 Default constructor. Loads a file if a source is given.
QString parse (QString source)
 Parses a profile file (XML)
bool isRE (QString attribute)
 Checks whether the given attribute will be computed from a regular expression or an XML query.
QXmlQuery getXQ (QString attribute)
 Returns the XML query for a given attribute.
QRegExp getRE (QString attribute)
 Returns the regular expression for a given attribute.
QString getString (QString attribute)
 Returns the value (as a string) of a given attribute.
QDate getDate (QString attribute)
 Returns the value (as a date) of a given attribute.
QTime getTime (QString attribute)
 Returns the value (as a time) of a given attribute.

Public Attributes

QString mName
 Sets the name of the stream.
QString mStreamUrl
 Sets the URL of the stream.
QString mLogoUrl
 Sets the URL of the logo of the stream.
QString mMetaUrl
 Sets the URL of the document containing metadata informations.
Mode mMode
 Sets the mode of information extracting (not used anymore)

Detailed Description

Stores informations about both the audio source and the metadata source of a radio stream.


The documentation for this class was generated from the following files: