akregator/src

propertiesdialog.h
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 TQt, and distribute the resulting executable,
22  without including the source code for TQt in the source distribution.
23 */
24 #ifndef AKREGATORPROPDIALOG_H
25 #define AKREGATORPROPDIALOG_H
26 
27 #include "propertieswidgetbase.h"
28 
29 #include <kdialogbase.h>
30 
31 namespace Akregator
32 {
33  class FeedPropertiesWidget : public FeedPropertiesWidgetBase
34  {
35  TQ_OBJECT
36 
37  public:
38  FeedPropertiesWidget(TQWidget *parent = 0, const char *name = 0);
39  ~FeedPropertiesWidget();
40  virtual void slotUpdateComboBoxActivated(int index);
41  virtual void slotUpdateCheckBoxToggled(bool enabled);
42 
43  };
44 
45  class FeedPropertiesDialog : public KDialogBase
46  {
47  TQ_OBJECT
48 
49  public:
50  FeedPropertiesDialog(TQWidget *parent = 0, const char *name = 0);
51  ~FeedPropertiesDialog();
52 
53  void setFeed(Feed* feed);
54 
56  void selectFeedName();
57 
58  protected:
59  const TQString feedName() const;
60  const TQString url() const;
61  bool autoFetch() const;
62  int fetchInterval() const;
63  Feed::ArchiveMode archiveMode() const;
64  int maxArticleAge() const;
65  int maxArticleNumber() const;
66  bool markImmediatelyAsRead() const;
67  bool useNotification() const;
68  bool loadLinkedWebsite() const;
69 
70  void setFeedName(const TQString& title);
71  void setUrl(const TQString& url);
72  void setAutoFetch(bool);
73  void setFetchInterval(int);
74  void setArchiveMode(Feed::ArchiveMode mode);
75  void setMaxArticleAge(int age);
76  void setMaxArticleNumber(int number);
77  void setMarkImmediatelyAsRead(bool enabled);
78  void setUseNotification(bool enabled);
79  void setLoadLinkedWebsite(bool enabled);
80 
81  protected slots:
82  void slotOk();
83 
84  private:
85  FeedPropertiesWidget *widget;
86  Feed* m_feed;
87 
88  private slots:
89  void slotSetCaption(const TQString&);
90  };
91 }
92 
93 #endif
ArchiveMode
the archiving modes:
Definition: feed.h:76