-rw-r--r-- | noncore/tools/remote/lirchandler.cpp | 22 | ||||
-rw-r--r-- | noncore/tools/remote/lirchandler.h | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/noncore/tools/remote/lirchandler.cpp b/noncore/tools/remote/lirchandler.cpp index f44806e..263b740 100644 --- a/noncore/tools/remote/lirchandler.cpp +++ b/noncore/tools/remote/lirchandler.cpp | |||
@@ -51,3 +51,3 @@ bool LircHandler::connectLirc(void) | |||
51 | { | 51 | { |
52 | QMessageBox *mb = new QMessageBox(QObject::tr("Error"), | 52 | QMessageBox mb(QObject::tr("Error"), |
53 | QObject::tr("Unable to create socket"), | 53 | QObject::tr("Unable to create socket"), |
@@ -57,3 +57,3 @@ bool LircHandler::connectLirc(void) | |||
57 | QMessageBox::NoButton); | 57 | QMessageBox::NoButton); |
58 | mb->exec(); | 58 | mb.exec(); |
59 | perror("LircHandler::connectLirc"); | 59 | perror("LircHandler::connectLirc"); |
@@ -64,3 +64,3 @@ bool LircHandler::connectLirc(void) | |||
64 | { | 64 | { |
65 | QMessageBox *mb = new QMessageBox(QObject::tr("Error"), | 65 | QMessageBox mb(QObject::tr("Error"), |
66 | QObject::tr("Could not connect to lircd"), | 66 | QObject::tr("Could not connect to lircd"), |
@@ -70,3 +70,3 @@ bool LircHandler::connectLirc(void) | |||
70 | QMessageBox::NoButton); | 70 | QMessageBox::NoButton); |
71 | mb->exec(); | 71 | mb.exec(); |
72 | perror("LircHandler::connectLirc"); | 72 | perror("LircHandler::connectLirc"); |
@@ -159,3 +159,3 @@ QStringList LircHandler::getRemotes(void) | |||
159 | { | 159 | { |
160 | QMessageBox *mb = new QMessageBox(QObject::tr("Error"), | 160 | QMessageBox mb(QObject::tr("Error"), |
161 | QObject::tr("Bad packet while communicating with lircd"), | 161 | QObject::tr("Bad packet while communicating with lircd"), |
@@ -165,3 +165,3 @@ QStringList LircHandler::getRemotes(void) | |||
165 | QMessageBox::NoButton); | 165 | QMessageBox::NoButton); |
166 | mb->exec(); | 166 | mb.exec(); |
167 | perror("LircHandler::getRemotes"); | 167 | perror("LircHandler::getRemotes"); |
@@ -210,3 +210,3 @@ QStringList LircHandler::getButtons(const char *remoteName) | |||
210 | { | 210 | { |
211 | QMessageBox *mb = new QMessageBox(QObject::tr("Error"), | 211 | QMessageBox mb(QObject::tr("Error"), |
212 | QObject::tr("Bad packet while communicating with lircd"), | 212 | QObject::tr("Bad packet while communicating with lircd"), |
@@ -216,3 +216,3 @@ QStringList LircHandler::getButtons(const char *remoteName) | |||
216 | QMessageBox::NoButton); | 216 | QMessageBox::NoButton); |
217 | mb->exec(); | 217 | mb.exec(); |
218 | perror("LircHandler::getRemotes"); | 218 | perror("LircHandler::getRemotes"); |
@@ -227,3 +227,3 @@ QStringList LircHandler::getButtons(const char *remoteName) | |||
227 | 227 | ||
228 | int LircHandler::sendIR(const char *irbutton) | 228 | int LircHandler::sendIR(const char *lircaction) |
229 | { | 229 | { |
@@ -234,6 +234,6 @@ int LircHandler::sendIR(const char *irbutton) | |||
234 | printf("fd2: %d\n", fd); | 234 | printf("fd2: %d\n", fd); |
235 | printf("%s", irbutton); | 235 | printf("%s", lircaction); |
236 | 236 | ||
237 | printf("1\n"); | 237 | printf("1\n"); |
238 | printf("%d\n", write(fd, irbutton, strlen(irbutton) ) ); | 238 | printf("%d\n", write(fd, lircaction, strlen(lircaction) ) ); |
239 | printf("2\n"); | 239 | printf("2\n"); |
diff --git a/noncore/tools/remote/lirchandler.h b/noncore/tools/remote/lirchandler.h index 29894b4..c7665cb 100644 --- a/noncore/tools/remote/lirchandler.h +++ b/noncore/tools/remote/lirchandler.h | |||
@@ -31,3 +31,3 @@ public: | |||
31 | QStringList getButtons(const char *remoteName); | 31 | QStringList getButtons(const char *remoteName); |
32 | int sendIR(const char *irbutton); | 32 | int sendIR(const char *lircaction); |
33 | bool startLircd(void); | 33 | bool startLircd(void); |