akregator/src
propertiesdialog.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef AKREGATORPROPDIALOG_H
00025 #define AKREGATORPROPDIALOG_H
00026
00027 #include "propertieswidgetbase.h"
00028
00029 #include <kdialogbase.h>
00030
00031 namespace Akregator
00032 {
00033 class FeedPropertiesWidget : public FeedPropertiesWidgetBase
00034 {
00035 Q_OBJECT
00036 TQ_OBJECT
00037 public:
00038 FeedPropertiesWidget(TQWidget *parent = 0, const char *name = 0);
00039 ~FeedPropertiesWidget();
00040 virtual void slotUpdateComboBoxActivated(int index);
00041 virtual void slotUpdateCheckBoxToggled(bool enabled);
00042
00043 };
00044
00045 class FeedPropertiesDialog : public KDialogBase
00046 {
00047 Q_OBJECT
00048 TQ_OBJECT
00049 public:
00050 FeedPropertiesDialog(TQWidget *parent = 0, const char *name = 0);
00051 ~FeedPropertiesDialog();
00052
00053 void setFeed(Feed* feed);
00054
00056 void selectFeedName();
00057
00058 protected:
00059 const TQString feedName() const;
00060 const TQString url() const;
00061 bool autoFetch() const;
00062 int fetchInterval() const;
00063 Feed::ArchiveMode archiveMode() const;
00064 int maxArticleAge() const;
00065 int maxArticleNumber() const;
00066 bool markImmediatelyAsRead() const;
00067 bool useNotification() const;
00068 bool loadLinkedWebsite() const;
00069
00070 void setFeedName(const TQString& title);
00071 void setUrl(const TQString& url);
00072 void setAutoFetch(bool);
00073 void setFetchInterval(int);
00074 void setArchiveMode(Feed::ArchiveMode mode);
00075 void setMaxArticleAge(int age);
00076 void setMaxArticleNumber(int number);
00077 void setMarkImmediatelyAsRead(bool enabled);
00078 void setUseNotification(bool enabled);
00079 void setLoadLinkedWebsite(bool enabled);
00080
00081 protected slots:
00082 void slotOk();
00083
00084 private:
00085 FeedPropertiesWidget *widget;
00086 Feed* m_feed;
00087
00088 private slots:
00089 void slotSetCaption(const TQString&);
00090 };
00091 }
00092
00093 #endif
|