summaryrefslogtreecommitdiffstats
path: root/libkcal/calendarlocal.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/calendarlocal.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/calendarlocal.h')
-rw-r--r--libkcal/calendarlocal.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/libkcal/calendarlocal.h b/libkcal/calendarlocal.h
index 99bc76c2f..b76eb5ab4 100644
--- a/libkcal/calendarlocal.h
+++ b/libkcal/calendarlocal.h
@@ -23,7 +23,7 @@
#define KCAL_CALENDARLOCAL_H
#include "calendar.h"
-#include <qdict.h>
+#include <tqdict.h>
#include <kdepimmacros.h>
namespace KCal {
@@ -39,7 +39,7 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
/**
Constructs a new calendar, with variables initialized to sane values.
*/
- CalendarLocal( const QString &timeZoneId );
+ CalendarLocal( const TQString &timeZoneId );
~CalendarLocal();
/**
@@ -55,14 +55,14 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
@param fileName the name of the calendar on disk.
@param format the format to use. If 0, iCalendar and vCalendar will be used
*/
- bool load( const QString &fileName, CalFormat *format = 0 );
+ bool load( const TQString &fileName, CalFormat *format = 0 );
/**
* Reloads the contents of the storage into memory. The associated file name
* must be known, in other words a previous load() must have been executed.
* @return success or failure
*/
- bool reload( const QString &tz );
+ bool reload( const TQString &tz );
/**
Writes out the calendar to disk in the specified \a format.
@@ -71,7 +71,7 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
@param format the format to use
@return true, if successful, false on error.
*/
- bool save( const QString &fileName, CalFormat *format = 0 );
+ bool save( const TQString &fileName, CalFormat *format = 0 );
/**
Clears out the current calendar, freeing all used memory etc. etc.
@@ -96,7 +96,7 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
/**
Retrieves an event on the basis of the unique string ID.
*/
- Event *event( const QString &uid );
+ Event *event( const TQString &uid );
/**
Return unfiltered list of all events in calendar.
*/
@@ -118,7 +118,7 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
Searches todolist for an event with this unique string identifier,
returns a pointer or null.
*/
- Todo *todo( const QString &uid );
+ Todo *todo( const TQString &uid );
/**
Return list of all todos.
*/
@@ -126,7 +126,7 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
/**
Returns list of todos due on the specified date.
*/
- Todo::List rawTodosForDate( const QDate &date );
+ Todo::List rawTodosForDate( const TQDate &date );
/**
Add a Journal entry to calendar.
@@ -143,7 +143,7 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
/**
Return Journal with given UID.
*/
- Journal *journal( const QString &uid );
+ Journal *journal( const TQString &uid );
/**
Return list of all journals.
*/
@@ -151,27 +151,27 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
/**
Get unfiltered journals for a given date.
*/
- Journal::List rawJournalsForDate( const QDate &date );
+ Journal::List rawJournalsForDate( const TQDate &date );
/**
Return all alarms, which ocur in the given time interval.
*/
- Alarm::List alarms( const QDateTime &from, const QDateTime &to );
+ Alarm::List alarms( const TQDateTime &from, const TQDateTime &to );
/**
Return all alarms, which ocur before given date.
*/
- Alarm::List alarmsTo( const QDateTime &to );
+ Alarm::List alarmsTo( const TQDateTime &to );
/**
Builds and then returns a list of all events that match for the
date specified. useful for dayView, etc. etc.
*/
- Event::List rawEventsForDate( const QDate &date, EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending );
+ Event::List rawEventsForDate( const TQDate &date, EventSortField sortField = EventSortUnsorted, SortDirection sortDirection = SortDirectionAscending );
/**
Get unfiltered events for date \a qdt.
*/
- Event::List rawEventsForDate( const QDateTime &qdt );
+ Event::List rawEventsForDate( const TQDateTime &qdt );
/**
Get unfiltered events in a range of dates. If inclusive is set to true,
only events are returned, which are completely included in the range.
@@ -181,7 +181,7 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
from its start to its end date. For a recurring event, its time span is
from its first to its last recurrence.
*/
- Event::List rawEvents( const QDate &start, const QDate &end,
+ Event::List rawEvents( const TQDate &start, const TQDate &end,
bool inclusive = false );
/**
@@ -189,7 +189,7 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
* in the calendar. This requires that the calendar is saved first, so the
* user is asked whether he wants to do that, or keep the timezone as is.
*/
- void setTimeZoneIdViewOnly( const QString& tz );
+ void setTimeZoneIdViewOnly( const TQString& tz );
protected:
@@ -201,23 +201,23 @@ class LIBKCAL_EXPORT CalendarLocal : public Calendar
/** Append alarms of incidence in interval to list of alarms. */
void appendAlarms( Alarm::List &alarms, Incidence *incidence,
- const QDateTime &from, const QDateTime &to );
+ const TQDateTime &from, const TQDateTime &to );
/** Append alarms of recurring events in interval to list of alarms. */
void appendRecurringAlarms( Alarm::List &alarms, Incidence *incidence,
- const QDateTime &from, const QDateTime &to );
+ const TQDateTime &from, const TQDateTime &to );
private:
void init();
- typedef QDict<Event> EventDict;
- typedef QDictIterator<Event> EventDictIterator;
+ typedef TQDict<Event> EventDict;
+ typedef TQDictIterator<Event> EventDictIterator;
EventDict mEvents;
Todo::List mTodoList;
Journal::List mJournalList;
Incidence::List mDeletedIncidences;
- QString mFileName;
+ TQString mFileName;
class Private;
Private *d;