~ubuntu-branches/ubuntu/lucid/kmplayer/lucid

« back to all changes in this revision

Viewing changes to src/kmplayer_atom.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-03-05 08:35:53 UTC
  • mfrom: (1.1.14 upstream)
  • Revision ID: james.westby@ubuntu.com-20100305083553-dcjpc21lpto3oemy
Tags: 1:0.11.2-1ubuntu1
* Merge from Debian unstable, remaining change:
  - Keep kmplayer-base transitional package for 8.04 upgrades

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
            title = c->innerText ().simplifyWhiteSpace ();
40
40
            break;
41
41
        }
42
 
    Mrl::closed ();
 
42
    Element::closed ();
 
43
}
 
44
 
 
45
void *ATOM::Feed::role (RoleType msg, void *content)
 
46
{
 
47
    if (RolePlaylist == msg)
 
48
        return !title.isEmpty () ? (PlaylistRole *) this : NULL;
 
49
    return Element::role (msg, content);
43
50
}
44
51
 
45
52
Node *ATOM::Entry::childFromTag (const QString &tag) {
79
86
        }
80
87
    if (group)
81
88
        group->addSummary (this, rating);
82
 
    Mrl::closed ();
 
89
    Element::closed ();
 
90
}
 
91
 
 
92
void *ATOM::Entry::role (RoleType msg, void *content)
 
93
{
 
94
    if (RolePlaylist == msg)
 
95
        return !title.isEmpty () ? (PlaylistRole *) this : NULL;
 
96
    return Element::role (msg, content);
83
97
}
84
98
 
85
99
Node::PlayType ATOM::Link::playType () {
89
103
void ATOM::Link::closed () {
90
104
    QString href;
91
105
    QString rel;
92
 
    for (Attribute *a = attributes ()->first (); a; a = a->nextSibling ()) {
 
106
    for (Attribute *a = attributes ().first (); a; a = a->nextSibling ()) {
93
107
        if (a->name () == StringPool::attr_href)
94
108
            href = a->value ();
95
109
        else if (a->name () == StringPool::attr_title)
105
119
}
106
120
 
107
121
void ATOM::Content::closed () {
108
 
    for (Attribute *a = attributes ()->first (); a; a = a->nextSibling ()) {
 
122
    for (Attribute *a = attributes ().first (); a; a = a->nextSibling ()) {
109
123
        if (a->name () == StringPool::attr_src)
110
124
            src = a->value ();
111
125
        else if (a->name () == StringPool::attr_type) {
271
285
void ATOM::MediaContent::closed () {
272
286
    unsigned fsize = 0;
273
287
    TrieString fs ("fileSize");
274
 
    for (Attribute *a = attributes ()->first (); a; a = a->nextSibling ()) {
 
288
    for (Attribute *a = attributes ().first (); a; a = a->nextSibling ()) {
275
289
        if (a->name () == StringPool::attr_url)
276
290
            src = a->value();
277
291
        else if (a->name () == StringPool::attr_type)