summaryrefslogtreecommitdiffstats
path: root/korganizer/eventarchiver.cpp
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 /korganizer/eventarchiver.cpp
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 'korganizer/eventarchiver.cpp')
-rw-r--r--korganizer/eventarchiver.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/korganizer/eventarchiver.cpp b/korganizer/eventarchiver.cpp
index f4ff3cbf9..b5a9c0c98 100644
--- a/korganizer/eventarchiver.cpp
+++ b/korganizer/eventarchiver.cpp
@@ -36,8 +36,8 @@
#include <kdebug.h>
#include "koprefs.h"
-EventArchiver::EventArchiver( QObject* parent, const char* name )
- : QObject( parent, name )
+EventArchiver::EventArchiver( TQObject* parent, const char* name )
+ : TQObject( parent, name )
{
}
@@ -45,14 +45,14 @@ EventArchiver::~EventArchiver()
{
}
-void EventArchiver::runOnce( Calendar* calendar, const QDate& limitDate, QWidget* widget )
+void EventArchiver::runOnce( Calendar* calendar, const TQDate& limitDate, TQWidget* widget )
{
run( calendar, limitDate, widget, true, true );
}
-void EventArchiver::runAuto( Calendar* calendar, QWidget* widget, bool withGUI )
+void EventArchiver::runAuto( Calendar* calendar, TQWidget* widget, bool withGUI )
{
- QDate limitDate( QDate::currentDate() );
+ TQDate limitDate( TQDate::currentDate() );
int expiryTime = KOPrefs::instance()->mExpiryTime;
switch (KOPrefs::instance()->mExpiryUnit) {
case KOPrefs::UnitDays: // Days
@@ -70,7 +70,7 @@ void EventArchiver::runAuto( Calendar* calendar, QWidget* widget, bool withGUI )
run( calendar, limitDate, widget, withGUI, false );
}
-void EventArchiver::run( Calendar* calendar, const QDate& limitDate, QWidget* widget, bool withGUI, bool errorIfNone )
+void EventArchiver::run( Calendar* calendar, const TQDate& limitDate, TQWidget* widget, bool withGUI, bool errorIfNone )
{
// We need to use rawEvents, otherwise events hidden by filters will not be archived.
Incidence::List incidences;
@@ -80,7 +80,7 @@ void EventArchiver::run( Calendar* calendar, const QDate& limitDate, QWidget* wi
if ( KOPrefs::instance()->mArchiveEvents ) {
events = calendar->rawEvents(
- QDate( 1769, 12, 1 ),
+ TQDate( 1769, 12, 1 ),
// #29555, also advertised by the "limitDate not included" in the class docu
limitDate.addDays( -1 ),
true );
@@ -118,9 +118,9 @@ void EventArchiver::run( Calendar* calendar, const QDate& limitDate, QWidget* wi
}
}
-void EventArchiver::deleteIncidences( Calendar* calendar, const QDate& limitDate, QWidget* widget, const Incidence::List& incidences, bool withGUI )
+void EventArchiver::deleteIncidences( Calendar* calendar, const TQDate& limitDate, TQWidget* widget, const Incidence::List& incidences, bool withGUI )
{
- QStringList incidenceStrs;
+ TQStringList incidenceStrs;
Incidence::List::ConstIterator it;
for( it = incidences.begin(); it != incidences.end(); ++it ) {
incidenceStrs.append( (*it)->summary() );
@@ -141,7 +141,7 @@ void EventArchiver::deleteIncidences( Calendar* calendar, const QDate& limitDate
emit eventsDeleted();
}
-void EventArchiver::archiveIncidences( Calendar* calendar, const QDate& /*limitDate*/, QWidget* widget, const Incidence::List& incidences, bool /*withGUI*/)
+void EventArchiver::archiveIncidences( Calendar* calendar, const TQDate& /*limitDate*/, TQWidget* widget, const Incidence::List& incidences, bool /*withGUI*/)
{
FileStorage storage( calendar );
@@ -166,7 +166,7 @@ void EventArchiver::archiveIncidences( Calendar* calendar, const QDate& /*limitD
// Strip active events from calendar so that only events to be archived
// remain. This is not really efficient, but there is no other easy way.
- QStringList uids;
+ TQStringList uids;
Incidence::List allIncidences = archiveCalendar.rawIncidences();
Incidence::List::ConstIterator it;
for( it = incidences.begin(); it != incidences.end(); ++it ) {
@@ -180,7 +180,7 @@ void EventArchiver::archiveIncidences( Calendar* calendar, const QDate& /*limitD
// Get or create the archive file
KURL archiveURL( KOPrefs::instance()->mArchiveFile );
- QString archiveFile;
+ TQString archiveFile;
if ( KIO::NetAccess::exists( archiveURL, true, widget ) ) {
if( !KIO::NetAccess::download( archiveURL, archiveFile, widget ) ) {