kalarm
reminder.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef REMINDER_H
00022 #define REMINDER_H
00023
00024 #include <qframe.h>
00025
00026 class TimeSelector;
00027 class CheckBox;
00028
00029
00030 class Reminder : public QFrame
00031 {
00032 Q_OBJECT
00033 public:
00034 Reminder(const QString& caption, const QString& reminderWhatsThis, const QString& valueWhatsThis,
00035 bool allowHourMinute, bool showOnceOnly, QWidget* parent, const char* name = 0);
00036 bool isReminder() const;
00037 bool isOnceOnly() const;
00038 int minutes() const;
00039 void setMinutes(int minutes, bool dateOnly);
00040 void setReadOnly(bool);
00041 void setDateOnly(bool dateOnly);
00042 void setMaximum(int hourmin, int days);
00043 void setFocusOnCount();
00044 void setOnceOnly(bool);
00045 void enableOnceOnly(bool enable);
00046
00047 static QString i18n_first_recurrence_only();
00048 static QString i18n_u_first_recurrence_only();
00049
00050 protected slots:
00051 void slotReminderToggled(bool);
00052
00053 private:
00054 TimeSelector* mTime;
00055 CheckBox* mOnceOnly;
00056 bool mReadOnly;
00057 bool mOnceOnlyEnabled;
00058 };
00059
00060 #endif // REMINDER_H
|