#include <XspfProps.h>


Public Member Functions | |
| XspfProps () | |
| XspfProps (XspfProps const &source) | |
| XspfProps & | operator= (XspfProps const &source) |
| ~XspfProps () | |
| void | giveIdentifier (XML_Char const *identifier, bool copy) |
| void | giveLicense (XML_Char const *license, bool copy) |
| void | giveLocation (XML_Char const *location, bool copy) |
| void | giveAppendAttributionIdentifier (XML_Char const *identifier, bool copy) |
| void | giveAppendAttributionLocation (XML_Char const *location, bool copy) |
| void | giveDate (XspfDateTime const *date, bool copy) |
| void | lendIdentifier (XML_Char const *identifier) |
| void | lendLicense (XML_Char const *license) |
| void | lendLocation (XML_Char const *location) |
| void | lendAppendAttributionIdentifier (XML_Char const *identifier) |
| void | lendAppendAttributionLocation (XML_Char const *location) |
| void | lendDate (XspfDateTime const *date) |
| void | setVersion (int version) |
| XML_Char * | stealLicense () |
| XML_Char * | stealLocation () |
| XML_Char * | stealIdentifier () |
| std::pair< bool, XML_Char * > * | stealFirstAttribution () |
| XspfDateTime * | stealDate () |
| XML_Char const * | getLicense () const |
| XML_Char const * | getLocation () const |
| XML_Char const * | getIdentifier () const |
| std::pair< bool, XML_Char const * > * | getAttribution (int index) const |
| int | getAttributionCount () const |
| XspfDateTime const * | getDate () const |
| int | getVersion () const |
Friends | |
| class | XspfPropsPrivate |
Definition at line 64 of file XspfProps.h.
| XspfProps | ( | ) |
Creates a new, blank playlist property package.
| ~XspfProps | ( | ) |
Destroys this XspfProps object and deletes all memory associated with it that has not been stolen before.
| std::pair<bool, XML_Char const *>* getAttribution | ( | int | index | ) | const |
Gets the specific attribution entry from the list. If the list is empty NULL is returned.
NOTE: The returned pair has to be deleted manually!
| int getAttributionCount | ( | ) | const |
Returns the number of attributions.
| XspfDateTime const* getDate | ( | ) | const |
Returns the date object property.
| XML_Char const* getIdentifier | ( | ) | const |
Returns the identifier property.
| XML_Char const* getLicense | ( | ) | const |
Returns the license property.
| XML_Char const* getLocation | ( | ) | const |
Returns the location property.
| int getVersion | ( | ) | const |
Returns the XSPF version property.
| void giveAppendAttributionIdentifier | ( | XML_Char const * | identifier, | |
| bool | copy | |||
| ) |
Appends an identifier to the attribution list.
| identifier | Identifier to append | |
| copy | Copy flag |
| void giveAppendAttributionLocation | ( | XML_Char const * | location, | |
| bool | copy | |||
| ) |
Appends an location to the attribution list.
| location | Location to append | |
| copy | Copy flag |
| void giveDate | ( | XspfDateTime const * | date, | |
| bool | copy | |||
| ) |
Overwrites the date property. If copy is true the date object will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
| date | Date object to set | |
| copy | Copy flag |
| void giveIdentifier | ( | XML_Char const * | identifier, | |
| bool | copy | |||
| ) |
Overwrites the identifier property. If copy is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
| identifier | Identifier string to set | |
| copy | Copy flag |
| void giveLicense | ( | XML_Char const * | license, | |
| bool | copy | |||
| ) |
Overwrites the license property. If copy is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
| license | License string to set | |
| copy | Copy flag |
| void giveLocation | ( | XML_Char const * | location, | |
| bool | copy | |||
| ) |
Overwrites the location property. If copy is true the string will be copied, otherwise just assigned. In both cases the associated memory will be deleted on object destruction.
| location | Location string to set | |
| copy | Copy flag |
| void lendAppendAttributionIdentifier | ( | XML_Char const * | identifier | ) |
Appends an identifier to the attribution list. The associated memory is neither copied nor deleted on onject destruction.
| identifier | Identifier to append |
| void lendAppendAttributionLocation | ( | XML_Char const * | location | ) |
Appends an location to the attribution list. The associated memory is neither copied nor deleted on onject destruction.
| location | Location to append |
| void lendDate | ( | XspfDateTime const * | date | ) |
Overwrites the date property. The date object is only assigned not copied. The ownership is not transferred.
| date | Date object to set |
| void lendIdentifier | ( | XML_Char const * | identifier | ) |
Overwrites the identifier property. The string is only assigned not copied. The ownership is not transferred.
| identifier | Identifier string to set |
| void lendLicense | ( | XML_Char const * | license | ) |
Overwrites the license property. The string is only assigned not copied. The ownership is not transferred.
| license | License string to set |
| void lendLocation | ( | XML_Char const * | location | ) |
Overwrites the location property. The string is only assigned not copied. The ownership is not transferred.
| location | Location string to set |
Assignment operator.
| source | Source to copy from |
| void setVersion | ( | int | version | ) |
Overwrites the XSPF version property.
| version | XSPF version (0 or 1) |
| XspfDateTime* stealDate | ( | ) |
Steals the date object property.
| std::pair<bool, XML_Char *>* stealFirstAttribution | ( | ) |
Steals the first attribution entry from the list. If the list is empty NULL is returned.
NOTE: Do not forget to delete the pair!
| XML_Char* stealIdentifier | ( | ) |
Steals the identifier property.
| XML_Char* stealLicense | ( | ) |
Steals the license property.
| XML_Char* stealLocation | ( | ) |
Steals the location property.
1.5.8