• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

akregator

  • sources
  • kde-4.14
  • kdepim
  • akregator
  • src
feedpropertiesdialog.h
Go to the documentation of this file.
1 /*
2  This file is part of Akregator.
3 
4  Copyright (C) 2004 Stanislav Karchebny <Stanislav.Karchebny@kdemail.net>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #ifndef AKREGATOR_FEEDPROPERTIESDIALOG_H
26 #define AKREGATOR_FEEDPROPERTIESDIALOG_H
27 
28 #include "feed.h"
29 #include "ui_feedpropertieswidgetbase.h"
30 
31 #include <kdialog.h>
32 
33 #include <QWidget>
34 
35 namespace Akregator {
36 
37 
38 class FeedPropertiesWidget : public QWidget, public Ui::FeedPropertiesWidgetBase
39 {
40  Q_OBJECT
41  public:
42  explicit FeedPropertiesWidget(QWidget *parent = 0, const char *name = 0);
43  ~FeedPropertiesWidget();
44 
45  enum IntervalStep
46  {
47  Minutes=0,
48  Hours,
49  Days,
50  Never };
51 
52  public Q_SLOTS:
53  void slotUpdateComboBoxActivated(int index);
54  void slotUpdateComboBoxLabels(int value);
55  void slotUpdateCheckBoxToggled(bool enabled);
56 };
57 
58 class FeedPropertiesDialog : public KDialog
59 {
60  Q_OBJECT
61  public:
62  explicit FeedPropertiesDialog(QWidget *parent = 0, const char *name = 0);
63  ~FeedPropertiesDialog();
64 
65  void setFeed(Feed* feed);
66 
68  void selectFeedName();
69 
70  public slots:
71 
72  void accept();
73 
74  protected:
75  QString feedName() const;
76  QString url() const;
77  bool autoFetch() const;
78  int fetchInterval() const;
79  Feed::ArchiveMode archiveMode() const;
80  int maxArticleAge() const;
81  int maxArticleNumber() const;
82  bool markImmediatelyAsRead() const;
83  bool useNotification() const;
84  bool loadLinkedWebsite() const;
85 
86  void setFeedName(const QString& title);
87  void setUrl(const QString& url);
88  void setAutoFetch(bool);
89  void setFetchInterval(int);
90  void setArchiveMode(Feed::ArchiveMode mode);
91  void setMaxArticleAge(int age);
92  void setMaxArticleNumber(int number);
93  void setMarkImmediatelyAsRead(bool enabled);
94  void setUseNotification(bool enabled);
95  void setLoadLinkedWebsite(bool enabled);
96 
97  private:
98  FeedPropertiesWidget *widget;
99  Feed* m_feed;
100 
101  private slots:
102  void slotSetWindowTitle(const QString&);
103 };
104 
105 } // namespace Akregator
106 
107 #endif // AKREGATOR_FEEDPROPERTIESDIALOG_H
108 
Akregator::FeedPropertiesDialog
Definition: feedpropertiesdialog.h:58
QWidget
Akregator::FeedPropertiesWidget
Definition: feedpropertiesdialog.h:38
Akregator::FeedPropertiesDialog::setLoadLinkedWebsite
void setLoadLinkedWebsite(bool enabled)
Definition: feedpropertiesdialog.cpp:338
Akregator::FeedPropertiesWidget::slotUpdateComboBoxLabels
void slotUpdateComboBoxLabels(int value)
Definition: feedpropertiesdialog.cpp:69
Akregator::FeedPropertiesDialog::url
QString url() const
Definition: feedpropertiesdialog.cpp:163
Akregator::FeedPropertiesDialog::useNotification
bool useNotification() const
Definition: feedpropertiesdialog.cpp:328
Akregator::FeedPropertiesDialog::setMaxArticleNumber
void setMaxArticleNumber(int number)
Definition: feedpropertiesdialog.cpp:308
KDialog
Akregator::FeedPropertiesWidget::slotUpdateComboBoxActivated
void slotUpdateComboBoxActivated(int index)
Definition: feedpropertiesdialog.cpp:63
feed.h
Akregator::FeedPropertiesWidget::FeedPropertiesWidget
FeedPropertiesWidget(QWidget *parent=0, const char *name=0)
Definition: feedpropertiesdialog.cpp:38
Akregator::FeedPropertiesDialog::setUseNotification
void setUseNotification(bool enabled)
Definition: feedpropertiesdialog.cpp:323
Akregator::FeedPropertiesDialog::setMarkImmediatelyAsRead
void setMarkImmediatelyAsRead(bool enabled)
Definition: feedpropertiesdialog.cpp:313
Akregator::FeedPropertiesDialog::~FeedPropertiesDialog
~FeedPropertiesDialog()
Definition: feedpropertiesdialog.cpp:107
Akregator::FeedPropertiesDialog::selectFeedName
void selectFeedName()
selects the text in the feed title lineedit
Definition: feedpropertiesdialog.cpp:343
Akregator::FeedPropertiesWidget::slotUpdateCheckBoxToggled
void slotUpdateCheckBoxToggled(bool enabled)
Definition: feedpropertiesdialog.cpp:77
QObject::name
const char * name() const
QWidget::enabled
enabled
Akregator::FeedPropertiesDialog::setMaxArticleAge
void setMaxArticleAge(int age)
Definition: feedpropertiesdialog.cpp:303
Akregator::FeedPropertiesWidget::~FeedPropertiesWidget
~FeedPropertiesWidget()
Definition: feedpropertiesdialog.cpp:59
Akregator::FeedPropertiesDialog::setFeedName
void setFeedName(const QString &title)
Definition: feedpropertiesdialog.cpp:243
Akregator::FeedPropertiesDialog::archiveMode
Feed::ArchiveMode archiveMode() const
Definition: feedpropertiesdialog.cpp:189
Akregator::FeedPropertiesDialog::loadLinkedWebsite
bool loadLinkedWebsite() const
Definition: feedpropertiesdialog.cpp:333
QString
Akregator::FeedPropertiesDialog::setFeed
void setFeed(Feed *feed)
Definition: feedpropertiesdialog.cpp:135
Akregator::FeedPropertiesDialog::fetchInterval
int fetchInterval() const
Definition: feedpropertiesdialog.cpp:173
Akregator::Feed::ArchiveMode
ArchiveMode
the archiving modes
Definition: feed.h:61
Akregator::FeedPropertiesWidget::Minutes
Definition: feedpropertiesdialog.h:47
Akregator::FeedPropertiesDialog::FeedPropertiesDialog
FeedPropertiesDialog(QWidget *parent=0, const char *name=0)
Definition: feedpropertiesdialog.cpp:83
Akregator::FeedPropertiesDialog::setArchiveMode
void setArchiveMode(Feed::ArchiveMode mode)
Definition: feedpropertiesdialog.cpp:223
Akregator::FeedPropertiesWidget::Never
Definition: feedpropertiesdialog.h:50
Akregator::FeedPropertiesDialog::maxArticleAge
int maxArticleAge() const
Definition: feedpropertiesdialog.cpp:213
Akregator::Feed
represents a feed
Definition: feed.h:53
Akregator::FeedPropertiesWidget::Days
Definition: feedpropertiesdialog.h:49
Akregator::FeedPropertiesDialog::feedName
QString feedName() const
Definition: feedpropertiesdialog.cpp:158
Akregator::FeedPropertiesDialog::setFetchInterval
void setFetchInterval(int)
Definition: feedpropertiesdialog.cpp:264
Akregator::FeedPropertiesWidget::Hours
Definition: feedpropertiesdialog.h:48
Akregator::FeedPropertiesDialog::maxArticleNumber
int maxArticleNumber() const
Definition: feedpropertiesdialog.cpp:218
Akregator::FeedPropertiesDialog::autoFetch
bool autoFetch() const
Definition: feedpropertiesdialog.cpp:168
Akregator::FeedPropertiesDialog::markImmediatelyAsRead
bool markImmediatelyAsRead() const
Definition: feedpropertiesdialog.cpp:318
QObject::parent
QObject * parent() const
Akregator::FeedPropertiesWidget::IntervalStep
IntervalStep
Definition: feedpropertiesdialog.h:45
Akregator::FeedPropertiesDialog::setUrl
void setUrl(const QString &url)
Definition: feedpropertiesdialog.cpp:248
Akregator::FeedPropertiesDialog::accept
void accept()
Definition: feedpropertiesdialog.cpp:110
Akregator::FeedPropertiesDialog::setAutoFetch
void setAutoFetch(bool)
Definition: feedpropertiesdialog.cpp:253
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:00 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akregator

Skip menu "akregator"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal