aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/welcome/rssfetcher.h
diff options
context:
space:
mode:
authorDaniel Molkentin <[email protected]>2010-09-24 17:30:10 +0200
committerDaniel Molkentin <[email protected]>2010-09-24 17:40:22 +0200
commitf64cf427f2a0cd37789b9feb782cd1b4e26563ec (patch)
treef9e833c531efb65f347263cdc17165f18fe84f63 /src/plugins/welcome/rssfetcher.h
parentc23ed4b14c48f33c75960fcde3233a23136361bb (diff)
Introduce featured items.
- Move RSSFetcher to CorePlugin - Rename RSSFetcher to RssFetcher - Make RssFetcher more generic, allow multiple sources to be fetched - Introduce Featured Items on Getting Started page - Introduce dummy entry for Mobile examples, needs implementation once they are ready
Diffstat (limited to 'src/plugins/welcome/rssfetcher.h')
-rw-r--r--src/plugins/welcome/rssfetcher.h76
1 files changed, 0 insertions, 76 deletions
diff --git a/src/plugins/welcome/rssfetcher.h b/src/plugins/welcome/rssfetcher.h
deleted file mode 100644
index 09c9db848e8..00000000000
--- a/src/plugins/welcome/rssfetcher.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/**************************************************************************
-**
-** This file is part of Qt Creator
-**
-** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
-**
-** Contact: Nokia Corporation ([email protected])
-**
-** Commercial Usage
-**
-** Licensees holding valid Qt Commercial licenses may use this file in
-** accordance with the Qt Commercial License Agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and Nokia.
-**
-** GNU Lesser General Public License Usage
-**
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 2.1 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 2.1 requirements
-** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
-**
-** If you are unsure which license is appropriate for your use, please
-** contact the sales department at http://qt.nokia.com/contact.
-**
-**************************************************************************/
-
-#ifndef RSSFETCHER_H
-#define RSSFETCHER_H
-
-#include <QtCore/QThread>
-
-QT_BEGIN_NAMESPACE
-class QNetworkReply;
-class QNetworkAccessManager;
-class QUrl;
-class QIODevice;
-QT_END_NAMESPACE
-
-namespace Welcome {
-namespace Internal {
-
-class RSSFetcher : public QThread
-{
- Q_OBJECT
-public:
- explicit RSSFetcher(int maxItems);
- virtual void run();
- virtual ~RSSFetcher();
-
-signals:
- void newsItemReady(const QString& title, const QString& desciption, const QString& url);
- void finished(bool error);
-
-public slots:
- void fetchingFinished(QNetworkReply *reply);
- void fetch(const QUrl &url);
-
-private:
- enum TagElement { itemElement, titleElement, descriptionElement, linkElement, otherElement };
- static TagElement tagElement(const QStringRef &);
- void parseXml(QIODevice *);
-
- const int m_maxItems;
- int m_items;
-
- QNetworkAccessManager* m_networkAccessManager;
-};
-
-} // namespace Welcome
-} // namespace Internal
-
-#endif // RSSFETCHER_H
-