summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/ics/kfile_ics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/ics/kfile_ics.cpp')
-rw-r--r--kfile-plugins/ics/kfile_ics.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kfile-plugins/ics/kfile_ics.cpp b/kfile-plugins/ics/kfile_ics.cpp
index a78ec0400..0d85344e7 100644
--- a/kfile-plugins/ics/kfile_ics.cpp
+++ b/kfile-plugins/ics/kfile_ics.cpp
@@ -18,8 +18,8 @@ t it will be useful,
*
*/
-#include <qdatetime.h>
-#include <qfile.h>
+#include <tqdatetime.h>
+#include <tqfile.h>
#include <libkcal/calendarlocal.h>
#include <libkcal/todo.h>
@@ -33,7 +33,7 @@ using namespace KCal;
typedef KGenericFactory<ICSPlugin> ICSFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_ics, ICSFactory( "kfile_ics" ))
-ICSPlugin::ICSPlugin( QObject *parent, const char *name, const QStringList& args )
+ICSPlugin::ICSPlugin( TQObject *parent, const char *name, const TQStringList& args )
: KFilePlugin( parent, name, args )
{
KFileMimeTypeInfo* info = addMimeTypeInfo( "text/calendar" ); //TODO: vcs !!
@@ -41,13 +41,13 @@ ICSPlugin::ICSPlugin( QObject *parent, const char *name, const QStringList& args
KFileMimeTypeInfo::GroupInfo* group = 0L;
group = addGroupInfo(info, "ICSInfo", i18n("Calendar Statistics"));
- addItemInfo( group, "ProductID", i18n("Product ID"), QVariant::String );
- addItemInfo( group, "Events", i18n("Events"), QVariant::Int );
- addItemInfo( group, "Todos", i18n("To-dos"), QVariant::Int );
- addItemInfo( group, "TodoCompleted", i18n("Completed To-dos"), QVariant::Int );
- addItemInfo( group, "TodoOverdue", i18n("Overdue To-dos"), QVariant::Int );
- addItemInfo( group, "Journals", i18n("Journals"), QVariant::Int );
-// addItemInfo( group, "Reminders", i18n("Reminders"), QVariant::Int );
+ addItemInfo( group, "ProductID", i18n("Product ID"), TQVariant::String );
+ addItemInfo( group, "Events", i18n("Events"), TQVariant::Int );
+ addItemInfo( group, "Todos", i18n("To-dos"), TQVariant::Int );
+ addItemInfo( group, "TodoCompleted", i18n("Completed To-dos"), TQVariant::Int );
+ addItemInfo( group, "TodoOverdue", i18n("Overdue To-dos"), TQVariant::Int );
+ addItemInfo( group, "Journals", i18n("Journals"), TQVariant::Int );
+// addItemInfo( group, "Reminders", i18n("Reminders"), TQVariant::Int );
}
@@ -59,15 +59,15 @@ bool ICSPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ )
{
KFileMetaInfoGroup group = appendGroup( info, "ICSInfo");
- CalendarLocal cal ( QString::fromLatin1( "UTC" ) );
+ CalendarLocal cal ( TQString::fromLatin1( "UTC" ) );
if( !cal.load( info.path() ) ) {
kdDebug() << "Could not load calendar" << endl;
return false;
}
- appendItem( group, "ProductID", QVariant( cal.productId() ) );
- appendItem( group, "Events", QVariant( int( cal.events().count() ) ) );
- appendItem( group, "Journals", QVariant( int( cal.journals().count() ) ) );
+ appendItem( group, "ProductID", TQVariant( cal.productId() ) );
+ appendItem( group, "Events", TQVariant( int( cal.events().count() ) ) );
+ appendItem( group, "Journals", TQVariant( int( cal.journals().count() ) ) );
Todo::List todos = cal.todos();
// count completed and overdue
@@ -80,13 +80,13 @@ bool ICSPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ )
Todo *todo = *it;
if ( todo->isCompleted() )
++completed;
- else if ( todo->hasDueDate() && todo->dtDue().date() < QDate::currentDate() )
+ else if ( todo->hasDueDate() && todo->dtDue().date() < TQDate::currentDate() )
++overdue;
}
- appendItem( group, "Todos", QVariant( int(todos.count() ) ) );
- appendItem( group, "TodoCompleted", QVariant( completed ) );
- appendItem( group, "TodoOverdue", QVariant( overdue ) );
+ appendItem( group, "Todos", TQVariant( int(todos.count() ) ) );
+ appendItem( group, "TodoCompleted", TQVariant( completed ) );
+ appendItem( group, "TodoOverdue", TQVariant( overdue ) );
cal.close();