diff options
Diffstat (limited to 'kalarm/alarmtext.h')
-rw-r--r-- | kalarm/alarmtext.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kalarm/alarmtext.h b/kalarm/alarmtext.h index 8d643b3cb..56f3cf17e 100644 --- a/kalarm/alarmtext.h +++ b/kalarm/alarmtext.h @@ -21,7 +21,7 @@ #ifndef ALARMTEXT_H #define ALARMTEXT_H -#include <qstring.h> +#include <tqstring.h> class QStringList; class KAEvent; @@ -29,44 +29,44 @@ class KAEvent; class AlarmText { public: - AlarmText(const QString& text = QString::null) { setText(text); } - void setText(const QString&); - void setScript(const QString& text) { setText(text); mIsScript = true; } - void setEmail(const QString& to, const QString& from, const QString& cc, const QString& time, - const QString& subject, const QString& body, unsigned long kmailSerialNumber = 0); - QString displayText() const; - QString calendarText() const; - QString to() const { return mTo; } - QString from() const { return mFrom; } - QString cc() const { return mCc; } - QString time() const { return mTime; } - QString subject() const { return mSubject; } - QString body() const { return mIsEmail ? mBody : QString::null; } + AlarmText(const TQString& text = TQString::null) { setText(text); } + void setText(const TQString&); + void setScript(const TQString& text) { setText(text); mIsScript = true; } + void setEmail(const TQString& to, const TQString& from, const TQString& cc, const TQString& time, + const TQString& subject, const TQString& body, unsigned long kmailSerialNumber = 0); + TQString displayText() const; + TQString calendarText() const; + TQString to() const { return mTo; } + TQString from() const { return mFrom; } + TQString cc() const { return mCc; } + TQString time() const { return mTime; } + TQString subject() const { return mSubject; } + TQString body() const { return mIsEmail ? mBody : TQString::null; } bool isEmpty() const; bool isEmail() const { return mIsEmail; } bool isScript() const { return mIsScript; } unsigned long kmailSerialNumber() const { return mKMailSerialNum; } - static QString summary(const KAEvent&, int maxLines = 1, bool* truncated = 0); - static bool checkIfEmail(const QString&); - static QString emailHeaders(const QString&, bool subjectOnly); - static QString fromCalendarText(const QString&, bool& email); - static QString toCalendarText(const QString&); + static TQString summary(const KAEvent&, int maxLines = 1, bool* truncated = 0); + static bool checkIfEmail(const TQString&); + static TQString emailHeaders(const TQString&, bool subjectOnly); + static TQString fromCalendarText(const TQString&, bool& email); + static TQString toCalendarText(const TQString&); private: static void setUpTranslations(); - static int emailHeaderCount(const QStringList&); + static int emailHeaderCount(const TQStringList&); - static QString mFromPrefix; // translated header prefixes - static QString mToPrefix; - static QString mCcPrefix; - static QString mDatePrefix; - static QString mSubjectPrefix; - static QString mFromPrefixEn; // untranslated header prefixes - static QString mToPrefixEn; - static QString mCcPrefixEn; - static QString mDatePrefixEn; - static QString mSubjectPrefixEn; - QString mBody, mFrom, mTo, mCc, mTime, mSubject; + static TQString mFromPrefix; // translated header prefixes + static TQString mToPrefix; + static TQString mCcPrefix; + static TQString mDatePrefix; + static TQString mSubjectPrefix; + static TQString mFromPrefixEn; // untranslated header prefixes + static TQString mToPrefixEn; + static TQString mCcPrefixEn; + static TQString mDatePrefixEn; + static TQString mSubjectPrefixEn; + TQString mBody, mFrom, mTo, mCc, mTime, mSubject; unsigned long mKMailSerialNum; // if email, message's KMail serial number, else 0 bool mIsEmail; bool mIsScript; |