diff options
Diffstat (limited to 'kresources/kolab/kcal/incidence.h')
-rw-r--r-- | kresources/kolab/kcal/incidence.h | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/kresources/kolab/kcal/incidence.h b/kresources/kolab/kcal/incidence.h index de549328e..e8f8b9fa8 100644 --- a/kresources/kolab/kcal/incidence.h +++ b/kresources/kolab/kcal/incidence.h @@ -55,46 +55,46 @@ namespace Kolab { class Incidence : public KolabBase { public: struct Recurrence { - QString cycle; - QString type; + TQString cycle; + TQString type; int interval; - QStringList days; // list of days-of-the-week - QString dayNumber; - QString month; - QString rangeType; - QString range; // date or number or nothing - QValueList<QDate> exclusions; + TQStringList days; // list of days-of-the-week + TQString dayNumber; + TQString month; + TQString rangeType; + TQString range; // date or number or nothing + TQValueList<TQDate> exclusions; }; struct Attendee : Email { Attendee() : requestResponse( true ), invitationSent( false ) {} - QString status; + TQString status; bool requestResponse; bool invitationSent; - QString role; - QString delegate; - QString delegator; + TQString role; + TQString delegate; + TQString delegator; }; - explicit Incidence( KCal::ResourceKolab *res, const QString &subResource, Q_UINT32 sernum, - const QString& tz ); + explicit Incidence( KCal::ResourceKolab *res, const TQString &subResource, Q_UINT32 sernum, + const TQString& tz ); virtual ~Incidence(); void saveTo( KCal::Incidence* incidence ); - virtual void setSummary( const QString& summary ); - virtual QString summary() const; + virtual void setSummary( const TQString& summary ); + virtual TQString summary() const; - virtual void setLocation( const QString& location ); - virtual QString location() const; + virtual void setLocation( const TQString& location ); + virtual TQString location() const; virtual void setOrganizer( const Email& organizer ); virtual Email organizer() const; - virtual void setStartDate( const QDateTime& startDate ); - virtual void setStartDate( const QDate& startDate ); - virtual void setStartDate( const QString& startDate ); - virtual QDateTime startDate() const; + virtual void setStartDate( const TQDateTime& startDate ); + virtual void setStartDate( const TQDate& startDate ); + virtual void setStartDate( const TQString& startDate ); + virtual TQDateTime startDate() const; virtual void setAlarm( float alarm ); virtual float alarm() const; @@ -103,8 +103,8 @@ public: virtual Recurrence recurrence() const; virtual void addAttendee( const Attendee& attendee ); - QValueList<Attendee>& attendees(); - const QValueList<Attendee>& attendees() const; + TQValueList<Attendee>& attendees(); + const TQValueList<Attendee>& attendees() const; /** * The internal uid is used as the uid inside KOrganizer whenever @@ -112,17 +112,17 @@ public: * can't handle. To avoid keep that interal uid from changing all the * time, it is persisted in the XML between a save and the next load. */ - void setInternalUID( const QString& iuid ); - QString internalUID() const; + void setInternalUID( const TQString& iuid ); + TQString internalUID() const; virtual void setRevision( int ); virtual int revision() const; // Load the attributes of this class - virtual bool loadAttribute( QDomElement& ); + virtual bool loadAttribute( TQDomElement& ); // Save the attributes of this class - virtual bool saveAttributes( QDomElement& ) const; + virtual bool saveAttributes( TQDomElement& ) const; protected: enum FloatingStatus { Unset, AllDay, HasTime }; @@ -130,42 +130,42 @@ protected: // Read all known fields from this ical incidence void setFields( const KCal::Incidence* ); - bool loadAttendeeAttribute( QDomElement&, Attendee& ); - void saveAttendeeAttribute( QDomElement& element, + bool loadAttendeeAttribute( TQDomElement&, Attendee& ); + void saveAttendeeAttribute( TQDomElement& element, const Attendee& attendee ) const; - void saveAttendees( QDomElement& element ) const; - void saveAttachments( QDomElement& element ) const; + void saveAttendees( TQDomElement& element ) const; + void saveAttachments( TQDomElement& element ) const; - void loadRecurrence( const QDomElement& element ); - void saveRecurrence( QDomElement& element ) const; - void saveCustomAttributes( QDomElement& element ) const; - void loadCustomAttributes( QDomElement& element ); + void loadRecurrence( const TQDomElement& element ); + void saveRecurrence( TQDomElement& element ) const; + void saveCustomAttributes( TQDomElement& element ) const; + void loadCustomAttributes( TQDomElement& element ); void loadAttachments(); - QString productID() const; + TQString productID() const; - QString mSummary; - QString mLocation; + TQString mSummary; + TQString mLocation; Email mOrganizer; - QDateTime mStartDate; + TQDateTime mStartDate; FloatingStatus mFloatingStatus; float mAlarm; bool mHasAlarm; Recurrence mRecurrence; - QValueList<Attendee> mAttendees; - QValueList<KCal::Attachment*> mAttachments; - QString mInternalUID; + TQValueList<Attendee> mAttendees; + TQValueList<KCal::Attachment*> mAttachments; + TQString mInternalUID; int mRevision; struct Custom { - QCString key; - QString value; + TQCString key; + TQString value; }; - QValueList<Custom> mCustomList; + TQValueList<Custom> mCustomList; KCal::ResourceKolab *mResource; - QString mSubResource; + TQString mSubResource; Q_UINT32 mSernum; }; |