/[debian]/teleschorsch/branches/upstream/current/main.cpp
ViewVC logotype

Diff of /teleschorsch/branches/upstream/current/main.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 580 by gregoa, Thu Mar 1 23:40:12 2007 UTC revision 581 by gregoa, Fri Mar 2 15:15:34 2007 UTC
# Line 134  QString substitudeStaticUrl(const QStrin Line 134  QString substitudeStaticUrl(const QStrin
134                          lastPos = pos+1;                          lastPos = pos+1;
135                  }                  }
136          }          }
137    
138            // Evaluate staticUrl - it might be dynamic despite its name :-)
139            if (result.left(1) == "`" && result.right(1) == "`") {
140                    QProcess evalUrl(0);
141                    QString command = "/bin/sh -c \"echo " + result + "\"";
142                    evalUrl.start(command);
143                    if (evalUrl.waitForFinished()) {
144                            QByteArray newResult = evalUrl.readAllStandardOutput();
145                            if (result != newResult) {result = newResult.trimmed();}
146                    }
147            }
148          return result;          return result;
149  }  }
150    
# Line 198  bool MainDialog::startAction() { Line 209  bool MainDialog::startAction() {
209                  QStringList arguments;                  QStringList arguments;
210                  arguments.append(substitudeStaticUrl(channel.staticUrl, date));                  arguments.append(substitudeStaticUrl(channel.staticUrl, date));
211                  appendPlayerOffsetOption(channel.player, teOffset->time(), arguments);                  appendPlayerOffsetOption(channel.player, teOffset->time(), arguments);
                 // arguments << "-style" << "motif";  
212                  QProcess player(this);                  QProcess player(this);
213                  qDebug() << channel.player << arguments;                  qDebug() << channel.player << arguments;
214                  player.start(channel.player, arguments);                  player.start(channel.player, arguments);

Legend:
Removed from v.580  
changed lines
  Added in v.581

  ViewVC Help
Powered by ViewVC 1.1.26