summaryrefslogtreecommitdiffstats
path: root/kalarm/alarmtext.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/alarmtext.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/alarmtext.h')
-rw-r--r--kalarm/alarmtext.h62
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;