Readability integration - first draft
[quicknewsreader] / qml / QuickNewsReader / content / modelimpl / LeMondeSequencesList.qml
1 /***
2 ** Copyright (C) 2012 Christophe CHAPUIS <chris.chapuis _at_ gmail _dot_ com>
3 **
4 ** This package is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This package is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this package; if not, write to the Free Software
16 ** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17 **
18 ***/
19 import QtQuick 1.0
20
21 XmlListModel {
22     id: rssFeedsModel
23
24     property bool loading: rssFeedsModel.status === XmlListModel.Loading
25     property int sourceDepth: 1
26
27     source: "http://www.lemonde.fr/widget/nokia/liste_sequences.xml"
28     query: "/sequences/sequence"
29
30     XmlRole { name: "name"; query: "titre/string()" }
31     XmlRole { name: "seqid"; query: "id/string()" }
32
33     onLoadingChanged: {
34         if(status === XmlListModel.Ready)
35         {
36             // trigger a re-evaluation of the news readings
37             //currentCategoryIndex = 0
38         }
39     }
40 }