summaryrefslogtreecommitdiffstats
path: root/noatun/modules/dcopiface/dcopiface.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/modules/dcopiface/dcopiface.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/modules/dcopiface/dcopiface.cpp')
-rw-r--r--noatun/modules/dcopiface/dcopiface.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/noatun/modules/dcopiface/dcopiface.cpp b/noatun/modules/dcopiface/dcopiface.cpp
index 93ef6160..aef6c58f 100644
--- a/noatun/modules/dcopiface/dcopiface.cpp
+++ b/noatun/modules/dcopiface/dcopiface.cpp
@@ -19,12 +19,12 @@ extern "C"
NIF::NIF() : Plugin(), DCOPObject("Noatun")
{
mLastVolume = 0;
-// connect(napp->player(), SIGNAL(newSong()), SLOT(newSongPlaying()));
+// connect(napp->player(), TQT_SIGNAL(newSong()), TQT_SLOT(newSongPlaying()));
}
NIF::~NIF()
{
- kapp->dcopClient()->emitDCOPSignal("exiting()", QByteArray());
+ kapp->dcopClient()->emitDCOPSignal("exiting()", TQByteArray());
}
void NIF::toggleListView()
@@ -131,36 +131,36 @@ int NIF::state()
return 0; // default to stopped
}
-QString NIF::lengthString()
+TQString NIF::lengthString()
{
return napp->player()->current() ? napp->player()->current().lengthString() : "";
}
-QString NIF::timeString()
+TQString NIF::timeString()
{
return napp->player()->lengthString();
}
-QString NIF::title()
+TQString NIF::title()
{
return napp->player()->current() ? napp->player()->current().title() : "";
}
-void NIF::setCurrentProperty(const QString &key, const QString &value)
+void NIF::setCurrentProperty(const TQString &key, const TQString &value)
{
if (!napp->player()->current()) return;
napp->player()->current().setProperty(key, value);
}
-QString NIF::currentProperty(const QString &key)
+TQString NIF::currentProperty(const TQString &key)
{
if (!napp->player()->current()) return "";
return napp->player()->current().property(key);
}
-void NIF::clearCurrentProperty(const QString &key)
+void NIF::clearCurrentProperty(const TQString &key)
{
if (!napp->player()->current()) return;
@@ -168,41 +168,41 @@ void NIF::clearCurrentProperty(const QString &key)
}
-QCString NIF::visStack()
+TQCString NIF::visStack()
{
return napp->player()->engine()->visualizationStack()->toString().c_str();
}
-QCString NIF::session()
+TQCString NIF::session()
{
return napp->player()->engine()->session()->toString().c_str();
}
// adds one file to the playlist
-void NIF::addFile(const QString& f, bool autoplay)
+void NIF::addFile(const TQString& f, bool autoplay)
{
napp->player()->openFile(f, false, autoplay);
}
// Adds a bunch of files to the playlist
-void NIF::addFile(const QStringList &f, bool autoplay)
+void NIF::addFile(const TQStringList &f, bool autoplay)
{
- for (QStringList::ConstIterator it = f.begin(); it != f.end(); ++it )
+ for (TQStringList::ConstIterator it = f.begin(); it != f.end(); ++it )
napp->player()->openFile(*it, false, autoplay);
}
-void NIF::loadPlugin(const QString &spec)
+void NIF::loadPlugin(const TQString &spec)
{
napp->libraryLoader()->add(spec);
}
-QStringList NIF::availablePlugins() {
- QStringList available_spec_files;
- QValueList<NoatunLibraryInfo> available;
+TQStringList NIF::availablePlugins() {
+ TQStringList available_spec_files;
+ TQValueList<NoatunLibraryInfo> available;
available = napp->libraryLoader()->available();
- QValueList<NoatunLibraryInfo>::iterator it;
+ TQValueList<NoatunLibraryInfo>::iterator it;
for (it = available.begin();it != available.end();it++) {
available_spec_files += (*it).specfile;
}
@@ -210,13 +210,13 @@ QStringList NIF::availablePlugins() {
return available_spec_files;
}
-QStringList NIF::loadedPlugins() {
- QStringList loaded_spec_files;
- QValueList<NoatunLibraryInfo> loaded;
+TQStringList NIF::loadedPlugins() {
+ TQStringList loaded_spec_files;
+ TQValueList<NoatunLibraryInfo> loaded;
loaded = napp->libraryLoader()->loaded();
- QValueList<NoatunLibraryInfo>::iterator it;
+ TQValueList<NoatunLibraryInfo>::iterator it;
for (it = loaded.begin();it != loaded.end();it++) {
loaded_spec_files += (*it).specfile;
}
@@ -224,24 +224,24 @@ QStringList NIF::loadedPlugins() {
return loaded_spec_files;
}
-bool NIF::unloadPlugin(const QString &spec)
+bool NIF::unloadPlugin(const TQString &spec)
{
return napp->libraryLoader()->remove(spec);
}
-QStringList NIF::mimeTypes()
+TQStringList NIF::mimeTypes()
{
return napp->mimeTypes();
}
-QCString NIF::version()
+TQCString NIF::version()
{
return napp->version();
}
void NIF::newSongPlaying()
{
- kapp->dcopClient()->emitDCOPSignal("newFile()", QByteArray());
+ kapp->dcopClient()->emitDCOPSignal("newFile()", TQByteArray());
}
void NIF::clear()