[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r3169: The Glider binary will probably want some command line argum (vidalia/trunk/src/vidalia)



Author: edmanm
Date: 2008-09-29 23:06:22 -0400 (Mon, 29 Sep 2008)
New Revision: 3169

Modified:
   vidalia/trunk/src/vidalia/gliderprocess.cpp
   vidalia/trunk/src/vidalia/gliderprocess.h
   vidalia/trunk/src/vidalia/mainwindow.cpp
Log:
The Glider binary will probably want some command line arguments, so support
those too.


Modified: vidalia/trunk/src/vidalia/gliderprocess.cpp
===================================================================
--- vidalia/trunk/src/vidalia/gliderprocess.cpp	2008-09-30 02:29:17 UTC (rev 3168)
+++ vidalia/trunk/src/vidalia/gliderprocess.cpp	2008-09-30 03:06:22 UTC (rev 3169)
@@ -17,9 +17,10 @@
 }
 
 void
-GliderProcess::checkForUpdates(const QString &gliderExecutable)
+GliderProcess::checkForUpdates(const QString &gliderExecutable,
+                               const QStringList &args)
 {
-  start(gliderExecutable);
+  start(gliderExecutable, args);
 }
 
 int

Modified: vidalia/trunk/src/vidalia/gliderprocess.h
===================================================================
--- vidalia/trunk/src/vidalia/gliderprocess.h	2008-09-30 02:29:17 UTC (rev 3168)
+++ vidalia/trunk/src/vidalia/gliderprocess.h	2008-09-30 03:06:22 UTC (rev 3169)
@@ -13,6 +13,7 @@
 
 #include <QProcess>
 #include <QDateTime>
+#include <QStringList>
 
 
 class GliderProcess : public QProcess
@@ -25,9 +26,11 @@
   GliderProcess(QObject *parent = 0);
 
   /** Begin a check for software updates using the Glider binary specified
-   * by <b>gliderExecutable</b>.
+   * by <b>gliderExecutable</b>. The arguments in <b>args</b> will be given
+   * to Glider on the command line.
    */
-  void checkForUpdates(const QString &gliderExecutable);
+  void checkForUpdates(const QString &gliderExecutable,
+                       const QStringList &args);
 
   /** Return the time at which we should next check for available updates, 
    * given the last we checked was at <b>lastCheckedAt</b>.

Modified: vidalia/trunk/src/vidalia/mainwindow.cpp
===================================================================
--- vidalia/trunk/src/vidalia/mainwindow.cpp	2008-09-30 02:29:17 UTC (rev 3168)
+++ vidalia/trunk/src/vidalia/mainwindow.cpp	2008-09-30 03:06:22 UTC (rev 3169)
@@ -1470,7 +1470,8 @@
    * be done in the background, notifying the user only if there are
    * updates to be installed.
    */
-  _gliderProcess.checkForUpdates("takemeforarideonyourmagicglider.exe");
+  _gliderProcess.checkForUpdates("takemeforarideonyourmagicglider.exe",
+                                 QStringList() << "plztohasnewtor");
 
   /* XXX: The stuff below should be moved to another method that gets called
    *      when the glider check is complete.