int main(int argc, char *argv[])
{
- QString serverUrl = "http://localhost/tim/index.php";
- QString tcphost = "localhost";
+ QString serverUrl = "http://aptx.dyndns.org/~aptx/tim-server/";
+ QString tcphost = "aptx.dyndns.org";
int tcpport = 8547;
QApplication app(argc, argv);
QCoreApplication::setApplicationName("Tim Game");
+ if (app.arguments().size() >= 4)
+ {
+ serverUrl = app.arguments()[1];
+ tcphost = app.arguments()[2];
+ tcpport = app.arguments()[3].toInt();
+ }
+
TimGame timGame(serverUrl);
ChatClient chatClient(tcphost, tcpport);
XmlListModel {
id: scoreModel
- source: "http://localhost/tim/index.php?a=score"
+ source: timGame.serverUrl + "?a=score"
query: "/message/scores/entry"
XmlRole { name: "position"; query: "position/string()" }