~edubuntu-italc-devel/italc/italc-intrepid

« back to all changes in this revision

Viewing changes to debian/patches/03_remoteica.patch

  • Committer: Stéphane graber
  • Date: 2008-07-07 12:31:49 UTC
  • Revision ID: stgraber@ubuntu.com-20080707123149-n0lvoe7s052e45zi
Update for 1.0.9-rc4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh /usr/share/dpatch/dpatch-run
2
 
## 03_remoteica.patch by  <stgraber@ubuntu.com>
3
 
##
4
 
## All lines beginning with `## DP:' are a description of the patch.
5
 
## DP: Allow support of remote ISD server
6
 
 
7
 
@DPATCH@
8
 
diff -Nrup ../../../package/italc-1.0.9-rc2/ica/src/isd_server.cpp ../ica/src/isd_server.cpp
9
 
--- ../../../package/italc-1.0.9-rc2/ica/src/isd_server.cpp     2008-04-30 15:40:32.000000000 +0200
10
 
+++ ../ica/src/isd_server.cpp   2008-06-04 13:20:34.000000000 +0200
11
 
@@ -59,7 +59,7 @@ isdServer::isdServer( const quint16 _ivs
12
 
        m_lockWidget( NULL )
13
 
 {
14
 
        if( __isd_server ||
15
 
-                       listen( QHostAddress::LocalHost, __isd_port ) == FALSE )
16
 
+                       listen( QHostAddress::Any, __isd_port ) == FALSE )
17
 
        {
18
 
                // uh oh, already an ISD running or port isn't available...
19
 
                qCritical( "isdServer::isdServer(...): "
20
 
diff -Nrup ../../../package/italc-1.0.9-rc2/ima/italc.1 ../ima/italc.1
21
 
--- ../../../package/italc-1.0.9-rc2/ima/italc.1        2008-02-01 15:46:07.000000000 +0100
22
 
+++ ../ima/italc.1      2008-06-04 13:23:26.000000000 +0200
23
 
@@ -20,6 +20,10 @@ Directly remote-control the specified ho
24
 
 .IP
25
 
 Set port to which iTALC should connect in order to contact the local iTALC-service-daemon. Default: 5800
26
 
 .
27
 
+.IP "\fB\-isdhost\fP \fIip\fP
28
 
+.IP
29
 
+Set the host to which iTALC should connect in order to contact the local iTALC-service-daemon. Default: localhost
30
 
+.
31
 
 .PP
32
 
 .SH SEE ALSO
33
 
 .IR ica (1),
34
 
diff -Nrup ../../../package/italc-1.0.9-rc2/ima/src/main.cpp ../ima/src/main.cpp
35
 
--- ../../../package/italc-1.0.9-rc2/ima/src/main.cpp   2008-05-06 16:16:39.000000000 +0200
36
 
+++ ../ima/src/main.cpp 2008-06-04 13:33:04.000000000 +0200
37
 
@@ -42,6 +42,7 @@ QString __default_domain;
38
 
 int __demo_quality = 0;
39
 
 
40
 
 int __isd_port = PortOffsetISD;
41
 
+QString __isd_host = "127.0.0.1";
42
 
 
43
 
 
44
 
 // good old main-function... initializes qt-app and starts iTALC
45
 
@@ -148,6 +149,11 @@ int main( int argc, char * * argv )
46
 
                {
47
 
                        __isd_port = arg_it.next().toInt();
48
 
                }
49
 
+               else if( a == "-isdhost" && arg_it.hasNext() )
50
 
+               {
51
 
+                       __isd_host = arg_it.next();
52
 
+               }
53
 
+
54
 
        }
55
 
 
56
 
 
57
 
diff -Nrup ../../../package/italc-1.0.9-rc2/ima/src/main_window.cpp ../ima/src/main_window.cpp
58
 
--- ../../../package/italc-1.0.9-rc2/ima/src/main_window.cpp    2008-05-21 11:17:31.000000000 +0200
59
 
+++ ../ima/src/main_window.cpp  2008-06-04 13:52:00.000000000 +0200
60
 
@@ -64,6 +64,7 @@ QSystemTrayIcon * __systray_icon = NULL;
61
 
 
62
 
 
63
 
 extern int __isd_port;
64
 
+extern QString __isd_host;
65
 
 
66
 
 
67
 
 bool mainWindow::ensureConfigPathExists( void )
68
 
@@ -364,7 +365,7 @@ mainWindow::mainWindow( int _rctrl_scree
69
 
                break;
70
 
        }
71
 
        m_localISD = new isdConnection( QHostAddress(
72
 
-                               QHostAddress::LocalHost).toString() +
73
 
+                               __isd_host ).toString() +
74
 
                                        ":" + QString::number( __isd_port ) );
75
 
        if( m_localISD->open() != isdConnection::Connected )
76
 
        {