[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdeaccessibility/kttsd/kttsd
From:       Dirk Mueller <mueller () kde ! org>
Date:       2006-01-09 16:16:46
Message-ID: 1136823406.105258.29271.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 496062 by mueller:

remove broken getrealpath() implementation


 M  +2 -12     speaker.cpp  
 M  +0 -5      speaker.h  


--- branches/KDE/3.5/kdeaccessibility/kttsd/kttsd/speaker.cpp #496061:496062
@@ -487,7 +487,7 @@
                         // See if synthesis is completed.
                         if (it->plugin->getState() == psFinished)
                         {
-                            it->audioUrl = \
getRealFilePath(it->plugin->getFilename()); +                            it->audioUrl \
                = KStandardDirs::realFilePath(it->plugin->getFilename());
                             // kdDebug() << "Speaker::doUtterances: synthesized \
filename: " << it->audioUrl << endl;  it->plugin->ackFinished();
                             it->state = usSynthed;
@@ -1492,20 +1492,10 @@
     tempFile.close();
     QFile::remove(waveFile);
     // kdDebug() << "Speaker::makeSuggestedFilename: Suggesting filename: " << \
                waveFile << endl;
-    return getRealFilePath(waveFile);
+    return KStandardDirs::realFilePath(waveFile);
 }
 
 /**
- * Get the real path of a filename and convert it to local encoding.
- */
-QString Speaker::getRealFilePath(const QString filename)
-{
-    char real[PATH_MAX];
-    realpath(QFile::encodeName(filename),real);
-    return QFile::decodeName(real);
-}
-
-/**
  * Creates and returns a player object based on user option.
  */
 Player* Speaker::createPlayerObject()
--- branches/KDE/3.5/kdeaccessibility/kttsd/kttsd/speaker.h #496061:496062
@@ -513,11 +513,6 @@
         QString makeSuggestedFilename();
 
         /**
-        * Get the real path of a filename and convert it to local encoding.
-        */
-        QString getRealFilePath(const QString filename);
-
-        /**
         * Creates and returns a player object based on user option.
         */
         Player* createPlayerObject();


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic