Send correct mouse wheel events when scaling is enabled.
[kdenetwork.git] / knewsticker / knewsticker.h
blob7a235a5ddecdf4377eda473c545f5c617d9611f9
1 /*
2 * knewsticker.h
4 * Copyright (c) 2000, 2001, 2007 Frerich Raabe <raabe@kde.org>
6 * This program is distributed in the hope that it will be useful, but WITHOUT
7 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
8 * FOR A PARTICULAR PURPOSE. For licensing and distribution details, check the
9 * accompanying file 'COPYING'.
11 #ifndef KNEWSTICKER_H
12 #define KNEWSTICKER_H
14 #include <plasma/applet.h>
16 class QSignalMapper;
17 class QTimer;
19 struct NewsItem;
20 class NewsItemView;
21 class SettingsDialog;
23 class KNewsTicker : public Plasma::Applet
25 Q_OBJECT
26 public:
27 KNewsTicker( QObject *parent, const QVariantList &args );
28 virtual ~KNewsTicker();
30 virtual QSizeF contentSizeHint() const;
32 virtual QList<QAction *> contextActions();
34 bool hideArticle( const QUrl &url );
36 public Q_SLOTS:
37 virtual void showConfigurationInterface();
39 private Q_SLOTS:
40 void updateFeeds();
41 void feedLoaded( const QUrl &url );
42 void feedUpdateFinished();
43 void openFeedItem( const QString &url );
44 void settingsChanged( const QString &dialogName );
45 void settingsAccepted();
46 void setupItemView();
48 private:
49 void reloadSettings();
51 QList<NewsItem> m_items;
52 QTimer *m_updateTimer;
53 QSignalMapper *m_signalMapper;
54 QSet<QUrl> m_readArticles;
55 NewsItemView *m_itemView;
56 SettingsDialog *m_settingsDialog;
59 #endif // KNEWSTICKER_H