Renamed irw* -> irwi
authorJari Jarvi <t7jaja00@students.oamk.fi>
Mon, 24 May 2010 06:48:21 +0000 (09:48 +0300)
committerJari Jarvi <t7jaja00@students.oamk.fi>
Mon, 24 May 2010 06:48:21 +0000 (09:48 +0300)
Commented setSocketOption(... because it is not supported by qt 4.5

src/irctrl.cpp
src/irw.desktop [deleted file]
src/irw.pro [deleted file]
src/irwi.desktop [new file with mode: 0644]
src/irwi.pro [new file with mode: 0644]

index 0f98b8a..6facb4e 100644 (file)
@@ -22,7 +22,7 @@ IrCtrl::~IrCtrl()
 void IrCtrl::genericSendCmd(const QString &commandName)
 {
     QTcpSocket sock(this);
-    sock.setSocketOption(QAbstractSocket::LowDelayOption, 1);
+//    sock.setSocketOption(QAbstractSocket::LowDelayOption, 1);
     sock.connectToHost(QHostAddress::LocalHost, LIRC_PORT,
             QIODevice::WriteOnly|QIODevice::Unbuffered);
     sock.waitForConnected(-1);
@@ -52,7 +52,7 @@ void IrCtrl::sendCmd3(bool)
 
 void IrCtrl::sendCmd4(bool)
 {
-    genericSendCmd("POWER");
+    genericSendCmd("ON/OFF");
 }
 
 void IrCtrl::sendCmd5(bool)
diff --git a/src/irw.desktop b/src/irw.desktop
deleted file mode 100644 (file)
index 0bf5834..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=QtIrreco Widget
-Comment=QtIrreco Widget
-Type=qt
-X-Path=irw
-X-Multiple-Instances=false
-X-home-applet-minwidth=100
-X-home-applet-minheight=72
-Name[en_US]=QtIrreco Widget
diff --git a/src/irw.pro b/src/irw.pro
deleted file mode 100644 (file)
index daf7e5f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-TEMPLATE = app
-
-SOURCES += main.cpp
-SOURCES += mainwidget.cpp
-SOURCES += irctrl.cpp
-SOURCES += settingsdlg.cpp
-HEADERS += mainwidget.h
-HEADERS += irctrl.h
-HEADERS += settingsdlg.h
-
-include(qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.pri)
-
-desktop.path = /usr/share/applications/hildon-home
-desktop.files = qt-homescreen-example.desktop
-
-target.path = /usr/lib/hildon-desktop
-INSTALLS += target desktop
-
-QT += network
-
diff --git a/src/irwi.desktop b/src/irwi.desktop
new file mode 100644 (file)
index 0000000..5d1b090
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=QtIrreco Widget
+Comment=QtIrreco Widget
+Type=qt
+X-Path=irwi
+X-Multiple-Instances=false
+X-home-applet-minwidth=100
+X-home-applet-minheight=72
+Name[en_US]=QtIrreco Widget
diff --git a/src/irwi.pro b/src/irwi.pro
new file mode 100644 (file)
index 0000000..daf7e5f
--- /dev/null
@@ -0,0 +1,20 @@
+TEMPLATE = app
+
+SOURCES += main.cpp
+SOURCES += mainwidget.cpp
+SOURCES += irctrl.cpp
+SOURCES += settingsdlg.cpp
+HEADERS += mainwidget.h
+HEADERS += irctrl.h
+HEADERS += settingsdlg.h
+
+include(qmaemo5homescreenadaptor/qmaemo5homescreenadaptor.pri)
+
+desktop.path = /usr/share/applications/hildon-home
+desktop.files = qt-homescreen-example.desktop
+
+target.path = /usr/lib/hildon-desktop
+INSTALLS += target desktop
+
+QT += network
+