diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:43:14 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:43:14 -0600 |
commit | 79b21d47bce1ee428affc97534cd8b257232a871 (patch) | |
tree | 0df1fa0109d9f2bcef932eda8b5c25b2e06669ed /kcontrol/arts | |
parent | 9a898d493f493adbc404f7223043c85f3817472b (diff) | |
download | tdebase-79b21d47bce1ee428affc97534cd8b257232a871.tar.gz tdebase-79b21d47bce1ee428affc97534cd8b257232a871.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kcontrol/arts')
-rw-r--r-- | kcontrol/arts/arts.cpp | 38 | ||||
-rw-r--r-- | kcontrol/arts/arts.h | 6 | ||||
-rw-r--r-- | kcontrol/arts/krichtextlabel.cpp | 4 |
3 files changed, 24 insertions, 24 deletions
diff --git a/kcontrol/arts/arts.cpp b/kcontrol/arts/arts.cpp index 6f6a39cd1..c6a012fe7 100644 --- a/kcontrol/arts/arts.cpp +++ b/kcontrol/arts/arts.cpp @@ -57,7 +57,7 @@ extern "C" { KDE_EXPORT KCModule *create_arts(TQWidget *parent, const char* /*name*/) { - KGlobal::locale()->insertCatalogue("kcmarts"); + TDEGlobal::locale()->insertCatalogue("kcmarts"); return new KArtsModule(parent, "kcmarts" ); } } @@ -96,16 +96,16 @@ static bool startArts() */ void KArtsModule::initAudioIOList() { - KProcess* artsd = new KProcess(); + TDEProcess* artsd = new TDEProcess(); *artsd << "artsd"; *artsd << "-A"; - connect(artsd, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotArtsdExited(KProcess*))); - connect(artsd, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotProcessArtsdOutput(KProcess*, char*, int))); + connect(artsd, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotArtsdExited(TDEProcess*))); + connect(artsd, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotProcessArtsdOutput(TDEProcess*, char*, int))); - if (!artsd->start(KProcess::Block, KProcess::Stderr)) { + if (!artsd->start(TDEProcess::Block, TDEProcess::Stderr)) { KMessageBox::error(0, i18n("Unable to start the sound server to " "retrieve possible sound I/O methods.\n" "Only automatic detection will be " @@ -114,13 +114,13 @@ void KArtsModule::initAudioIOList() } } -void KArtsModule::slotArtsdExited(KProcess* proc) +void KArtsModule::slotArtsdExited(TDEProcess* proc) { latestProcessStatus = proc->exitStatus(); delete proc; } -void KArtsModule::slotProcessArtsdOutput(KProcess*, char* buf, int len) +void KArtsModule::slotProcessArtsdOutput(TDEProcess*, char* buf, int len) { // XXX(gioele): I suppose this will be called with full lines, am I wrong? @@ -438,10 +438,10 @@ void KArtsModule::slotTestSound() if (configChanged && (userSavedChanges() == KMessageBox::Yes) || !artsdIsRunning() ) restartServer(); - KProcess test; + TDEProcess test; test << "artsplay"; test << locate("sound", "KDE_Startup_1.ogg"); - test.start(KProcess::DontCare); + test.start(TDEProcess::DontCare); } void KArtsModule::defaults() @@ -538,13 +538,13 @@ bool KArtsModule::realtimeIsPossible() static bool checked = false; if (!checked) { - KProcess* checkProcess = new KProcess(); + TDEProcess* checkProcess = new TDEProcess(); *checkProcess << "artswrapper"; *checkProcess << "check"; - connect(checkProcess, TQT_SIGNAL(processExited(KProcess*)), - this, TQT_SLOT(slotArtsdExited(KProcess*))); - if (!checkProcess->start(KProcess::Block)) + connect(checkProcess, TQT_SIGNAL(processExited(TDEProcess*)), + this, TQT_SLOT(slotArtsdExited(TDEProcess*))); + if (!checkProcess->start(TDEProcess::Block)) { delete checkProcess; realtimePossible = false; @@ -574,10 +574,10 @@ void KArtsModule::restartServer() DCOPRef("knotify", "qt/knotify").send("quit"); // Shut down artsd - KProcess terminateArts; + TDEProcess terminateArts; terminateArts << "artsshell"; terminateArts << "terminate"; - terminateArts.start(KProcess::Block); + terminateArts.start(TDEProcess::Block); if (starting) { @@ -594,10 +594,10 @@ void KArtsModule::restartServer() bool KArtsModule::artsdIsRunning() { - KProcess check; + TDEProcess check; check << "artsshell"; check << "status"; - check.start(KProcess::Block); + check.start(TDEProcess::Block); return (check.exitStatus() == 0); } diff --git a/kcontrol/arts/arts.h b/kcontrol/arts/arts.h index 80df5bd8e..4e4b4fd81 100644 --- a/kcontrol/arts/arts.h +++ b/kcontrol/arts/arts.h @@ -43,7 +43,7 @@ #include "hardwaretab.h" -class KProcess; +class TDEProcess; class DeviceManager; class KArtsModule : public KCModule @@ -67,8 +67,8 @@ private slots: void slotChanged(); void slotTestSound(); - void slotArtsdExited(KProcess* proc); - void slotProcessArtsdOutput(KProcess* p, char* buf, int len); + void slotArtsdExited(TDEProcess* proc); + void slotProcessArtsdOutput(TDEProcess* p, char* buf, int len); //void slotStartServerChanged(); private: diff --git a/kcontrol/arts/krichtextlabel.cpp b/kcontrol/arts/krichtextlabel.cpp index 0a188a475..6543b3690 100644 --- a/kcontrol/arts/krichtextlabel.cpp +++ b/kcontrol/arts/krichtextlabel.cpp @@ -40,14 +40,14 @@ static TQString qrichtextify( const TQString& text ) KRichTextLabel::KRichTextLabel( const TQString &text , TQWidget *parent, const char *name ) : TQLabel ( parent, name ) { - m_defaultWidth = TQMIN(500, KGlobalSettings::desktopGeometry(this).width()*3/5); + m_defaultWidth = TQMIN(500, TDEGlobalSettings::desktopGeometry(this).width()*3/5); setAlignment( TQt::WordBreak ); setText(text); } KRichTextLabel::KRichTextLabel( TQWidget *parent, const char *name ) : TQLabel ( parent, name ) { - m_defaultWidth = TQMIN(500, KGlobalSettings::desktopGeometry(this).width()*3/5); + m_defaultWidth = TQMIN(500, TDEGlobalSettings::desktopGeometry(this).width()*3/5); setAlignment( TQt::WordBreak ); } |