summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/flac
diff options
context:
space:
mode:
Diffstat (limited to 'kfile-plugins/flac')
-rw-r--r--kfile-plugins/flac/kfile_flac.cpp74
-rw-r--r--kfile-plugins/flac/kfile_flac.h12
2 files changed, 43 insertions, 43 deletions
diff --git a/kfile-plugins/flac/kfile_flac.cpp b/kfile-plugins/flac/kfile_flac.cpp
index c04ee57d..6462c917 100644
--- a/kfile-plugins/flac/kfile_flac.cpp
+++ b/kfile-plugins/flac/kfile_flac.cpp
@@ -23,12 +23,12 @@
#include "kfile_flac.h"
-#include <qcstring.h>
-#include <qfile.h>
-#include <qdatetime.h>
-#include <qdict.h>
-#include <qvalidator.h>
-#include <qfileinfo.h>
+#include <tqcstring.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
+#include <tqdict.h>
+#include <tqvalidator.h>
+#include <tqfileinfo.h>
#include <kdebug.h>
#include <kurl.h>
@@ -56,8 +56,8 @@
K_EXPORT_COMPONENT_FACTORY(kfile_flac, KGenericFactory<KFlacPlugin>("kfile_flac"))
-KFlacPlugin::KFlacPlugin( QObject *parent, const char *name,
- const QStringList &args )
+KFlacPlugin::KFlacPlugin( TQObject *parent, const char *name,
+ const TQStringList &args )
: KFilePlugin( parent, name, args )
{
kdDebug(7034) << "flac plugin\n";
@@ -69,7 +69,7 @@ KFlacPlugin::KFlacPlugin( QObject *parent, const char *name,
}
-void KFlacPlugin::makeMimeTypeInfo(const QString& mimeType)
+void KFlacPlugin::makeMimeTypeInfo(const TQString& mimeType)
{
KFileMimeTypeInfo* info = addMimeTypeInfo( mimeType );
@@ -82,40 +82,40 @@ void KFlacPlugin::makeMimeTypeInfo(const QString& mimeType)
KFileMimeTypeInfo::ItemInfo* item = 0;
- item = addItemInfo(group, "Artist", i18n("Artist"), QVariant::String);
+ item = addItemInfo(group, "Artist", i18n("Artist"), TQVariant::String);
setHint(item, KFileMimeTypeInfo::Author);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Title", i18n("Title"), QVariant::String);
+ item = addItemInfo(group, "Title", i18n("Title"), TQVariant::String);
setHint(item, KFileMimeTypeInfo::Name);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Album", i18n("Album"), QVariant::String);
+ item = addItemInfo(group, "Album", i18n("Album"), TQVariant::String);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Genre", i18n("Genre"), QVariant::String);
+ item = addItemInfo(group, "Genre", i18n("Genre"), TQVariant::String);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Tracknumber", i18n("Track Number"), QVariant::String);
+ item = addItemInfo(group, "Tracknumber", i18n("Track Number"), TQVariant::String);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Date", i18n("Date"), QVariant::String);
+ item = addItemInfo(group, "Date", i18n("Date"), TQVariant::String);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Description", i18n("Description"), QVariant::String);
+ item = addItemInfo(group, "Description", i18n("Description"), TQVariant::String);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Organization", i18n("Organization"), QVariant::String);
+ item = addItemInfo(group, "Organization", i18n("Organization"), TQVariant::String);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Location", i18n("Location"), QVariant::String);
+ item = addItemInfo(group, "Location", i18n("Location"), TQVariant::String);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- item = addItemInfo(group, "Copyright", i18n("Copyright"), QVariant::String);
+ item = addItemInfo(group, "Copyright", i18n("Copyright"), TQVariant::String);
setAttributes(item, KFileMimeTypeInfo::Modifiable);
- addVariableInfo(group, QVariant::String, KFileMimeTypeInfo::Addable |
+ addVariableInfo(group, TQVariant::String, KFileMimeTypeInfo::Addable |
KFileMimeTypeInfo::Removable |
KFileMimeTypeInfo::Modifiable);
@@ -123,21 +123,21 @@ void KFlacPlugin::makeMimeTypeInfo(const QString& mimeType)
group = addGroupInfo(info, "Technical", i18n("Technical Details"));
setAttributes(group, 0);
- addItemInfo(group, "Channels", i18n("Channels"), QVariant::Int);
+ addItemInfo(group, "Channels", i18n("Channels"), TQVariant::Int);
- item = addItemInfo(group, "Sample Rate", i18n("Sample Rate"), QVariant::Int);
+ item = addItemInfo(group, "Sample Rate", i18n("Sample Rate"), TQVariant::Int);
setSuffix(item, i18n(" Hz"));
- item = addItemInfo(group, "Sample Width", i18n("Sample Width"), QVariant::Int);
+ item = addItemInfo(group, "Sample Width", i18n("Sample Width"), TQVariant::Int);
setSuffix(item, i18n(" bits"));
item = addItemInfo(group, "Bitrate", i18n("Average Bitrate"),
- QVariant::Int);
+ TQVariant::Int);
setAttributes(item, KFileMimeTypeInfo::Averaged);
setHint(item, KFileMimeTypeInfo::Bitrate);
setSuffix(item, i18n( " kbps"));
- item = addItemInfo(group, "Length", i18n("Length"), QVariant::Int);
+ item = addItemInfo(group, "Length", i18n("Length"), TQVariant::Int);
setAttributes(item, KFileMimeTypeInfo::Cummulative);
setHint(item, KFileMimeTypeInfo::Length);
setUnit(item, KFileMimeTypeInfo::Seconds);
@@ -161,10 +161,10 @@ bool KFlacPlugin::readInfo( KFileMetaInfo& info, uint what )
TagLib::File *file = 0;
if (info.mimeType() == "audio/x-flac")
- file = new TagLib::FLAC::File(QFile::encodeName(info.path()).data(), readTech);
+ file = new TagLib::FLAC::File(TQFile::encodeName(info.path()).data(), readTech);
#ifdef TAGLIB_1_2
else
- file = new TagLib::Ogg::FLAC::File(QFile::encodeName(info.path()).data(), readTech);
+ file = new TagLib::Ogg::FLAC::File(TQFile::encodeName(info.path()).data(), readTech);
#endif
if (!file || !file->isValid())
@@ -178,8 +178,8 @@ bool KFlacPlugin::readInfo( KFileMetaInfo& info, uint what )
{
KFileMetaInfoGroup commentgroup = appendGroup(info, "Comment");
- QString date = file->tag()->year() > 0 ? QString::number(file->tag()->year()) : QString::null;
- QString track = file->tag()->track() > 0 ? QString::number(file->tag()->track()) : QString::null;
+ TQString date = file->tag()->year() > 0 ? TQString::number(file->tag()->year()) : TQString::null;
+ TQString track = file->tag()->track() > 0 ? TQString::number(file->tag()->track()) : TQString::null;
appendItem(commentgroup, "Title", TStringToQString(file->tag()->title()).stripWhiteSpace());
appendItem(commentgroup, "Artist", TStringToQString(file->tag()->artist()).stripWhiteSpace());
@@ -232,16 +232,16 @@ bool KFlacPlugin::writeInfo(const KFileMetaInfo& info) const
{
TagLib::File *file;
- if (!TagLib::File::isWritable(QFile::encodeName(info.path()).data())) {
+ if (!TagLib::File::isWritable(TQFile::encodeName(info.path()).data())) {
kdDebug(7034) << "can't write to " << info.path() << endl;
return false;
}
if (info.mimeType() == "audio/x-flac")
- file = new TagLib::FLAC::File(QFile::encodeName(info.path()).data(), false);
+ file = new TagLib::FLAC::File(TQFile::encodeName(info.path()).data(), false);
#ifdef TAGLIB_1_2
else
- file = new TagLib::Ogg::FLAC::File(QFile::encodeName(info.path()).data(), false);
+ file = new TagLib::Ogg::FLAC::File(TQFile::encodeName(info.path()).data(), false);
#endif
if(!file->isOpen())
@@ -267,16 +267,16 @@ bool KFlacPlugin::writeInfo(const KFileMetaInfo& info) const
return true;
}
-QValidator* KFlacPlugin::createValidator( const QString&,
- const QString &group, const QString &key,
- QObject* parent, const char* name) const
+TQValidator* KFlacPlugin::createValidator( const TQString&,
+ const TQString &group, const TQString &key,
+ TQObject* parent, const char* name) const
{
if(key == "Tracknumber" || key == "Date")
{
- return new QIntValidator(0, 9999, parent, name);
+ return new TQIntValidator(0, 9999, parent, name);
}
else
- return new QRegExpValidator(QRegExp(".*"), parent, name);
+ return new TQRegExpValidator(TQRegExp(".*"), parent, name);
}
#include "kfile_flac.moc"
diff --git a/kfile-plugins/flac/kfile_flac.h b/kfile-plugins/flac/kfile_flac.h
index f8dffa0e..03ad51bb 100644
--- a/kfile-plugins/flac/kfile_flac.h
+++ b/kfile-plugins/flac/kfile_flac.h
@@ -34,16 +34,16 @@ class KFlacPlugin: public KFilePlugin
Q_OBJECT
public:
- KFlacPlugin( QObject *parent, const char *name, const QStringList& args );
+ KFlacPlugin( TQObject *parent, const char *name, const TQStringList& args );
virtual bool readInfo( KFileMetaInfo& info, uint what);
virtual bool writeInfo( const KFileMetaInfo& info ) const;
- virtual QValidator* createValidator( const QString& mimetype,
- const QString &group,
- const QString &key,
- QObject* parent, const char* name) const;
+ virtual TQValidator* createValidator( const TQString& mimetype,
+ const TQString &group,
+ const TQString &key,
+ TQObject* parent, const char* name) const;
protected:
- virtual void makeMimeTypeInfo(const QString& mimeType);
+ virtual void makeMimeTypeInfo(const TQString& mimeType);
};