summaryrefslogtreecommitdiffstats
path: root/libkcal/incidence.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 /libkcal/incidence.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 'libkcal/incidence.h')
-rw-r--r--libkcal/incidence.h94
1 files changed, 47 insertions, 47 deletions
diff --git a/libkcal/incidence.h b/libkcal/incidence.h
index 5c90fd910..268b2cede 100644
--- a/libkcal/incidence.h
+++ b/libkcal/incidence.h
@@ -22,9 +22,9 @@
#ifndef INCIDENCE_H
#define INCIDENCE_H
-#include <qdatetime.h>
-#include <qstringlist.h>
-#include <qvaluelist.h>
+#include <tqdatetime.h>
+#include <tqstringlist.h>
+#include <tqvaluelist.h>
#include "recurrence.h"
#include "alarm.h"
@@ -125,11 +125,11 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/**
Set creation date.
*/
- void setCreated( const QDateTime & );
+ void setCreated( const TQDateTime & );
/**
Return time and date of creation.
*/
- QDateTime created() const;
+ TQDateTime created() const;
/**
Set the number of revisions this event has seen.
@@ -143,59 +143,59 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/**
Set starting date/time.
*/
- virtual void setDtStart( const QDateTime &dtStart );
+ virtual void setDtStart( const TQDateTime &dtStart );
/**
- Return the incidence's ending date/time as a QDateTime.
+ Return the incidence's ending date/time as a TQDateTime.
*/
- virtual QDateTime dtEnd() const { return QDateTime(); }
+ virtual TQDateTime dtEnd() const { return TQDateTime(); }
/**
Set the long description.
*/
- void setDescription( const QString &description );
+ void setDescription( const TQString &description );
/**
Return long description.
*/
- QString description() const;
+ TQString description() const;
/**
Set short summary.
*/
- void setSummary( const QString &summary );
+ void setSummary( const TQString &summary );
/**
Return short summary.
*/
- QString summary() const;
+ TQString summary() const;
/**
Set categories.
*/
- void setCategories( const QStringList &categories );
+ void setCategories( const TQStringList &categories );
/**
Set categories based on a comma delimited string.
*/
- void setCategories(const QString &catStr);
+ void setCategories(const TQString &catStr);
/**
Return categories as a list of strings.
*/
- QStringList categories() const;
+ TQStringList categories() const;
/**
Return categories as a comma separated string.
*/
- QString categoriesStr() const;
+ TQString categoriesStr() const;
/**
Point at some other event to which the event relates. This function should
only be used when constructing a calendar before the related Incidence
exists.
*/
- void setRelatedToUid(const QString &);
+ void setRelatedToUid(const TQString &);
/**
What event does this one relate to? This function should
only be used when constructing a calendar before the related Incidence
exists.
*/
- QString relatedToUid() const;
+ TQString relatedToUid() const;
/**
Point at some other event to which the event relates
*/
@@ -241,12 +241,12 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
Returns true if the date specified is one on which the incidence will
recur.
*/
- virtual bool recursOn( const QDate &qd ) const;
+ virtual bool recursOn( const TQDate &qd ) const;
/**
Returns true if the date/time specified is one on which the incidence will
recur.
*/
- bool recursAt( const QDateTime &qdt ) const;
+ bool recursAt( const TQDateTime &qdt ) const;
/**
Calculates the start date/time for all recurrences that happen at some time
@@ -256,7 +256,7 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
@return the start date/time of all occurences that overlap with the given
date. Empty list if the incidence does not overlap with the date at all
*/
- virtual QValueList<QDateTime> startDateTimesForDate( const QDate &date ) const;
+ virtual TQValueList<TQDateTime> startDateTimesForDate( const TQDate &date ) const;
/**
Calculates the start date/time for all recurrences that happen at the given
@@ -266,10 +266,10 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
date/time. Empty list if the incidence does not happen at the given
time at all.
*/
- virtual QValueList<QDateTime> startDateTimesForDateTime( const QDateTime &datetime ) const;
+ virtual TQValueList<TQDateTime> startDateTimesForDateTime( const TQDateTime &datetime ) const;
/** Return the end time of the occurrence if it starts at the given date/time */
- virtual QDateTime endDateForStart( const QDateTime &startDt ) const;
+ virtual TQDateTime endDateForStart( const TQDateTime &startDt ) const;
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -287,7 +287,7 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/**
Remove and delete all attachments with this mime type.
*/
- void deleteAttachments( const QString &mime );
+ void deleteAttachments( const TQString &mime );
/**
Return list of all associated attachments.
*/
@@ -295,7 +295,7 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/**
Find a list of attachments with this mime type.
*/
- Attachment::List attachments( const QString &mime ) const;
+ Attachment::List attachments( const TQString &mime ) const;
/**
Remove and delete all attachments.
*/
@@ -318,15 +318,15 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/**
Return secrecy as translated string.
*/
- QString secrecyStr() const;
+ TQString secrecyStr() const;
/**
Return list of all available secrecy states as list of translated strings.
*/
- static QStringList secrecyList();
+ static TQStringList secrecyList();
/**
Return human-readable translated name of secrecy class.
*/
- static QString secrecyName( int );
+ static TQString secrecyName( int );
/**
Sets the incidence status to a standard status value. See
@@ -338,7 +338,7 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
@param status non-standard status string. If empty,
the incidence status will be set to StatusNone.
*/
- void setCustomStatus( const QString &status );
+ void setCustomStatus( const TQString &status );
/**
Return the event's status.
*/
@@ -346,11 +346,11 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/**
Return the event's status string.
*/
- QString statusStr() const;
+ TQString statusStr() const;
/**
Return human-readable translated name of status value.
*/
- static QString statusName( Status );
+ static TQString statusName( Status );
// %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -360,11 +360,11 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/**
Set resources used, such as Office, Car, etc.
*/
- void setResources( const QStringList &resources );
+ void setResources( const TQStringList &resources );
/**
Return list of current resources.
*/
- QStringList resources() const;
+ TQStringList resources() const;
/**
Set the incidences priority. The priority has to be a value between 0 and
@@ -418,11 +418,11 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/**
Set the event's/todo's location. Do _not_ use it with journal.
*/
- void setLocation(const QString &location);
+ void setLocation(const TQString &location);
/**
Return the event's/todo's location. Do _not_ use it with journal.
*/
- QString location() const;
+ TQString location() const;
/**
Set the event's/todo's scheduling ID. Does not make sense for journals.
@@ -433,12 +433,12 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
end up with more than one resource having events with the same UID,
if you have access to other peoples resources.
*/
- void setSchedulingID( const QString& sid );
+ void setSchedulingID( const TQString& sid );
/**
Return the event's/todo's scheduling ID. Does not make sense for journals
If this is not set, it will return uid().
*/
- QString schedulingID() const;
+ TQString schedulingID() const;
/** Observer interface for the recurrence class. If the recurrence is changed,
this method will be called for the incidence the recurrence object
@@ -448,23 +448,23 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
/** Return the end date/time of the base incidence (e.g. due date/time for
to-dos, end date/time for events).
This method needs to be reimplemented by derived classes. */
- virtual QDateTime endDateRecurrenceBase() const { return dtStart(); }
+ virtual TQDateTime endDateRecurrenceBase() const { return dtStart(); }
private:
int mRevision;
// base components of jounal, event and todo
- QDateTime mCreated;
- QString mDescription;
- QString mSummary;
- QStringList mCategories;
+ TQDateTime mCreated;
+ TQString mDescription;
+ TQString mSummary;
+ TQStringList mCategories;
Incidence *mRelatedTo;
- QString mRelatedToUid;
+ TQString mRelatedToUid;
Incidence::List mRelations;
Attachment::List mAttachments;
- QStringList mResources;
+ TQStringList mResources;
- QString mStatusString;
+ TQString mStatusString;
Status mStatus;
int mSecrecy;
int mPriority; // 1 = highest, 2 = less, etc.
@@ -472,10 +472,10 @@ class LIBKCAL_EXPORT Incidence : public IncidenceBase, public Recurrence::Observ
Alarm::List mAlarms;
Recurrence *mRecurrence;
- QString mLocation;
+ TQString mLocation;
// Scheduling ID - used only to identify between scheduling mails
- QString mSchedulingID;
+ TQString mSchedulingID;
class Private;
Private *d;