32 AlarmText( const TQString& text = TQString()) { setText(text); }
33 void setText( const TQString&);
34 void setScript( const TQString& text) { setText(text); mIsScript = true; }
35 void setEmail( const TQString& to, const TQString& from, const TQString& cc, const TQString& time,
36 const TQString& subject, const TQString& body, unsigned long kmailSerialNumber = 0);
37 TQString displayText() const;
38 TQString calendarText() const;
39 TQString to() const { return mTo; }
40 TQString from() const { return mFrom; }
41 TQString cc() const { return mCc; }
42 TQString time() const { return mTime; }
43 TQString subject() const { return mSubject; }
44 TQString body() const { return mIsEmail ? mBody : TQString(); }
46 bool isEmail() const { return mIsEmail; }
47 bool isScript() const { return mIsScript; }
48 unsigned long kmailSerialNumber() const { return mKMailSerialNum; }
49 static TQString summary( const KAEvent&, int maxLines = 1, bool* truncated = 0);
50 static bool checkIfEmail( const TQString&);
51 static TQString emailHeaders( const TQString&, bool subjectOnly);
52 static TQString fromCalendarText( const TQString&, bool& email);
53 static TQString toCalendarText( const TQString&);
56 static void setUpTranslations();
57 static int emailHeaderCount( const TQStringList&);
59 static TQString mFromPrefix;
60 static TQString mToPrefix;
61 static TQString mCcPrefix;
62 static TQString mDatePrefix;
63 static TQString mSubjectPrefix;
64 static TQString mFromPrefixEn;
65 static TQString mToPrefixEn;
66 static TQString mCcPrefixEn;
67 static TQString mDatePrefixEn;
68 static TQString mSubjectPrefixEn;
69 TQString mBody, mFrom, mTo, mCc, mTime, mSubject;
70 unsigned long mKMailSerialNum;
KAEvent corresponds to a KCal::Event instance.
|