summaryrefslogtreecommitdiffstats
path: root/kalarm/preferences.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kalarm/preferences.h
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kalarm/preferences.h')
-rw-r--r--kalarm/preferences.h112
1 files changed, 56 insertions, 56 deletions
diff --git a/kalarm/preferences.h b/kalarm/preferences.h
index f0eeb4ea6..38cf9ad8a 100644
--- a/kalarm/preferences.h
+++ b/kalarm/preferences.h
@@ -23,11 +23,11 @@
#include "kalarm.h"
-#include <qobject.h>
-#include <qcolor.h>
-#include <qfont.h>
-#include <qdatetime.h>
-#include <qvaluelist.h>
+#include <tqobject.h>
+#include <tqcolor.h>
+#include <tqfont.h>
+#include <tqdatetime.h>
+#include <tqvaluelist.h>
class QWidget;
#include "colourlist.h"
@@ -51,14 +51,14 @@ class Preferences : public QObject
static void save(bool syncToDisc = true);
static void syncToDisc();
static void updateStartOfDayCheck();
- static void connect(const char* signal, const QObject* receiver, const char* member);
+ static void connect(const char* signal, const TQObject* receiver, const char* member);
// Access to settings
static const ColourList& messageColours() { return mMessageColours; }
- static QColor defaultBgColour() { return mDefaultBgColour; }
- static QColor defaultFgColour() { return default_defaultFgColour; }
- static const QFont& messageFont() { return mMessageFont; }
- static const QTime& startOfDay() { return mStartOfDay; }
+ static TQColor defaultBgColour() { return mDefaultBgColour; }
+ static TQColor defaultFgColour() { return default_defaultFgColour; }
+ static const TQFont& messageFont() { return mMessageFont; }
+ static const TQTime& startOfDay() { return mStartOfDay; }
static bool hasStartOfDayChanged() { return mStartOfDayChanged; }
static bool runInSystemTray() { return mRunInSystemTray; }
static bool disableAlarmsIfStopped() { return mDisableAlarmsIfStopped; }
@@ -72,7 +72,7 @@ class Preferences : public QObject
static int tooltipAlarmCount() { return mTooltipAlarmCount; }
static bool showTooltipAlarmTime() { return mShowTooltipAlarmTime; }
static bool showTooltipTimeToAlarm() { return mShowTooltipTimeToAlarm; }
- static const QString& tooltipTimeToPrefix() { return mTooltipTimeToPrefix; }
+ static const TQString& tooltipTimeToPrefix() { return mTooltipTimeToPrefix; }
static int daemonTrayCheckInterval() { return mDaemonTrayCheckInterval; }
static MailClient emailClient() { return mEmailClient; }
static bool emailCopyToKMail() { return mEmailCopyToKMail && mEmailClient == SENDMAIL; }
@@ -80,14 +80,14 @@ class Preferences : public QObject
static void setEmailQueuedNotify(bool yes) { setNotify(EMAIL_QUEUED_NOTIFY, yes); }
static MailFrom emailFrom() { return mEmailFrom; }
static bool emailBccUseControlCentre() { return mEmailBccFrom == MAIL_FROM_CONTROL_CENTRE; }
- static QString emailAddress();
- static QString emailBccAddress();
- static QString cmdXTermCommand() { return mCmdXTermCommand; }
- static QColor disabledColour() { return mDisabledColour; }
- static QColor expiredColour() { return mExpiredColour; }
+ static TQString emailAddress();
+ static TQString emailBccAddress();
+ static TQString cmdXTermCommand() { return mCmdXTermCommand; }
+ static TQColor disabledColour() { return mDisabledColour; }
+ static TQColor expiredColour() { return mExpiredColour; }
static int expiredKeepDays() { return mExpiredKeepDays; }
static SoundPicker::Type defaultSoundType() { return mDefaultSoundType; }
- static const QString& defaultSoundFile() { return mDefaultSoundFile; }
+ static const TQString& defaultSoundFile() { return mDefaultSoundFile; }
static float defaultSoundVolume() { return mDefaultSoundVolume; }
static bool defaultSoundRepeat() { return mDefaultSoundRepeat; }
static int defaultLateCancel() { return mDefaultLateCancel; }
@@ -97,27 +97,27 @@ class Preferences : public QObject
static bool defaultCmdScript() { return mDefaultCmdScript; }
static EditAlarmDlg::CmdLogType
defaultCmdLogType() { return mDefaultCmdLogType; }
- static QString defaultCmdLogFile() { return mDefaultCmdLogFile; }
+ static TQString defaultCmdLogFile() { return mDefaultCmdLogFile; }
static bool defaultEmailBcc() { return mDefaultEmailBcc; }
static RecurrenceEdit::RepeatType
defaultRecurPeriod() { return mDefaultRecurPeriod; }
static KARecurrence::Feb29Type
defaultFeb29Type() { return mDefaultFeb29Type; }
static TimePeriod::Units defaultReminderUnits() { return mDefaultReminderUnits; }
- static const QString& defaultPreAction() { return mDefaultPreAction; }
- static const QString& defaultPostAction() { return mDefaultPostAction; }
+ static const TQString& defaultPreAction() { return mDefaultPreAction; }
+ static const TQString& defaultPostAction() { return mDefaultPostAction; }
// Config file entry names for notification messages
- static const QString QUIT_WARN;
- static const QString CONFIRM_ALARM_DELETION;
- static const QString EMAIL_QUEUED_NOTIFY;
+ static const TQString QUIT_WARN;
+ static const TQString CONFIRM_ALARM_DELETION;
+ static const TQString EMAIL_QUEUED_NOTIFY;
// Default values for settings
static const ColourList default_messageColours;
- static const QColor default_defaultBgColour;
- static const QColor default_defaultFgColour;
- static const QFont& default_messageFont() { return mDefault_messageFont; };
- static const QTime default_startOfDay;
+ static const TQColor default_defaultBgColour;
+ static const TQColor default_defaultFgColour;
+ static const TQFont& default_messageFont() { return mDefault_messageFont; };
+ static const TQTime default_startOfDay;
static const bool default_runInSystemTray;
static const bool default_disableAlarmsIfStopped;
static const bool default_quitWarn;
@@ -128,19 +128,19 @@ class Preferences : public QObject
static const int default_tooltipAlarmCount;
static const bool default_showTooltipAlarmTime;
static const bool default_showTooltipTimeToAlarm;
- static const QString default_tooltipTimeToPrefix;
+ static const TQString default_tooltipTimeToPrefix;
static const int default_daemonTrayCheckInterval;
static const MailClient default_emailClient;
static const bool default_emailCopyToKMail;
static MailFrom default_emailFrom();
static const bool default_emailQueuedNotify;
static const MailFrom default_emailBccFrom;
- static const QString default_emailAddress;
- static const QString default_emailBccAddress;
- static const QColor default_disabledColour;
- static const QColor default_expiredColour;
+ static const TQString default_emailAddress;
+ static const TQString default_emailBccAddress;
+ static const TQColor default_disabledColour;
+ static const TQColor default_expiredColour;
static const int default_expiredKeepDays;
- static const QString default_defaultSoundFile;
+ static const TQString default_defaultSoundFile;
static const float default_defaultSoundVolume;
static const int default_defaultLateCancel;
static const bool default_defaultAutoClose;
@@ -154,12 +154,12 @@ class Preferences : public QObject
static const RecurrenceEdit::RepeatType default_defaultRecurPeriod;
static const KARecurrence::Feb29Type default_defaultFeb29Type;
static const TimePeriod::Units default_defaultReminderUnits;
- static const QString default_defaultPreAction;
- static const QString default_defaultPostAction;
+ static const TQString default_defaultPreAction;
+ static const TQString default_defaultPostAction;
signals:
void preferencesChanged();
- void startOfDayChanged(const QTime& oldStartOfDay);
+ void startOfDayChanged(const TQTime& oldStartOfDay);
private:
Preferences() { } // only one instance allowed
@@ -170,14 +170,14 @@ class Preferences : public QObject
static void convertOldPrefs();
static int startOfDayCheck();
static QString emailFrom(MailFrom, bool useAddress, bool bcc);
- static MailFrom emailFrom(const QString&);
- static void setNotify(const QString& messageID, bool notify);
- static bool notifying(const QString& messageID);
+ static MailFrom emailFrom(const TQString&);
+ static void setNotify(const TQString& messageID, bool notify);
+ static bool notifying(const TQString& messageID);
static Preferences* mInstance;
- static QFont mDefault_messageFont;
- static QString mEmailAddress;
- static QString mEmailBccAddress;
+ static TQFont mDefault_messageFont;
+ static TQString mEmailAddress;
+ static TQString mEmailBccAddress;
// All the following members are accessed by the Preferences dialog classes
friend class MiscPrefTab;
@@ -185,12 +185,12 @@ class Preferences : public QObject
friend class ViewPrefTab;
friend class FontColourPrefTab;
friend class EmailPrefTab;
- static void setEmailAddress(MailFrom, const QString& address);
- static void setEmailBccAddress(bool useControlCentre, const QString& address);
+ static void setEmailAddress(MailFrom, const TQString& address);
+ static void setEmailBccAddress(bool useControlCentre, const TQString& address);
static ColourList mMessageColours;
- static QColor mDefaultBgColour;
- static QFont mMessageFont;
- static QTime mStartOfDay;
+ static TQColor mDefaultBgColour;
+ static TQFont mMessageFont;
+ static TQTime mStartOfDay;
static bool mRunInSystemTray;
static bool mDisableAlarmsIfStopped;
static bool mAutostartTrayIcon;
@@ -199,18 +199,18 @@ class Preferences : public QObject
static int mTooltipAlarmCount;
static bool mShowTooltipAlarmTime;
static bool mShowTooltipTimeToAlarm;
- static QString mTooltipTimeToPrefix;
+ static TQString mTooltipTimeToPrefix;
static int mDaemonTrayCheckInterval;
static MailClient mEmailClient;
static MailFrom mEmailFrom;
static MailFrom mEmailBccFrom;
static bool mEmailCopyToKMail;
- static QString mCmdXTermCommand;
- static QColor mDisabledColour;
- static QColor mExpiredColour;
+ static TQString mCmdXTermCommand;
+ static TQColor mDisabledColour;
+ static TQColor mExpiredColour;
static int mExpiredKeepDays; // 0 = don't keep, -1 = keep indefinitely
// Default settings for Edit Alarm dialog
- static QString mDefaultSoundFile;
+ static TQString mDefaultSoundFile;
static float mDefaultSoundVolume;
static int mDefaultLateCancel;
static bool mDefaultAutoClose;
@@ -221,14 +221,14 @@ class Preferences : public QObject
static bool mDefaultEmailBcc;
static bool mDefaultCmdScript;
static EditAlarmDlg::CmdLogType mDefaultCmdLogType;
- static QString mDefaultCmdLogFile;
+ static TQString mDefaultCmdLogFile;
static RecurrenceEdit::RepeatType mDefaultRecurPeriod;
static KARecurrence::Feb29Type mDefaultFeb29Type;
static TimePeriod::Units mDefaultReminderUnits;
- static QString mDefaultPreAction;
- static QString mDefaultPostAction;
+ static TQString mDefaultPreAction;
+ static TQString mDefaultPostAction;
// Change tracking
- static QTime mOldStartOfDay; // previous start-of-day time
+ static TQTime mOldStartOfDay; // previous start-of-day time
static bool mStartOfDayChanged; // start-of-day check value doesn't tally with mStartOfDay
};