summaryrefslogtreecommitdiffstats
path: root/kfile-plugins
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 /kfile-plugins
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 'kfile-plugins')
-rw-r--r--kfile-plugins/ics/kfile_ics.cpp36
-rw-r--r--kfile-plugins/ics/kfile_ics.h2
-rw-r--r--kfile-plugins/palm-databases/kfile_palm.cpp40
-rw-r--r--kfile-plugins/palm-databases/kfile_palm.h2
-rw-r--r--kfile-plugins/rfc822/kfile_rfc822.cpp30
-rw-r--r--kfile-plugins/rfc822/kfile_rfc822.h2
-rw-r--r--kfile-plugins/vcf/kfile_vcf.cpp28
-rw-r--r--kfile-plugins/vcf/kfile_vcf.h2
8 files changed, 71 insertions, 71 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();
diff --git a/kfile-plugins/ics/kfile_ics.h b/kfile-plugins/ics/kfile_ics.h
index 27e7e43db..50f0b84c7 100644
--- a/kfile-plugins/ics/kfile_ics.h
+++ b/kfile-plugins/ics/kfile_ics.h
@@ -28,7 +28,7 @@ class ICSPlugin : public KFilePlugin
{
Q_OBJECT
public:
- ICSPlugin( QObject *parent, const char *name, const QStringList& args );
+ ICSPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what );
};
diff --git a/kfile-plugins/palm-databases/kfile_palm.cpp b/kfile-plugins/palm-databases/kfile_palm.cpp
index 3b6c13c3e..c38650766 100644
--- a/kfile-plugins/palm-databases/kfile_palm.cpp
+++ b/kfile-plugins/palm-databases/kfile_palm.cpp
@@ -24,8 +24,8 @@
#include <klocale.h>
#include <kgenericfactory.h>
-#include <qfile.h>
-#include <qdatetime.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
#include <pi-file.h>
@@ -33,8 +33,8 @@ typedef KGenericFactory<KPalmPlugin> PalmFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_palm, PalmFactory( "kfile_palm" ))
-KPalmPlugin::KPalmPlugin(QObject *parent, const char *name,
- const QStringList &args)
+KPalmPlugin::KPalmPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
@@ -44,31 +44,31 @@ KPalmPlugin::KPalmPlugin(QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
group = addGroupInfo(info, "General", i18n("General Information"));
- item = addItemInfo(group, "Name", i18n("Name"), QVariant::String);
- item = addItemInfo(group, "DBType", i18n("DB Type"), QVariant::String);
- item = addItemInfo(group, "TypeID", i18n("Type ID"), QVariant::String);
- item = addItemInfo(group, "CreatorID", i18n("Creator ID"), QVariant::String);
- item = addItemInfo(group, "NrRecords", i18n("# of Records"), QVariant::Int);
+ item = addItemInfo(group, "Name", i18n("Name"), TQVariant::String);
+ item = addItemInfo(group, "DBType", i18n("DB Type"), TQVariant::String);
+ item = addItemInfo(group, "TypeID", i18n("Type ID"), TQVariant::String);
+ item = addItemInfo(group, "CreatorID", i18n("Creator ID"), TQVariant::String);
+ item = addItemInfo(group, "NrRecords", i18n("# of Records"), TQVariant::Int);
group = addGroupInfo(info, "TimeStamps", i18n("Time Stamps"));
- item = addItemInfo(group, "CreationDate", i18n("Creation Date"), QVariant::DateTime);
- item = addItemInfo(group, "ModificationDate", i18n("Modification Date"), QVariant::DateTime);
- item = addItemInfo(group, "BackupDate", i18n("Backup Date"), QVariant::DateTime);
+ item = addItemInfo(group, "CreationDate", i18n("Creation Date"), TQVariant::DateTime);
+ item = addItemInfo(group, "ModificationDate", i18n("Modification Date"), TQVariant::DateTime);
+ item = addItemInfo(group, "BackupDate", i18n("Backup Date"), TQVariant::DateTime);
group = addGroupInfo(info, "Flags", i18n("Flags"));
- item = addItemInfo(group, "ReadOnly", i18n("Read-Only"), QVariant::String);
- item = addItemInfo(group, "MakeBackup", i18n("Make Backup"), QVariant::String);
- item = addItemInfo(group, "CopyProtected", i18n("Copy Protected"), QVariant::String);
- item = addItemInfo(group, "Reset", i18n("Reset Handheld After Installing"), QVariant::String);
- item = addItemInfo(group, "ExcludeFromSync", i18n("Exclude From Sync"), QVariant::String);
+ item = addItemInfo(group, "ReadOnly", i18n("Read-Only"), TQVariant::String);
+ item = addItemInfo(group, "MakeBackup", i18n("Make Backup"), TQVariant::String);
+ item = addItemInfo(group, "CopyProtected", i18n("Copy Protected"), TQVariant::String);
+ item = addItemInfo(group, "Reset", i18n("Reset Handheld After Installing"), TQVariant::String);
+ item = addItemInfo(group, "ExcludeFromSync", i18n("Exclude From Sync"), TQVariant::String);
}
bool KPalmPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ )
{
int nrRec;
- QString tempName = info.path();
- QCString fileName = QFile::encodeName(tempName);
+ TQString tempName = info.path();
+ TQCString fileName = TQFile::encodeName(tempName);
pi_file *dbFile = pi_file_open(const_cast < char *>((const char *) fileName));
if (dbFile == 0L) return false;
@@ -93,7 +93,7 @@ bool KPalmPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ )
KFileMetaInfoGroup timeGroup = appendGroup(info, "TimeStamps");
- QDateTime tm;
+ TQDateTime tm;
tm.setTime_t( dBInfo.createDate );
appendItem(timeGroup, "CreationDate", tm);
tm.setTime_t( dBInfo.modifyDate );
diff --git a/kfile-plugins/palm-databases/kfile_palm.h b/kfile-plugins/palm-databases/kfile_palm.h
index fcd928a00..d397d49de 100644
--- a/kfile-plugins/palm-databases/kfile_palm.h
+++ b/kfile-plugins/palm-databases/kfile_palm.h
@@ -31,7 +31,7 @@ class KPalmPlugin: public KFilePlugin
Q_OBJECT
public:
- KPalmPlugin( QObject *parent, const char *name, const QStringList& args );
+ KPalmPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
// virtual bool writeInfo( const KFileMetaInfo& info ) const;
diff --git a/kfile-plugins/rfc822/kfile_rfc822.cpp b/kfile-plugins/rfc822/kfile_rfc822.cpp
index 794d335d6..6d2488841 100644
--- a/kfile-plugins/rfc822/kfile_rfc822.cpp
+++ b/kfile-plugins/rfc822/kfile_rfc822.cpp
@@ -26,11 +26,11 @@
#include <kstringvalidator.h>
#include <kdebug.h>
-#include <qdict.h>
-#include <qvalidator.h>
-#include <qcstring.h>
-#include <qfile.h>
-#include <qdatetime.h>
+#include <tqdict.h>
+#include <tqvalidator.h>
+#include <tqcstring.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
#if !defined(__osf__)
#include <inttypes.h>
@@ -42,8 +42,8 @@ typedef KGenericFactory<KRfc822Plugin> Rfc822Factory;
K_EXPORT_COMPONENT_FACTORY(kfile_rfc822, Rfc822Factory( "kfile_rfc822" ))
-KRfc822Plugin::KRfc822Plugin(QObject *parent, const char *name,
- const QStringList &args)
+KRfc822Plugin::KRfc822Plugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
@@ -55,27 +55,27 @@ KRfc822Plugin::KRfc822Plugin(QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "From", i18n("From"), QVariant::String);
- item = addItemInfo(group, "To", i18n("To"), QVariant::String);
- item = addItemInfo(group, "Subject", i18n("Subject"), QVariant::String);
- item = addItemInfo(group, "Date", i18n("Date"), QVariant::String);
- item = addItemInfo(group, "Content-Type", i18n("Content-Type"), QVariant::String);
+ item = addItemInfo(group, "From", i18n("From"), TQVariant::String);
+ item = addItemInfo(group, "To", i18n("To"), TQVariant::String);
+ item = addItemInfo(group, "Subject", i18n("Subject"), TQVariant::String);
+ item = addItemInfo(group, "Date", i18n("Date"), TQVariant::String);
+ item = addItemInfo(group, "Content-Type", i18n("Content-Type"), TQVariant::String);
}
bool KRfc822Plugin::readInfo( KFileMetaInfo& info, uint /*what*/ )
{
- QFile file(info.path());
+ TQFile file(info.path());
if (!file.open(IO_ReadOnly))
{
- kdDebug(7034) << "Couldn't open " << QFile::encodeName(info.path()) << endl;
+ kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl;
return false;
}
/*
- Note to self: probably should use QCString for all this, but
+ Note to self: probably should use TQCString for all this, but
what we're doing is simple and self-contained so never mind..
*/
diff --git a/kfile-plugins/rfc822/kfile_rfc822.h b/kfile-plugins/rfc822/kfile_rfc822.h
index f2066754a..e78cd3f55 100644
--- a/kfile-plugins/rfc822/kfile_rfc822.h
+++ b/kfile-plugins/rfc822/kfile_rfc822.h
@@ -29,7 +29,7 @@ class KRfc822Plugin: public KFilePlugin
Q_OBJECT
public:
- KRfc822Plugin( QObject *parent, const char *name, const QStringList& args );
+ KRfc822Plugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
};
diff --git a/kfile-plugins/vcf/kfile_vcf.cpp b/kfile-plugins/vcf/kfile_vcf.cpp
index f9440f6d1..76b3383c6 100644
--- a/kfile-plugins/vcf/kfile_vcf.cpp
+++ b/kfile-plugins/vcf/kfile_vcf.cpp
@@ -26,15 +26,15 @@
#include <kgenericfactory.h>
#include <kabc/vcardconverter.h>
-#include <qdict.h>
-#include <qfile.h>
+#include <tqdict.h>
+#include <tqfile.h>
typedef KGenericFactory<KVcfPlugin> VcfFactory;
K_EXPORT_COMPONENT_FACTORY(kfile_vcf, VcfFactory( "kfile_vcf" ))
-KVcfPlugin::KVcfPlugin(QObject *parent, const char *name,
- const QStringList &args)
+KVcfPlugin::KVcfPlugin(TQObject *parent, const char *name,
+ const TQStringList &args)
: KFilePlugin(parent, name, args)
{
@@ -46,25 +46,25 @@ KVcfPlugin::KVcfPlugin(QObject *parent, const char *name,
KFileMimeTypeInfo::ItemInfo* item;
- item = addItemInfo(group, "Name", i18n("Name"), QVariant::String);
- item = addItemInfo(group, "Email", i18n("Email"), QVariant::String);
- item = addItemInfo(group, "Telephone", i18n("Telephone"), QVariant::String);
+ item = addItemInfo(group, "Name", i18n("Name"), TQVariant::String);
+ item = addItemInfo(group, "Email", i18n("Email"), TQVariant::String);
+ item = addItemInfo(group, "Telephone", i18n("Telephone"), TQVariant::String);
}
bool KVcfPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ )
{
- QFile file(info.path());
+ TQFile file(info.path());
if (!file.open(IO_ReadOnly))
{
- kdDebug(7034) << "Couldn't open " << QFile::encodeName(info.path()) << endl;
+ kdDebug(7034) << "Couldn't open " << TQFile::encodeName(info.path()) << endl;
return false;
}
- // even the vcard thumbnail QString::fromUtf8(buf_name));creator reads the full file ...
+ // even the vcard thumbnail TQString::fromUtf8(buf_name));creator reads the full file ...
// The following is partly copied from there
- QString contents = file.readAll();
+ TQString contents = file.readAll();
file.close();
KABC::VCardConverter converter;
@@ -73,7 +73,7 @@ bool KVcfPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ )
KFileMetaInfoGroup group = appendGroup(info, "Technical");
// prepare the text
- QString name = addr.formattedName().simplifyWhiteSpace();
+ TQString name = addr.formattedName().simplifyWhiteSpace();
if ( name.isEmpty() )
name = addr.givenName() + " " + addr.familyName();
name = name.simplifyWhiteSpace();
@@ -85,9 +85,9 @@ bool KVcfPlugin::readInfo( KFileMetaInfo& info, uint /*what*/ )
appendItem(group, "Email", addr.preferredEmail());
KABC::PhoneNumber::List pnList = addr.phoneNumbers();
- QStringList phoneNumbers;
+ TQStringList phoneNumbers;
for (unsigned int no=0; no<pnList.count(); ++no) {
- QString pn = pnList[no].number().simplifyWhiteSpace();
+ TQString pn = pnList[no].number().simplifyWhiteSpace();
if (!pn.isEmpty() && !phoneNumbers.contains(pn))
phoneNumbers.append(pn);
}
diff --git a/kfile-plugins/vcf/kfile_vcf.h b/kfile-plugins/vcf/kfile_vcf.h
index a0b147c63..3bd75fb48 100644
--- a/kfile-plugins/vcf/kfile_vcf.h
+++ b/kfile-plugins/vcf/kfile_vcf.h
@@ -29,7 +29,7 @@ class KVcfPlugin: public KFilePlugin
Q_OBJECT
public:
- KVcfPlugin( QObject *parent, const char *name, const QStringList& args );
+ KVcfPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
};