Stores informations about both the audio source and the metadata source of a radio stream. More...
#include <profile.h>
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) |
Stores informations about both the audio source and the metadata source of a radio stream.