From: Ionutz Borcoman Date: Sat, 12 Mar 2011 18:08:00 +0000 (+0200) Subject: moved the source back to src X-Git-Tag: 0.8.2~5 X-Git-Url: http://vcs.maemo.org/git/?a=commitdiff_plain;h=49c2b95c2e9bfe342d822a9534100bafeed308d4;p=simple-xmbc-rem moved the source back to src --- diff --git a/simplexbmcremote-0.8.1/constants.h b/simplexbmcremote-0.8.1/constants.h deleted file mode 100644 index ce76f3e..0000000 --- a/simplexbmcremote-0.8.1/constants.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef CONSTANTS_H -#define CONSTANTS_H - -// QCoreApplication info -#define APPLICATION_NAME "simplexbmcremote" -#define ORGANIZATION_NAME "Ionutz Borcoman" - -// QSettings keys -#define SETUP_XBMC_SERVER "xbmc/server" -#define SETUP_XBMC_SERVER_DEFAULT "localhost" -#define SETUP_XBMC_PORT "xbmc/port" -#define SETUP_XBMC_PORT_DEFAULT "8080" - -#define SETUP_NOTIFICATION_TIMEOUT "notification/timeout" -#define SETUP_NOTIFICATION_TIMEOUT_DEFAULT 3000 - -#endif // CONSTANTS_H diff --git a/simplexbmcremote-0.8.1/debian/README b/simplexbmcremote-0.8.1/debian/README deleted file mode 100644 index a7886a2..0000000 --- a/simplexbmcremote-0.8.1/debian/README +++ /dev/null @@ -1,9 +0,0 @@ -The Debian Package simplexbmcremote ------------------------------------ - -A simple application for controlling XBMC remotely while watching movies. Uses -HTTP XBMC protocol to communicate with XBMC. Can navigate your video -collection, start/pause/stop movies, skip forward and back, control the volume, -cycle through the existing subtitles and languages. - - -- Ionutz Borcoman Mon, 31 Jan 2011 14:34:36 +0200 diff --git a/simplexbmcremote-0.8.1/debian/changelog b/simplexbmcremote-0.8.1/debian/changelog deleted file mode 100644 index 2a36f34..0000000 --- a/simplexbmcremote-0.8.1/debian/changelog +++ /dev/null @@ -1,11 +0,0 @@ -simplexbmcremote (0.8.1) unstable; urgency=low - - * Preparing for garage upload. - - -- Ionutz Borcoman Wed, 09 Mar 2011 09:16:53 +0200 - -simplexbmcremote (0.8.0) unstable; urgency=low - - * Initial Release. - - -- Ionutz Borcoman Mon, 31 Jan 2011 14:34:36 +0200 diff --git a/simplexbmcremote-0.8.1/debian/compat b/simplexbmcremote-0.8.1/debian/compat deleted file mode 100644 index 7ed6ff8..0000000 --- a/simplexbmcremote-0.8.1/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/simplexbmcremote-0.8.1/debian/control b/simplexbmcremote-0.8.1/debian/control deleted file mode 100644 index 8bd3cfb..0000000 --- a/simplexbmcremote-0.8.1/debian/control +++ /dev/null @@ -1,68 +0,0 @@ -Source: simplexbmcremote -Section: user/multimedia -Priority: optional -Maintainer: Ionutz Borcoman -Build-Depends: debhelper (>= 5), libqt4-dev -Standards-Version: 3.7.3 -Homepage: https://garage.maemo.org/projects/simple-xmbc-rem/ - -Package: simplexbmcremote -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: simple xbmc remote control - A simple application for controlling XBMC remotely (using HTTP) while watching movies. - . - Can navigate your video collection, start/pause/stop movies, skip forward and back, control the volume, switch the existing subtitles and languages. -XSBC-Bugtracker: https://garage.maemo.org/tracker/?atid=7118&group_id=2102 -XSBC-Maemo-Display-Name: Simple XBMC Remote -XB-Maemo-Upgrade-Description: Initial release for Maemo. -XB-Maemo-Icon-26: - iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgI - fAhkiAAAAAlwSFlzAAAE/wAABP8BbsPM1QAAABl0RVh0U29mdHdhcmUAd3d3 - Lmlua3NjYXBlLm9yZ5vuPBoAAAgOSURBVGiB1Zo9bBvJGYbfb3a5S1LUUuKf - YimADAmCCgOCZdE2BMRdckkV3RUuc0CQS50iRSpXARJccUX6HAJcShVnp0oO - 1xg+gIFMmYZsAwZsWYZxkkOK4oVL0txd7syXQlxGP6REUrIO93aUZmefb37f - mW+JmXFWra+vRwF8AOAWM08BuEREPwZwiZmJiHaY+VsAb4lom4i+0XX9q4WF - h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YxTnkHV69evU3InpYrVbZ8zyEw+Fz34gGkWVZCIfD8DwvyBk83Nzc/Pxg - mWO304VCYVIptS6EyKTTaaFpGmzb7mxMF6VYLAbLsiClxO7urlJKlYQQS4uL - izsHyx1zb4uLizvMvKKU8iuVilJKwbIsjI2NDZ0LG0REhLGxMViWBWZGm8Fn - 5pWj8F0DAIBsNrvGzJ+0Wi2xt7enfN9HNBpFMpk8k2M9TUIIJJNJRKPR4Hgb - JDg+6ZYbAE7JkbWzNH8NcgWBkarX62g0GgMdRE4SEWFkZASxWAxCCHieh0ql - opjZV0r9NpvNftHz2WGTfFJK2LaNwEMNq0gkAsuyOiZy0CTfmdOsBxPXjuOc - 2ivtm7XOZhkMyfeWZg3Ub6JbSgkpZfB5AYB9GyyEQPsThE7ZC0t0H9QP9lOD - o/rBfuzRTd/n5zb/A5T81V+Urp9tAAAAAElFTkSuQmCC diff --git a/simplexbmcremote-0.8.1/debian/copyright b/simplexbmcremote-0.8.1/debian/copyright deleted file mode 100644 index d8a04a3..0000000 --- a/simplexbmcremote-0.8.1/debian/copyright +++ /dev/null @@ -1,33 +0,0 @@ -This package was debianized by Ionutz Borcoman on -Mon, 31 Jan 2011 14:34:36 +0200. - -It was downloaded from https://garage.maemo.org/projects/simple-xmbc-rem/ - -Upstream Author(s): - - Ionutz Borcoman - -Copyright: - - Copyright (C) 2011 Ionutz Borcoman - -License: - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -On Debian systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The Debian packaging is (C) 2011, Ionutz Borcoman and -is licensed under the GPL, see above. diff --git a/simplexbmcremote-0.8.1/debian/optify b/simplexbmcremote-0.8.1/debian/optify deleted file mode 100644 index 865faf1..0000000 --- a/simplexbmcremote-0.8.1/debian/optify +++ /dev/null @@ -1 +0,0 @@ -auto diff --git a/simplexbmcremote-0.8.1/debian/rules b/simplexbmcremote-0.8.1/debian/rules deleted file mode 100755 index 9a1cade..0000000 --- a/simplexbmcremote-0.8.1/debian/rules +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/make -f -APPNAME := simplexbmcremote -builddir: - mkdir -p builddir - -builddir/Makefile: builddir - cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro - -build: build-stamp - -build-stamp: builddir/Makefile - dh_testdir - # Add here commands to compile the package. - cd builddir && $(MAKE) - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp - # Add here commands to clean up after the build process. - rm -rf builddir - dh_clean -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/your_appname - cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installdocs - dh_installexamples - dh_installman - dh_link -# dh_strip --dbg-package=appname-dbg - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/simplexbmcremote-0.8.1/deployment.pri b/simplexbmcremote-0.8.1/deployment.pri deleted file mode 100644 index 04b1b16..0000000 --- a/simplexbmcremote-0.8.1/deployment.pri +++ /dev/null @@ -1,111 +0,0 @@ -# checksum 0x2939 version 0x20001 -# This file was generated by an application wizard of Qt Creator. -# The code below handles deployment to Symbian and Maemo, aswell as copying -# of the application data to shadow build directories on desktop. -# It is recommended not to modify this file, since newer versions of Qt Creator -# may offer an updated version of it. - -defineTest(qtcAddDeployment) { -for(deploymentfolder, DEPLOYMENTFOLDERS) { - item = item$${deploymentfolder} - itemsources = $${item}.sources - $$itemsources = $$eval($${deploymentfolder}.source) - itempath = $${item}.path - $$itempath= $$eval($${deploymentfolder}.target) - export($$itemsources) - export($$itempath) - DEPLOYMENT += $$item -} - -MAINPROFILEPWD = $$PWD - -symbian { - ICON = $${TARGET}.svg - TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 - contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone - contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices -} else:win32 { - copyCommand = - for(deploymentfolder, DEPLOYMENTFOLDERS) { - source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) - source = $$replace(source, /, \\) - sourcePathSegments = $$split(source, \\) - target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) - target = $$replace(target, /, \\) - !isEqual(source,$$target) { - !isEmpty(copyCommand):copyCommand += && - copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" - } - } - !isEmpty(copyCommand) { - copyCommand = @echo Copying application data... && $$copyCommand - copydeploymentfolders.commands = $$copyCommand - first.depends = $(first) copydeploymentfolders - export(first.depends) - export(copydeploymentfolders.commands) - QMAKE_EXTRA_TARGETS += first copydeploymentfolders - } -} else:unix { - maemo5 { - installPrefix = /opt/usr - desktopfile.path = /usr/share/applications/hildon - } else { - installPrefix = /usr/local - desktopfile.path = /usr/share/applications - copyCommand = - for(deploymentfolder, DEPLOYMENTFOLDERS) { - source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) - source = $$replace(source, \\, /) - macx { - target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) - } else { - target = $$OUT_PWD/$$eval($${deploymentfolder}.target) - } - target = $$replace(target, \\, /) - sourcePathSegments = $$split(source, /) - targetFullPath = $$target/$$last(sourcePathSegments) - !isEqual(source,$$targetFullPath) { - !isEmpty(copyCommand):copyCommand += && - copyCommand += $(MKDIR) \"$$target\" - copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" - } - } - !isEmpty(copyCommand) { - copyCommand = @echo Copying application data... && $$copyCommand - copydeploymentfolders.commands = $$copyCommand - first.depends = $(first) copydeploymentfolders - export(first.depends) - export(copydeploymentfolders.commands) - QMAKE_EXTRA_TARGETS += first copydeploymentfolders - } - } - for(deploymentfolder, DEPLOYMENTFOLDERS) { - item = item$${deploymentfolder} - itemfiles = $${item}.files - $$itemfiles = $$eval($${deploymentfolder}.source) - itempath = $${item}.path - $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target) - export($$itemfiles) - export($$itempath) - INSTALLS += $$item - } - icon.files = $${TARGET}.png - icon.path = /usr/share/icons/hicolor/64x64/apps - desktopfile.files = $${TARGET}.desktop - target.path = $${installPrefix}/bin - export(icon.files) - export(icon.path) - export(desktopfile.files) - export(desktopfile.path) - export(target.path) - INSTALLS += desktopfile icon target -} - -export (ICON) -export (INSTALLS) -export (DEPLOYMENT) -export (TARGET.EPOCHEAPSIZE) -export (TARGET.CAPABILITY) -export (LIBS) -export (QMAKE_EXTRA_TARGETS) -} diff --git a/simplexbmcremote-0.8.1/genericnotify.cpp b/simplexbmcremote-0.8.1/genericnotify.cpp deleted file mode 100644 index bdefdb7..0000000 --- a/simplexbmcremote-0.8.1/genericnotify.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifdef Q_WS_MAEMO_5 -#include -#else -#include -#endif - -#include "genericnotify.h" -#include "constants.h" -#include - -void notify::init() -{ -#ifdef Q_WS_MAEMO_5 -#else - /* Init libnotify library */ - notify_init(APPLICATION_NAME); -#endif -} - -void notify::notify(const QString& msg) -{ -#ifdef Q_WS_MAEMO_5 - QMaemo5InformationBox::information (0, msg); -#else - /* Create notification */ - NotifyNotification *notification = notify_notification_new(APPLICATION_NAME, qPrintable(msg), 0, 0); - if (notification) { - QSettings settings; - int timeout = settings.value(SETUP_NOTIFICATION_TIMEOUT, SETUP_NOTIFICATION_TIMEOUT_DEFAULT).toInt(); - - /* Set timeout */ - notify_notification_set_timeout(notification, timeout); - - /* Schedule notification for showing */ - if (!notify_notification_show(notification, NULL)) { - qDebug("Failed to send notification"); - } - - /* Clean up the memory */ - g_object_unref(notification); - } -#endif - qDebug(qPrintable(msg)); -} diff --git a/simplexbmcremote-0.8.1/genericnotify.h b/simplexbmcremote-0.8.1/genericnotify.h deleted file mode 100644 index 8a3143c..0000000 --- a/simplexbmcremote-0.8.1/genericnotify.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef GENERIC_NOTIFY_H -#define GENERIC_NOTIFY_H - -#include - -namespace notify -{ - void init(); - void notify(const QString& msg); -} - -#endif // GENERIC_NOTIFY_H diff --git a/simplexbmcremote-0.8.1/images/btn_down.png b/simplexbmcremote-0.8.1/images/btn_down.png deleted file mode 100644 index 5b3a5c2..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_down.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_enter.png b/simplexbmcremote-0.8.1/images/btn_enter.png deleted file mode 100644 index 0d9ec96..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_enter.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_left.png b/simplexbmcremote-0.8.1/images/btn_left.png deleted file mode 100644 index fdbc03d..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_left.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_mute.png b/simplexbmcremote-0.8.1/images/btn_mute.png deleted file mode 100644 index 384ef53..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_mute.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_next_language.png b/simplexbmcremote-0.8.1/images/btn_next_language.png deleted file mode 100644 index c0af03d..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_next_language.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_next_subtitle.png b/simplexbmcremote-0.8.1/images/btn_next_subtitle.png deleted file mode 100644 index bba6ea8..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_next_subtitle.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_play_pause.png b/simplexbmcremote-0.8.1/images/btn_play_pause.png deleted file mode 100644 index fcb98bb..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_play_pause.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_right.png b/simplexbmcremote-0.8.1/images/btn_right.png deleted file mode 100644 index ba61ee5..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_right.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_stop.png b/simplexbmcremote-0.8.1/images/btn_stop.png deleted file mode 100644 index 8601733..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_stop.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_up.png b/simplexbmcremote-0.8.1/images/btn_up.png deleted file mode 100644 index e93f5dd..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_up.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_volume_down.png b/simplexbmcremote-0.8.1/images/btn_volume_down.png deleted file mode 100644 index 0fbfe86..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_volume_down.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/btn_volume_up.png b/simplexbmcremote-0.8.1/images/btn_volume_up.png deleted file mode 100644 index 7ee36e9..0000000 Binary files a/simplexbmcremote-0.8.1/images/btn_volume_up.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/images/xbmc.svg b/simplexbmcremote-0.8.1/images/xbmc.svg deleted file mode 100644 index 52cfb9b..0000000 --- a/simplexbmcremote-0.8.1/images/xbmc.svg +++ /dev/null @@ -1,675 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - S - - - - - - - L - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/simplexbmcremote-0.8.1/main.cpp b/simplexbmcremote-0.8.1/main.cpp deleted file mode 100644 index 96abba8..0000000 --- a/simplexbmcremote-0.8.1/main.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include "mainwindow.h" -#include "constants.h" -#include "genericnotify.h" - -#include - -int main(int argc, char *argv[]) -{ - notify::init(); - - QApplication app(argc, argv); - app.setOrganizationName(APPLICATION_NAME); - app.setApplicationName(ORGANIZATION_NAME); - - MainWindow mainWindow; - mainWindow.setOrientation(MainWindow::ScreenOrientationLockPortrait); - mainWindow.showExpanded(); - - return app.exec(); -} diff --git a/simplexbmcremote-0.8.1/mainwindow.cpp b/simplexbmcremote-0.8.1/mainwindow.cpp deleted file mode 100644 index 985a62e..0000000 --- a/simplexbmcremote-0.8.1/mainwindow.cpp +++ /dev/null @@ -1,157 +0,0 @@ -// checksum 0xfd0b version 0x20001 -/* - This file was generated by the Mobile Qt Application wizard of Qt Creator. - MainWindow is a convenience class containing mobile device specific code - such as screen orientation handling. - It is recommended not to modify this file, since newer versions of Qt Creator - may offer an updated version of it. -*/ - -#include "mainwindow.h" -#include "ui_mainwindow.h" - -#include "setupdialog.h" -#include "xbmc.h" - -#include -#include - -#include - -#if defined(Q_OS_SYMBIAN) && defined(ORIENTATIONLOCK) -#include -#include -#include -#include -#endif // Q_OS_SYMBIAN && ORIENTATIONLOCK - -MainWindow::MainWindow(QWidget *parent) - : QMainWindow(parent), m_ui(new Ui::MainWindow) -{ - m_ui->setupUi(this); - m_xbmc = new Xbmc(this); -} - -MainWindow::~MainWindow() -{ - delete m_xbmc; - delete m_ui; -} - -void MainWindow::setOrientation(ScreenOrientation orientation) -{ -#ifdef Q_OS_SYMBIAN - if (orientation != ScreenOrientationAuto) { -#if defined(ORIENTATIONLOCK) - const CAknAppUiBase::TAppUiOrientation uiOrientation = - (orientation == ScreenOrientationLockPortrait) ? CAknAppUi::EAppUiOrientationPortrait - : CAknAppUi::EAppUiOrientationLandscape; - CAknAppUi* appUi = dynamic_cast (CEikonEnv::Static()->AppUi()); - TRAPD(error, - if (appUi) - appUi->SetOrientationL(uiOrientation); - ); - Q_UNUSED(error) -#else // ORIENTATIONLOCK - qWarning("'ORIENTATIONLOCK' needs to be defined on Symbian when locking the orientation."); -#endif // ORIENTATIONLOCK - } -#elif defined(Q_WS_MAEMO_5) - Qt::WidgetAttribute attribute; - switch (orientation) { - case ScreenOrientationLockPortrait: - attribute = Qt::WA_Maemo5PortraitOrientation; - break; - case ScreenOrientationLockLandscape: - attribute = Qt::WA_Maemo5LandscapeOrientation; - break; - case ScreenOrientationAuto: - default: - attribute = Qt::WA_Maemo5AutoOrientation; - break; - } - setAttribute(attribute, true); -#else // Q_OS_SYMBIAN - Q_UNUSED(orientation); -#endif // Q_OS_SYMBIAN -} - -void MainWindow::showExpanded() -{ -#ifdef Q_OS_SYMBIAN - showFullScreen(); -#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) - showMaximized(); -#else - show(); -#endif -} - -void MainWindow::on_actionSetup_triggered() -{ - SetupDialog dialog; - dialog.load(); - if(dialog.exec() == QDialog::Accepted) { - dialog.save(); - } -} - -void MainWindow::on_rightBtn_clicked() -{ - m_xbmc->actionRight(); -} - -void MainWindow::on_leftBtn_clicked() -{ - m_xbmc->actionLeft(); -} - -void MainWindow::on_upBtn_clicked() -{ - m_xbmc->actionUp(); -} - -void MainWindow::on_downBtn_clicked() -{ - m_xbmc->actionDown(); -} - -void MainWindow::on_playBtn_clicked() -{ - m_xbmc->actionPlay(); -} - -void MainWindow::on_muteBtn_clicked() -{ - m_xbmc->actionMute(); -} - -void MainWindow::on_volumeUpBtn_clicked() -{ - m_xbmc->actionVolumeUp(); -} - -void MainWindow::on_volumeDownBtn_clicked() -{ - m_xbmc->actionVolumeDown(); -} - -void MainWindow::on_nextSubtitleBtn_clicked() -{ - m_xbmc->actionNextSubtitle(); -} - -void MainWindow::on_nextLanguageBtn_clicked() -{ - m_xbmc->actionNextLanguage(); -} - -void MainWindow::on_selectButton_clicked() -{ - m_xbmc->actionSelect(); -} - -void MainWindow::on_stopBtn_clicked() -{ - m_xbmc->actionStop(); -} diff --git a/simplexbmcremote-0.8.1/mainwindow.h b/simplexbmcremote-0.8.1/mainwindow.h deleted file mode 100644 index 383c83d..0000000 --- a/simplexbmcremote-0.8.1/mainwindow.h +++ /dev/null @@ -1,61 +0,0 @@ -// checksum 0x9a77 version 0x20001 -/* - This file was generated by the Mobile Qt Application wizard of Qt Creator. - MainWindow is a convenience class containing mobile device specific code - such as screen orientation handling. - It is recommended not to modify this file, since newer versions of Qt Creator - may offer an updated version of it. -*/ - -#ifndef MAINWINDOW_H -#define MAINWINDOW_H - -#include - -#include "xbmc.h" - -namespace Ui { - class MainWindow; -} - -class MainWindow : public QMainWindow -{ - Q_OBJECT -public: - enum ScreenOrientation { - ScreenOrientationLockPortrait, - ScreenOrientationLockLandscape, - ScreenOrientationAuto - }; - - explicit MainWindow(QWidget *parent = 0); - virtual ~MainWindow(); - - void setOrientation(ScreenOrientation orientation); - void showExpanded(); - -private slots: - void on_actionSetup_triggered(); - - void on_rightBtn_clicked(); - void on_leftBtn_clicked(); - void on_upBtn_clicked(); - void on_downBtn_clicked(); - void on_selectButton_clicked(); - - void on_playBtn_clicked(); - void on_stopBtn_clicked(); - - void on_muteBtn_clicked(); - void on_volumeUpBtn_clicked(); - void on_volumeDownBtn_clicked(); - - void on_nextSubtitleBtn_clicked(); - void on_nextLanguageBtn_clicked(); - -private: - Ui::MainWindow *m_ui; - Xbmc* m_xbmc; -}; - -#endif // MAINWINDOW_H diff --git a/simplexbmcremote-0.8.1/mainwindow.ui b/simplexbmcremote-0.8.1/mainwindow.ui deleted file mode 100644 index ea5505e..0000000 --- a/simplexbmcremote-0.8.1/mainwindow.ui +++ /dev/null @@ -1,485 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 480 - 836 - - - - XBMC Net Movies RC - - - - - - - - - - - Qt::NoFocus - - - next subtitle - - - ... - - - - :/images/btn_next_subtitle.png:/images/btn_next_subtitle.png - - - - 92 - 92 - - - - - - - - Qt::NoFocus - - - next language - - - ... - - - - :/images/btn_next_language.png:/images/btn_next_language.png - - - - 92 - 92 - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - Qt::NoFocus - - - volume up - - - ... - - - - :/images/btn_volume_up.png:/images/btn_volume_up.png - - - - 92 - 92 - - - - - - - - Qt::NoFocus - - - volume down - - - ... - - - - :/images/btn_volume_down.png:/images/btn_volume_down.png - - - - 92 - 92 - - - - - - - - Qt::NoFocus - - - mute - - - ... - - - - :/images/btn_mute.png:/images/btn_mute.png - - - - 92 - 92 - - - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::NoFocus - - - up - - - ... - - - - :/images/btn_up.png:/images/btn_up.png - - - - 92 - 92 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::NoFocus - - - left - - - ... - - - - :/images/btn_left.png:/images/btn_left.png - - - - 92 - 92 - - - - - - - - Qt::NoFocus - - - pause - - - ... - - - - :/images/btn_play_pause.png:/images/btn_play_pause.png - - - - 133 - 133 - - - - - - - - Qt::NoFocus - - - right - - - ... - - - - :/images/btn_right.png:/images/btn_right.png - - - - 92 - 92 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::NoFocus - - - down - - - ... - - - - :/images/btn_down.png:/images/btn_down.png - - - - 92 - 92 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::NoFocus - - - stop - - - ... - - - - :/images/btn_stop.png:/images/btn_stop.png - - - - 92 - 92 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::NoFocus - - - select - - - ... - - - - :/images/btn_enter.png:/images/btn_enter.png - - - - 92 - 92 - - - - - - - - - - - - 0 - 0 - 480 - 25 - - - - - MainMenu - - - - - - - - Setup - - - - - true - - - Connect - - - - - - - - - diff --git a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/README b/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/README deleted file mode 100644 index a7886a2..0000000 --- a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/README +++ /dev/null @@ -1,9 +0,0 @@ -The Debian Package simplexbmcremote ------------------------------------ - -A simple application for controlling XBMC remotely while watching movies. Uses -HTTP XBMC protocol to communicate with XBMC. Can navigate your video -collection, start/pause/stop movies, skip forward and back, control the volume, -cycle through the existing subtitles and languages. - - -- Ionutz Borcoman Mon, 31 Jan 2011 14:34:36 +0200 diff --git a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/changelog b/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/changelog deleted file mode 100644 index 9f7bef8..0000000 --- a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/changelog +++ /dev/null @@ -1,11 +0,0 @@ -simplexbmcremote (0.8.0-1) unstable; urgency=low - - * Preparing for garage upload. - - -- Ionutz Borcoman Wed, 09 Mar 2011 09:16:53 +0200 - -simplexbmcremote (0.8.0) unstable; urgency=low - - * Initial Release. - - -- Ionutz Borcoman Mon, 31 Jan 2011 14:34:36 +0200 diff --git a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/compat b/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/compat deleted file mode 100644 index 7f8f011..0000000 --- a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/compat +++ /dev/null @@ -1 +0,0 @@ -7 diff --git a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/control b/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/control deleted file mode 100644 index a47b406..0000000 --- a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/control +++ /dev/null @@ -1,68 +0,0 @@ -Source: simplexbmcremote -Section: user/multimedia -Priority: optional -Maintainer: Ionutz Borcoman -Build-Depends: debhelper (>= 5), libqt4-dev -Standards-Version: 3.7.3 -Homepage: https://garage.maemo.org/projects/simple-xmbc-rem/ - -Package: simplexbmcremote -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: simple xbmc remote control - A simple application for controlling XBMC remotely (using HTTP) while watching movies. - . - Can navigate your video collection, start/pause/stop movies, skip forward and back, control the volume, switch the existing subtitles and languages. -XSBC-Bugtracker: https://garage.maemo.org/tracker/?atid=7118&group_id=2102 -XSBC-Maemo-Display-Name: Simple XBMC Remote -XB-Maemo-Upgrade-Description: Initial release for Maemo. -XB-Maemo-Icon-26: - iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgI - fAhkiAAAAAlwSFlzAAAE/wAABP8BbsPM1QAAABl0RVh0U29mdHdhcmUAd3d3 - Lmlua3NjYXBlLm9yZ5vuPBoAAAgOSURBVGiB1Zo9bBvJGYbfb3a5S1LUUuKf - YimADAmCCgOCZdE2BMRdckkV3RUuc0CQS50iRSpXARJccUX6HAJcShVnp0oO - 1xg+gIFMmYZsAwZsWYZxkkOK4oVL0txd7syXQlxGP6REUrIO93aUZmefb37f - mW+JmXFWra+vRwF8AOAWM08BuEREPwZwiZmJiHaY+VsAb4lom4i+0XX9q4WF - hcZZ303DBrC2tpYUQnwIYIWIfgYgDABEpDRNg6ZpQggBAFBKQUqppJRgZtEu - 5zLz10R0j5m/XFpaKl9IABsbGyOtVuv3AP4AICqEUKZpinA4DNM0EUD3klIK - ruvCcRy4rquUUgLAOwCfhkKhzwbtlb4DWF1d1WZnZ38D4I/MnDEMg2OxGJmm - CSIa5J0dMTNc10W9XmfP84iISgDubG5ufn779m15bgEUCoVJZr7LzNd1XVeW - ZYlwODwUdC85jgPbtpXv+wLAI9/3V27evPntac+dGkA+n79BRPeIaMKyLBoZ - GTkv5q5qNBqoVqtMRLsAVq5du/bvk8qfOGDz+fyviOiBECKTTCbfO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y0CTfmdOsBxPXjuOc - 2ivtm7XOZhkMyfeWZg3Ub6JbSgkpZfB5AYB9GyyEQPsThE7ZC0t0H9QP9lOD - o/rBfuzRTd/n5zb/A5T81V+Urp9tAAAAAElFTkSuQmCC diff --git a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/copyright b/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/copyright deleted file mode 100644 index f68c623..0000000 --- a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/copyright +++ /dev/null @@ -1,33 +0,0 @@ -This package was debianized by Ionutz Borcoman on -Mon, 31 Jan 2011 14:34:36 +0200. - -It was downloaded from https://garage.maemo.org/projects/simple-xmbc-rem/ - -Upstream Author(s): - - Ionutz Borcoman - -Copyright: - - Copyright (C) 2011 Ionutz Borcoman - -License: - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -On Debian systems, the complete text of the GNU General -Public License can be found in `/usr/share/common-licenses/GPL'. - -The Debian packaging is (C) 2011, Ionutz Borcoman and -is licensed under the GPL, see above. diff --git a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/rules b/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/rules deleted file mode 100755 index d6def77..0000000 --- a/simplexbmcremote-0.8.1/qtc_packaging/debian_fremantle/rules +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/make -f -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - - - - - -configure: configure-stamp -configure-stamp: - dh_testdir - # Add here commands to configure the package. - - touch configure-stamp - - -build: build-stamp - -build-stamp: configure-stamp - dh_testdir - - # Add here commands to compile the package. - $(MAKE) - #docbook-to-man debian/simplexbmcremote.sgml > simplexbmcremote.1 - - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - - # Add here commands to clean up after the build process. - $(MAKE) clean - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - - # Add here commands to install the package into debian/simplexbmcremote. - $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/simplexbmcremote install - - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples -# dh_install -# dh_installmenu -# dh_installdebconf -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_python -# dh_installinit -# dh_installcron -# dh_installinfo - dh_installman - dh_link - # dh_strip - dh_compress - dh_fixperms -# dh_perl -# dh_makeshlibs - dh_installdeb - dh_shlibdeps # Uncomment this line for publishing! - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/simplexbmcremote-0.8.1/setupdialog.cpp b/simplexbmcremote-0.8.1/setupdialog.cpp deleted file mode 100644 index a8ba697..0000000 --- a/simplexbmcremote-0.8.1/setupdialog.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "setupdialog.h" -#include "ui_setupdialog.h" - -#include "constants.h" - -#include - -SetupDialog::SetupDialog(QWidget *parent) : - QDialog(parent), - ui(new Ui::SetupDialog) -{ - ui->setupUi(this); -} - -SetupDialog::~SetupDialog() -{ - delete ui; -} - -void SetupDialog::save() -{ - QSettings settings; - settings.setValue(SETUP_XBMC_SERVER, ui->xbmcServerEdit->text()); - settings.setValue(SETUP_XBMC_PORT, ui->xbmcPortEdit->text()); -} - -void SetupDialog::load() -{ - QSettings settings; - ui->xbmcServerEdit->setText(settings.value(SETUP_XBMC_SERVER, SETUP_XBMC_SERVER_DEFAULT).toString()); - ui->xbmcPortEdit->setText(settings.value(SETUP_XBMC_PORT, SETUP_XBMC_PORT_DEFAULT).toString()); -} diff --git a/simplexbmcremote-0.8.1/setupdialog.h b/simplexbmcremote-0.8.1/setupdialog.h deleted file mode 100644 index aa76217..0000000 --- a/simplexbmcremote-0.8.1/setupdialog.h +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef SETUPDIALOG_H -#define SETUPDIALOG_H - -#include - -namespace Ui { - class SetupDialog; -} - -class SetupDialog : public QDialog -{ - Q_OBJECT - -public: - explicit SetupDialog(QWidget *parent = 0); - ~SetupDialog(); - void save(); - void load(); - -private: - Ui::SetupDialog *ui; -}; - -#endif // SETUPDIALOG_H diff --git a/simplexbmcremote-0.8.1/setupdialog.ui b/simplexbmcremote-0.8.1/setupdialog.ui deleted file mode 100644 index dfa5ea6..0000000 --- a/simplexbmcremote-0.8.1/setupdialog.ui +++ /dev/null @@ -1,112 +0,0 @@ - - - SetupDialog - - - - 0 - 0 - 329 - 111 - - - - Dialog - - - - - - - - XBMC - - - - - - - - - Server: - - - - - - - - - - Port: - - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - Qt::Vertical - - - QDialogButtonBox::Cancel|QDialogButtonBox::Ok - - - - - - - - - buttonBox - accepted() - SetupDialog - accept() - - - 248 - 254 - - - 157 - 274 - - - - - buttonBox - rejected() - SetupDialog - reject() - - - 316 - 260 - - - 286 - 274 - - - - - diff --git a/simplexbmcremote-0.8.1/simplexbmcremote.desktop b/simplexbmcremote-0.8.1/simplexbmcremote.desktop deleted file mode 100644 index b852018..0000000 --- a/simplexbmcremote-0.8.1/simplexbmcremote.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Version=1.0 -Type=Application -Terminal=false -Name=Simple XBMC Remote -Exec=/opt/usr/bin/simplexbmcremote -Icon=simplexbmcremote -X-Window-Icon= -X-HildonDesk-ShowInToolbar=true -X-Osso-Type=application/x-executable diff --git a/simplexbmcremote-0.8.1/simplexbmcremote.png b/simplexbmcremote-0.8.1/simplexbmcremote.png deleted file mode 100644 index 1a1f2e0..0000000 Binary files a/simplexbmcremote-0.8.1/simplexbmcremote.png and /dev/null differ diff --git a/simplexbmcremote-0.8.1/simplexbmcremote.pro b/simplexbmcremote-0.8.1/simplexbmcremote.pro deleted file mode 100644 index b35e480..0000000 --- a/simplexbmcremote-0.8.1/simplexbmcremote.pro +++ /dev/null @@ -1,50 +0,0 @@ -# Add files and directories to ship with the application -# by adapting the examples below. -# file1.source = myfile -# dir1.source = mydir -DEPLOYMENTFOLDERS = # file1 dir1 - -# Avoid auto screen rotation -#DEFINES += ORIENTATIONLOCK - -maemo5 { - message(Compiling for Maemo) - QT += maemo5 - DEFINES += Q_WS_MAEMO_5 -} else { - CONFIG += link_pkgconfig - PKGCONFIG += gtk+-2.0 libnotify -} - -# Needs to be defined for Symbian -DEFINES += NETWORKACCESS -QT += network - -symbian:TARGET.UID3 = 0xED8FBFF1 - -# If your application uses the Qt Mobility libraries, uncomment -# the following lines and add the respective components to the -# MOBILITY variable. -# CONFIG += mobility -# MOBILITY += - -TARGET = simplexbmcremote - -SOURCES += main.cpp mainwindow.cpp \ - setupdialog.cpp \ - xbmc.cpp \ - genericnotify.cpp -HEADERS += mainwindow.h \ - setupdialog.h \ - constants.h \ - xbmc.h \ - genericnotify.h -FORMS += mainwindow.ui \ - setupdialog.ui - -# Please do not modify the following two lines. Required for deployment. -include(deployment.pri) -qtcAddDeployment() - -RESOURCES += \ - simplexbmcremote.qrc diff --git a/simplexbmcremote-0.8.1/simplexbmcremote.qrc b/simplexbmcremote-0.8.1/simplexbmcremote.qrc deleted file mode 100644 index 9ffcd19..0000000 --- a/simplexbmcremote-0.8.1/simplexbmcremote.qrc +++ /dev/null @@ -1,16 +0,0 @@ - - - images/btn_down.png - images/btn_enter.png - images/btn_left.png - images/btn_mute.png - images/btn_next_language.png - images/btn_next_subtitle.png - images/btn_play_pause.png - images/btn_right.png - images/btn_stop.png - images/btn_up.png - images/btn_volume_down.png - images/btn_volume_up.png - - diff --git a/simplexbmcremote-0.8.1/xbmc.cpp b/simplexbmcremote-0.8.1/xbmc.cpp deleted file mode 100644 index 5730eb5..0000000 --- a/simplexbmcremote-0.8.1/xbmc.cpp +++ /dev/null @@ -1,145 +0,0 @@ -#include "xbmc.h" -#include "constants.h" -#include "genericnotify.h" - -#include -#include -#include - -// XBMC constants -- from https://github.com/xbmc/xbmc/blob/master/xbmc/guilib/Key.h -#define ACTION_MOVE_LEFT 1 -#define ACTION_MOVE_RIGHT 2 -#define ACTION_MOVE_UP 3 -#define ACTION_MOVE_DOWN 4 -#define ACTION_NEXT_SUBTITLE 26 // switch to next subtitle of movie. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_SUBTITLE_DELAY_MIN 52 // Decrease subtitle/movie Delay. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_SUBTITLE_DELAY_PLUS 53 // Increase subtitle/movie Delay. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_AUDIO_DELAY_MIN 54 // Increase avsync delay. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_AUDIO_DELAY_PLUS 55 // Decrease avsync delay. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_AUDIO_NEXT_LANGUAGE 56 // Select next language in movie. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_ENTER 135 -#define ACTION_SHOW_GUI 18 // toggle between GUI and movie or GUI and visualisation. -#define ACTION_STEP_FORWARD 20 // seek +1% in the movie. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_STEP_BACK 21 // seek -1% in the movie. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_BIG_STEP_FORWARD 22 // seek +10% in the movie. Can b used in videoFullScreen.xml window id=2005 -#define ACTION_BIG_STEP_BACK 23 // seek -10% in the movie. Can b used in videoFullScreen.xml window id=2005 - -#define ACTION_PLAYER_PLAY 79 // Play current song. Unpauses song and sets playspeed to 1x. global action, can be used anywhere -#define ACTION_SELECT_ITEM 7 -#define ACTION_HIGHLIGHT_ITEM 8 -#define ACTION_PARENT_DIR 9 - -#define ACTION_VOLUME_UP 88 -#define ACTION_VOLUME_DOWN 89 -#define ACTION_MUTE 91 - -#define ACTION_PAUSE 12 -#define ACTION_STOP 13 -#define ACTION_NEXT_ITEM 14 -#define ACTION_PREV_ITEM 15 -#define ACTION_FORWARD 16 // Can be used to specify specific action in a window, Playback control is handled in ACTION_PLAYER_* -#define ACTION_REWIND 17 // Can be used to specify specific action in a window, Playback control is handled in ACTION_PLAYER_* - -Xbmc::Xbmc(QObject *parent) : QObject(parent) -{ - m_manager = new QNetworkAccessManager(this); -} - -Xbmc::~Xbmc() -{ - delete m_manager; -} - -void Xbmc::commandActionFinished() -{ - QNetworkReply* reply = qobject_cast(sender()); - if (reply) { - if (reply->error() == QNetworkReply::NoError) { - QTextStream stream(reply); - QString msg = stream.readAll(); - qDebug("Xbmc::commandActionFinished: %s", qPrintable(msg)); - } else { - notify::notify(reply->errorString()); - } - reply->deleteLater(); - } -} - -void Xbmc::do_command_action(int action) -{ - QSettings settings; - QString server = settings.value(SETUP_XBMC_SERVER, SETUP_XBMC_SERVER_DEFAULT).toString(); - QString port = settings.value(SETUP_XBMC_PORT, SETUP_XBMC_PORT_DEFAULT).toString(); - - QUrl url = QUrl(QString("http://%1:%2/xbmcCmds/xbmcHttp?command=Action(%3)").arg(server).arg(port).arg(action)); - - QNetworkRequest request; - request.setUrl(url); - - QNetworkReply *reply = m_manager->get(request); - connect(reply, SIGNAL(finished()), this, SLOT(commandActionFinished())); -} - -void Xbmc::actionRight() -{ - do_command_action(ACTION_MOVE_RIGHT); - do_command_action(ACTION_STEP_FORWARD); -} - -void Xbmc::actionLeft() -{ - do_command_action(ACTION_MOVE_LEFT); - do_command_action(ACTION_STEP_BACK); -} - -void Xbmc::actionUp() -{ - do_command_action(ACTION_MOVE_UP); - do_command_action(ACTION_BIG_STEP_FORWARD); -} - -void Xbmc::actionDown() -{ - do_command_action(ACTION_MOVE_DOWN); - do_command_action(ACTION_BIG_STEP_BACK); -} - -void Xbmc::actionMute() -{ - do_command_action(ACTION_MUTE); -} - -void Xbmc::actionVolumeUp() -{ - do_command_action(ACTION_VOLUME_UP); -} - -void Xbmc::actionVolumeDown() -{ - do_command_action(ACTION_VOLUME_DOWN); -} - -void Xbmc::actionNextSubtitle() -{ - do_command_action(ACTION_NEXT_SUBTITLE); -} - -void Xbmc::actionNextLanguage() -{ - do_command_action(ACTION_AUDIO_NEXT_LANGUAGE); -} - -void Xbmc::actionPlay() -{ - do_command_action(ACTION_PLAYER_PLAY); -} - -void Xbmc::actionSelect() -{ - do_command_action(ACTION_SELECT_ITEM); -} - -void Xbmc::actionStop() -{ - do_command_action(ACTION_STOP); -} diff --git a/simplexbmcremote-0.8.1/xbmc.h b/simplexbmcremote-0.8.1/xbmc.h deleted file mode 100644 index 03227c2..0000000 --- a/simplexbmcremote-0.8.1/xbmc.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef XBMC_H -#define XBMC_H - -#include -#include - -class Xbmc : public QObject -{ - Q_OBJECT -public: - Xbmc(QObject* parent = 0); - ~Xbmc(); - - void actionRight(); - void actionLeft(); - void actionUp(); - void actionDown(); - - void actionMute(); - void actionVolumeUp(); - void actionVolumeDown(); - - void actionNextSubtitle(); - void actionNextLanguage(); - - void actionPlay(); - void actionStop(); - - void actionSelect(); - -private slots: - void commandActionFinished(); - -private: - void do_command_action(int action); - - QNetworkAccessManager *m_manager; -}; - -#endif // XBMC_H diff --git a/src/constants.h b/src/constants.h new file mode 100644 index 0000000..ce76f3e --- /dev/null +++ b/src/constants.h @@ -0,0 +1,17 @@ +#ifndef CONSTANTS_H +#define CONSTANTS_H + +// QCoreApplication info +#define APPLICATION_NAME "simplexbmcremote" +#define ORGANIZATION_NAME "Ionutz Borcoman" + +// QSettings keys +#define SETUP_XBMC_SERVER "xbmc/server" +#define SETUP_XBMC_SERVER_DEFAULT "localhost" +#define SETUP_XBMC_PORT "xbmc/port" +#define SETUP_XBMC_PORT_DEFAULT "8080" + +#define SETUP_NOTIFICATION_TIMEOUT "notification/timeout" +#define SETUP_NOTIFICATION_TIMEOUT_DEFAULT 3000 + +#endif // CONSTANTS_H diff --git a/src/debian/README b/src/debian/README new file mode 100644 index 0000000..a7886a2 --- /dev/null +++ b/src/debian/README @@ -0,0 +1,9 @@ +The Debian Package simplexbmcremote +----------------------------------- + +A simple application for controlling XBMC remotely while watching movies. Uses +HTTP XBMC protocol to communicate with XBMC. Can navigate your video +collection, start/pause/stop movies, skip forward and back, control the volume, +cycle through the existing subtitles and languages. + + -- Ionutz Borcoman Mon, 31 Jan 2011 14:34:36 +0200 diff --git a/src/debian/changelog b/src/debian/changelog new file mode 100644 index 0000000..2a36f34 --- /dev/null +++ b/src/debian/changelog @@ -0,0 +1,11 @@ +simplexbmcremote (0.8.1) unstable; urgency=low + + * Preparing for garage upload. + + -- Ionutz Borcoman Wed, 09 Mar 2011 09:16:53 +0200 + +simplexbmcremote (0.8.0) unstable; urgency=low + + * Initial Release. + + -- Ionutz Borcoman Mon, 31 Jan 2011 14:34:36 +0200 diff --git a/src/debian/compat b/src/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/src/debian/compat @@ -0,0 +1 @@ +5 diff --git a/src/debian/control b/src/debian/control new file mode 100644 index 0000000..8bd3cfb --- /dev/null +++ b/src/debian/control @@ -0,0 +1,68 @@ +Source: simplexbmcremote +Section: user/multimedia +Priority: optional +Maintainer: Ionutz Borcoman +Build-Depends: debhelper (>= 5), libqt4-dev +Standards-Version: 3.7.3 +Homepage: https://garage.maemo.org/projects/simple-xmbc-rem/ + +Package: simplexbmcremote +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: simple xbmc remote control + A simple application for controlling XBMC remotely (using HTTP) while watching movies. + . + Can navigate your video collection, start/pause/stop movies, skip forward and back, control the volume, switch the existing subtitles and languages. +XSBC-Bugtracker: https://garage.maemo.org/tracker/?atid=7118&group_id=2102 +XSBC-Maemo-Display-Name: Simple XBMC Remote +XB-Maemo-Upgrade-Description: Initial release for Maemo. +XB-Maemo-Icon-26: + iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgI + fAhkiAAAAAlwSFlzAAAE/wAABP8BbsPM1QAAABl0RVh0U29mdHdhcmUAd3d3 + Lmlua3NjYXBlLm9yZ5vuPBoAAAgOSURBVGiB1Zo9bBvJGYbfb3a5S1LUUuKf + YimADAmCCgOCZdE2BMRdckkV3RUuc0CQS50iRSpXARJccUX6HAJcShVnp0oO + 1xg+gIFMmYZsAwZsWYZxkkOK4oVL0txd7syXQlxGP6REUrIO93aUZmefb37f + mW+JmXFWra+vRwF8AOAWM08BuEREPwZwiZmJiHaY+VsAb4lom4i+0XX9q4WF + hcZZ303DBrC2tpYUQnwIYIWIfgYgDABEpDRNg6ZpQggBAFBKQUqppJRgZtEu + 5zLz10R0j5m/XFpaKl9IABsbGyOtVuv3AP4AICqEUKZpinA4DNM0EUD3klIK + ruvCcRy4rquUUgLAOwCfhkKhzwbtlb4DWF1d1WZnZ38D4I/MnDEMg2OxGJmm + CSIa5J0dMTNc10W9XmfP84iISgDubG5ufn779m15bgEUCoVJZr7LzNd1XVeW + ZYlwODwUdC85jgPbtpXv+wLAI9/3V27evPntac+dGkA+n79BRPeIaMKyLBoZ + GTkv5q5qNBqoVqtMRLsAVq5du/bvk8qfOGDz+fyviOiBECKTTCbfOzwAjIyM + IJVKERGlANzP5/Mfn1S+Zw+04b8IhUJqfHxc6Lr+Pnh7SkqJSqWiWq2WYOaP + s9ns37uV6xpAe9g8CIVCejKZFKetLO9LzIxyuaxarZbPzLey2eza0TLHyAqF + wiQR3RNC6IlE4nuDBwAiQptBJ6J7hUJh8miZQ3Srq6saM98FMJFIJISmaRcG + 20uapiGRSAgAE8x8d3V19R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KJtAeABALiuC8Mw + BuqFXvAAOsNndHT03OA1TYNhGJ2llIi+EZ7n/YuZnWazCWDfZwwCv7e3dwwe + ACYmJpBMJs+1BwI2x3FARK6u61+J5eXlJhH903VdZua+AjgIPzs729XjpFIp + XL58eSD70E8A7ftUxcxfLywsNHQAYOYvAXzoOA4ikQhCoVBP69sP/Gl69uzZ + obVfSolcLofvvvuu50VxKBSCaZpwHAdKKUFE94D2gUbX9X8AqNXrdQZOnng7 + OztDw0ejUaRSKXieh1arhUwmg3Q6jdHRUdRqNei63vOYGjC1Gd+1Gx06AFy9 + evW/6+vrf2q1Wn9uNpuIRCIwTbMzWQ6KiIZueSLC9PT0sb/Pzc2d+Jxpmp3W + 9zyPAHwaJEQ6O5fneX8B8J9araYAIB6PH+vOqakpzM3NnZuv70cHzxG2bSsi + KoVCoc+C/3cCWF5ebgK44/u+aDQa0HX9mAGzLOtcl8V+ND4+Dl3X0Wg00M4d + 3DmYxTnkHV69evU3InpYrVbZ8zyEw+Fz34gGkWVZCIfD8DwvyBk83Nzc/Pxg + mWO304VCYVIptS6EyKTTaaFpGmzb7mxMF6VYLAbLsiClxO7urlJKlYQQS4uL + izsHyx1zb4uLizvMvKKU8iuVilJKwbIsjI2NDZ0LG0REhLGxMViWBWZGm8Fn + 5pWj8F0DAIBsNrvGzJ+0Wi2xt7enfN9HNBpFMpk8k2M9TUIIJJNJRKPR4Hgb + JDg+6ZYbAE7JkbWzNH8NcgWBkarX62g0GgMdRE4SEWFkZASxWAxCCHieh0ql + opjZV0r9NpvNftHz2WGTfFJK2LaNwEMNq0gkAsuyOiZy0CTfmdOsBxPXjuOc + 2ivtm7XOZhkMyfeWZg3Ub6JbSgkpZfB5AYB9GyyEQPsThE7ZC0t0H9QP9lOD + o/rBfuzRTd/n5zb/A5T81V+Urp9tAAAAAElFTkSuQmCC diff --git a/src/debian/copyright b/src/debian/copyright new file mode 100644 index 0000000..d8a04a3 --- /dev/null +++ b/src/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Ionutz Borcoman on +Mon, 31 Jan 2011 14:34:36 +0200. + +It was downloaded from https://garage.maemo.org/projects/simple-xmbc-rem/ + +Upstream Author(s): + + Ionutz Borcoman + +Copyright: + + Copyright (C) 2011 Ionutz Borcoman + +License: + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2011, Ionutz Borcoman and +is licensed under the GPL, see above. diff --git a/src/debian/optify b/src/debian/optify new file mode 100644 index 0000000..865faf1 --- /dev/null +++ b/src/debian/optify @@ -0,0 +1 @@ +auto diff --git a/src/debian/rules b/src/debian/rules new file mode 100755 index 0000000..9a1cade --- /dev/null +++ b/src/debian/rules @@ -0,0 +1,54 @@ +#!/usr/bin/make -f +APPNAME := simplexbmcremote +builddir: + mkdir -p builddir + +builddir/Makefile: builddir + cd builddir && qmake-qt4 PREFIX=/usr ../$(APPNAME).pro + +build: build-stamp + +build-stamp: builddir/Makefile + dh_testdir + # Add here commands to compile the package. + cd builddir && $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + # Add here commands to clean up after the build process. + rm -rf builddir + dh_clean +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/your_appname + cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installexamples + dh_installman + dh_link +# dh_strip --dbg-package=appname-dbg + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/src/deployment.pri b/src/deployment.pri new file mode 100644 index 0000000..04b1b16 --- /dev/null +++ b/src/deployment.pri @@ -0,0 +1,111 @@ +# checksum 0x2939 version 0x20001 +# This file was generated by an application wizard of Qt Creator. +# The code below handles deployment to Symbian and Maemo, aswell as copying +# of the application data to shadow build directories on desktop. +# It is recommended not to modify this file, since newer versions of Qt Creator +# may offer an updated version of it. + +defineTest(qtcAddDeployment) { +for(deploymentfolder, DEPLOYMENTFOLDERS) { + item = item$${deploymentfolder} + itemsources = $${item}.sources + $$itemsources = $$eval($${deploymentfolder}.source) + itempath = $${item}.path + $$itempath= $$eval($${deploymentfolder}.target) + export($$itemsources) + export($$itempath) + DEPLOYMENT += $$item +} + +MAINPROFILEPWD = $$PWD + +symbian { + ICON = $${TARGET}.svg + TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 + contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone + contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices +} else:win32 { + copyCommand = + for(deploymentfolder, DEPLOYMENTFOLDERS) { + source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) + source = $$replace(source, /, \\) + sourcePathSegments = $$split(source, \\) + target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) + target = $$replace(target, /, \\) + !isEqual(source,$$target) { + !isEmpty(copyCommand):copyCommand += && + copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" + } + } + !isEmpty(copyCommand) { + copyCommand = @echo Copying application data... && $$copyCommand + copydeploymentfolders.commands = $$copyCommand + first.depends = $(first) copydeploymentfolders + export(first.depends) + export(copydeploymentfolders.commands) + QMAKE_EXTRA_TARGETS += first copydeploymentfolders + } +} else:unix { + maemo5 { + installPrefix = /opt/usr + desktopfile.path = /usr/share/applications/hildon + } else { + installPrefix = /usr/local + desktopfile.path = /usr/share/applications + copyCommand = + for(deploymentfolder, DEPLOYMENTFOLDERS) { + source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) + source = $$replace(source, \\, /) + macx { + target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) + } else { + target = $$OUT_PWD/$$eval($${deploymentfolder}.target) + } + target = $$replace(target, \\, /) + sourcePathSegments = $$split(source, /) + targetFullPath = $$target/$$last(sourcePathSegments) + !isEqual(source,$$targetFullPath) { + !isEmpty(copyCommand):copyCommand += && + copyCommand += $(MKDIR) \"$$target\" + copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" + } + } + !isEmpty(copyCommand) { + copyCommand = @echo Copying application data... && $$copyCommand + copydeploymentfolders.commands = $$copyCommand + first.depends = $(first) copydeploymentfolders + export(first.depends) + export(copydeploymentfolders.commands) + QMAKE_EXTRA_TARGETS += first copydeploymentfolders + } + } + for(deploymentfolder, DEPLOYMENTFOLDERS) { + item = item$${deploymentfolder} + itemfiles = $${item}.files + $$itemfiles = $$eval($${deploymentfolder}.source) + itempath = $${item}.path + $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target) + export($$itemfiles) + export($$itempath) + INSTALLS += $$item + } + icon.files = $${TARGET}.png + icon.path = /usr/share/icons/hicolor/64x64/apps + desktopfile.files = $${TARGET}.desktop + target.path = $${installPrefix}/bin + export(icon.files) + export(icon.path) + export(desktopfile.files) + export(desktopfile.path) + export(target.path) + INSTALLS += desktopfile icon target +} + +export (ICON) +export (INSTALLS) +export (DEPLOYMENT) +export (TARGET.EPOCHEAPSIZE) +export (TARGET.CAPABILITY) +export (LIBS) +export (QMAKE_EXTRA_TARGETS) +} diff --git a/src/genericnotify.cpp b/src/genericnotify.cpp new file mode 100644 index 0000000..bdefdb7 --- /dev/null +++ b/src/genericnotify.cpp @@ -0,0 +1,44 @@ +#ifdef Q_WS_MAEMO_5 +#include +#else +#include +#endif + +#include "genericnotify.h" +#include "constants.h" +#include + +void notify::init() +{ +#ifdef Q_WS_MAEMO_5 +#else + /* Init libnotify library */ + notify_init(APPLICATION_NAME); +#endif +} + +void notify::notify(const QString& msg) +{ +#ifdef Q_WS_MAEMO_5 + QMaemo5InformationBox::information (0, msg); +#else + /* Create notification */ + NotifyNotification *notification = notify_notification_new(APPLICATION_NAME, qPrintable(msg), 0, 0); + if (notification) { + QSettings settings; + int timeout = settings.value(SETUP_NOTIFICATION_TIMEOUT, SETUP_NOTIFICATION_TIMEOUT_DEFAULT).toInt(); + + /* Set timeout */ + notify_notification_set_timeout(notification, timeout); + + /* Schedule notification for showing */ + if (!notify_notification_show(notification, NULL)) { + qDebug("Failed to send notification"); + } + + /* Clean up the memory */ + g_object_unref(notification); + } +#endif + qDebug(qPrintable(msg)); +} diff --git a/src/genericnotify.h b/src/genericnotify.h new file mode 100644 index 0000000..8a3143c --- /dev/null +++ b/src/genericnotify.h @@ -0,0 +1,12 @@ +#ifndef GENERIC_NOTIFY_H +#define GENERIC_NOTIFY_H + +#include + +namespace notify +{ + void init(); + void notify(const QString& msg); +} + +#endif // GENERIC_NOTIFY_H diff --git a/src/images/btn_down.png b/src/images/btn_down.png new file mode 100644 index 0000000..5b3a5c2 Binary files /dev/null and b/src/images/btn_down.png differ diff --git a/src/images/btn_enter.png b/src/images/btn_enter.png new file mode 100644 index 0000000..0d9ec96 Binary files /dev/null and b/src/images/btn_enter.png differ diff --git a/src/images/btn_left.png b/src/images/btn_left.png new file mode 100644 index 0000000..fdbc03d Binary files /dev/null and b/src/images/btn_left.png differ diff --git a/src/images/btn_mute.png b/src/images/btn_mute.png new file mode 100644 index 0000000..384ef53 Binary files /dev/null and b/src/images/btn_mute.png differ diff --git a/src/images/btn_next_language.png b/src/images/btn_next_language.png new file mode 100644 index 0000000..c0af03d Binary files /dev/null and b/src/images/btn_next_language.png differ diff --git a/src/images/btn_next_subtitle.png b/src/images/btn_next_subtitle.png new file mode 100644 index 0000000..bba6ea8 Binary files /dev/null and b/src/images/btn_next_subtitle.png differ diff --git a/src/images/btn_play_pause.png b/src/images/btn_play_pause.png new file mode 100644 index 0000000..fcb98bb Binary files /dev/null and b/src/images/btn_play_pause.png differ diff --git a/src/images/btn_right.png b/src/images/btn_right.png new file mode 100644 index 0000000..ba61ee5 Binary files /dev/null and b/src/images/btn_right.png differ diff --git a/src/images/btn_stop.png b/src/images/btn_stop.png new file mode 100644 index 0000000..8601733 Binary files /dev/null and b/src/images/btn_stop.png differ diff --git a/src/images/btn_up.png b/src/images/btn_up.png new file mode 100644 index 0000000..e93f5dd Binary files /dev/null and b/src/images/btn_up.png differ diff --git a/src/images/btn_volume_down.png b/src/images/btn_volume_down.png new file mode 100644 index 0000000..0fbfe86 Binary files /dev/null and b/src/images/btn_volume_down.png differ diff --git a/src/images/btn_volume_up.png b/src/images/btn_volume_up.png new file mode 100644 index 0000000..7ee36e9 Binary files /dev/null and b/src/images/btn_volume_up.png differ diff --git a/src/images/xbmc.svg b/src/images/xbmc.svg new file mode 100644 index 0000000..52cfb9b --- /dev/null +++ b/src/images/xbmc.svg @@ -0,0 +1,675 @@ + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + S + + + + + + + L + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..96abba8 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,20 @@ +#include "mainwindow.h" +#include "constants.h" +#include "genericnotify.h" + +#include + +int main(int argc, char *argv[]) +{ + notify::init(); + + QApplication app(argc, argv); + app.setOrganizationName(APPLICATION_NAME); + app.setApplicationName(ORGANIZATION_NAME); + + MainWindow mainWindow; + mainWindow.setOrientation(MainWindow::ScreenOrientationLockPortrait); + mainWindow.showExpanded(); + + return app.exec(); +} diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp new file mode 100644 index 0000000..985a62e --- /dev/null +++ b/src/mainwindow.cpp @@ -0,0 +1,157 @@ +// checksum 0xfd0b version 0x20001 +/* + This file was generated by the Mobile Qt Application wizard of Qt Creator. + MainWindow is a convenience class containing mobile device specific code + such as screen orientation handling. + It is recommended not to modify this file, since newer versions of Qt Creator + may offer an updated version of it. +*/ + +#include "mainwindow.h" +#include "ui_mainwindow.h" + +#include "setupdialog.h" +#include "xbmc.h" + +#include +#include + +#include + +#if defined(Q_OS_SYMBIAN) && defined(ORIENTATIONLOCK) +#include +#include +#include +#include +#endif // Q_OS_SYMBIAN && ORIENTATIONLOCK + +MainWindow::MainWindow(QWidget *parent) + : QMainWindow(parent), m_ui(new Ui::MainWindow) +{ + m_ui->setupUi(this); + m_xbmc = new Xbmc(this); +} + +MainWindow::~MainWindow() +{ + delete m_xbmc; + delete m_ui; +} + +void MainWindow::setOrientation(ScreenOrientation orientation) +{ +#ifdef Q_OS_SYMBIAN + if (orientation != ScreenOrientationAuto) { +#if defined(ORIENTATIONLOCK) + const CAknAppUiBase::TAppUiOrientation uiOrientation = + (orientation == ScreenOrientationLockPortrait) ? CAknAppUi::EAppUiOrientationPortrait + : CAknAppUi::EAppUiOrientationLandscape; + CAknAppUi* appUi = dynamic_cast (CEikonEnv::Static()->AppUi()); + TRAPD(error, + if (appUi) + appUi->SetOrientationL(uiOrientation); + ); + Q_UNUSED(error) +#else // ORIENTATIONLOCK + qWarning("'ORIENTATIONLOCK' needs to be defined on Symbian when locking the orientation."); +#endif // ORIENTATIONLOCK + } +#elif defined(Q_WS_MAEMO_5) + Qt::WidgetAttribute attribute; + switch (orientation) { + case ScreenOrientationLockPortrait: + attribute = Qt::WA_Maemo5PortraitOrientation; + break; + case ScreenOrientationLockLandscape: + attribute = Qt::WA_Maemo5LandscapeOrientation; + break; + case ScreenOrientationAuto: + default: + attribute = Qt::WA_Maemo5AutoOrientation; + break; + } + setAttribute(attribute, true); +#else // Q_OS_SYMBIAN + Q_UNUSED(orientation); +#endif // Q_OS_SYMBIAN +} + +void MainWindow::showExpanded() +{ +#ifdef Q_OS_SYMBIAN + showFullScreen(); +#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + showMaximized(); +#else + show(); +#endif +} + +void MainWindow::on_actionSetup_triggered() +{ + SetupDialog dialog; + dialog.load(); + if(dialog.exec() == QDialog::Accepted) { + dialog.save(); + } +} + +void MainWindow::on_rightBtn_clicked() +{ + m_xbmc->actionRight(); +} + +void MainWindow::on_leftBtn_clicked() +{ + m_xbmc->actionLeft(); +} + +void MainWindow::on_upBtn_clicked() +{ + m_xbmc->actionUp(); +} + +void MainWindow::on_downBtn_clicked() +{ + m_xbmc->actionDown(); +} + +void MainWindow::on_playBtn_clicked() +{ + m_xbmc->actionPlay(); +} + +void MainWindow::on_muteBtn_clicked() +{ + m_xbmc->actionMute(); +} + +void MainWindow::on_volumeUpBtn_clicked() +{ + m_xbmc->actionVolumeUp(); +} + +void MainWindow::on_volumeDownBtn_clicked() +{ + m_xbmc->actionVolumeDown(); +} + +void MainWindow::on_nextSubtitleBtn_clicked() +{ + m_xbmc->actionNextSubtitle(); +} + +void MainWindow::on_nextLanguageBtn_clicked() +{ + m_xbmc->actionNextLanguage(); +} + +void MainWindow::on_selectButton_clicked() +{ + m_xbmc->actionSelect(); +} + +void MainWindow::on_stopBtn_clicked() +{ + m_xbmc->actionStop(); +} diff --git a/src/mainwindow.h b/src/mainwindow.h new file mode 100644 index 0000000..383c83d --- /dev/null +++ b/src/mainwindow.h @@ -0,0 +1,61 @@ +// checksum 0x9a77 version 0x20001 +/* + This file was generated by the Mobile Qt Application wizard of Qt Creator. + MainWindow is a convenience class containing mobile device specific code + such as screen orientation handling. + It is recommended not to modify this file, since newer versions of Qt Creator + may offer an updated version of it. +*/ + +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +#include "xbmc.h" + +namespace Ui { + class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT +public: + enum ScreenOrientation { + ScreenOrientationLockPortrait, + ScreenOrientationLockLandscape, + ScreenOrientationAuto + }; + + explicit MainWindow(QWidget *parent = 0); + virtual ~MainWindow(); + + void setOrientation(ScreenOrientation orientation); + void showExpanded(); + +private slots: + void on_actionSetup_triggered(); + + void on_rightBtn_clicked(); + void on_leftBtn_clicked(); + void on_upBtn_clicked(); + void on_downBtn_clicked(); + void on_selectButton_clicked(); + + void on_playBtn_clicked(); + void on_stopBtn_clicked(); + + void on_muteBtn_clicked(); + void on_volumeUpBtn_clicked(); + void on_volumeDownBtn_clicked(); + + void on_nextSubtitleBtn_clicked(); + void on_nextLanguageBtn_clicked(); + +private: + Ui::MainWindow *m_ui; + Xbmc* m_xbmc; +}; + +#endif // MAINWINDOW_H diff --git a/src/mainwindow.ui b/src/mainwindow.ui new file mode 100644 index 0000000..ea5505e --- /dev/null +++ b/src/mainwindow.ui @@ -0,0 +1,485 @@ + + + MainWindow + + + + 0 + 0 + 480 + 836 + + + + XBMC Net Movies RC + + + + + + + + + + + Qt::NoFocus + + + next subtitle + + + ... + + + + :/images/btn_next_subtitle.png:/images/btn_next_subtitle.png + + + + 92 + 92 + + + + + + + + Qt::NoFocus + + + next language + + + ... + + + + :/images/btn_next_language.png:/images/btn_next_language.png + + + + 92 + 92 + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + Qt::NoFocus + + + volume up + + + ... + + + + :/images/btn_volume_up.png:/images/btn_volume_up.png + + + + 92 + 92 + + + + + + + + Qt::NoFocus + + + volume down + + + ... + + + + :/images/btn_volume_down.png:/images/btn_volume_down.png + + + + 92 + 92 + + + + + + + + Qt::NoFocus + + + mute + + + ... + + + + :/images/btn_mute.png:/images/btn_mute.png + + + + 92 + 92 + + + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::NoFocus + + + up + + + ... + + + + :/images/btn_up.png:/images/btn_up.png + + + + 92 + 92 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Qt::NoFocus + + + left + + + ... + + + + :/images/btn_left.png:/images/btn_left.png + + + + 92 + 92 + + + + + + + + Qt::NoFocus + + + pause + + + ... + + + + :/images/btn_play_pause.png:/images/btn_play_pause.png + + + + 133 + 133 + + + + + + + + Qt::NoFocus + + + right + + + ... + + + + :/images/btn_right.png:/images/btn_right.png + + + + 92 + 92 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::NoFocus + + + down + + + ... + + + + :/images/btn_down.png:/images/btn_down.png + + + + 92 + 92 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + Qt::NoFocus + + + stop + + + ... + + + + :/images/btn_stop.png:/images/btn_stop.png + + + + 92 + 92 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::NoFocus + + + select + + + ... + + + + :/images/btn_enter.png:/images/btn_enter.png + + + + 92 + 92 + + + + + + + + + + + + 0 + 0 + 480 + 25 + + + + + MainMenu + + + + + + + + Setup + + + + + true + + + Connect + + + + + + + + + diff --git a/src/qtc_packaging/debian_fremantle/README b/src/qtc_packaging/debian_fremantle/README new file mode 100644 index 0000000..a7886a2 --- /dev/null +++ b/src/qtc_packaging/debian_fremantle/README @@ -0,0 +1,9 @@ +The Debian Package simplexbmcremote +----------------------------------- + +A simple application for controlling XBMC remotely while watching movies. Uses +HTTP XBMC protocol to communicate with XBMC. Can navigate your video +collection, start/pause/stop movies, skip forward and back, control the volume, +cycle through the existing subtitles and languages. + + -- Ionutz Borcoman Mon, 31 Jan 2011 14:34:36 +0200 diff --git a/src/qtc_packaging/debian_fremantle/changelog b/src/qtc_packaging/debian_fremantle/changelog new file mode 100644 index 0000000..9f7bef8 --- /dev/null +++ b/src/qtc_packaging/debian_fremantle/changelog @@ -0,0 +1,11 @@ +simplexbmcremote (0.8.0-1) unstable; urgency=low + + * Preparing for garage upload. + + -- Ionutz Borcoman Wed, 09 Mar 2011 09:16:53 +0200 + +simplexbmcremote (0.8.0) unstable; urgency=low + + * Initial Release. + + -- Ionutz Borcoman Mon, 31 Jan 2011 14:34:36 +0200 diff --git a/src/qtc_packaging/debian_fremantle/compat b/src/qtc_packaging/debian_fremantle/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/src/qtc_packaging/debian_fremantle/compat @@ -0,0 +1 @@ +7 diff --git a/src/qtc_packaging/debian_fremantle/control b/src/qtc_packaging/debian_fremantle/control new file mode 100644 index 0000000..a47b406 --- /dev/null +++ b/src/qtc_packaging/debian_fremantle/control @@ -0,0 +1,68 @@ +Source: simplexbmcremote +Section: user/multimedia +Priority: optional +Maintainer: Ionutz Borcoman +Build-Depends: debhelper (>= 5), libqt4-dev +Standards-Version: 3.7.3 +Homepage: https://garage.maemo.org/projects/simple-xmbc-rem/ + +Package: simplexbmcremote +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: simple xbmc remote control + A simple application for controlling XBMC remotely (using HTTP) while watching movies. + . + Can navigate your video collection, start/pause/stop movies, skip forward and back, control the volume, switch the existing subtitles and languages. +XSBC-Bugtracker: https://garage.maemo.org/tracker/?atid=7118&group_id=2102 +XSBC-Maemo-Display-Name: Simple XBMC Remote +XB-Maemo-Upgrade-Description: Initial release for Maemo. +XB-Maemo-Icon-26: + iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgI + fAhkiAAAAAlwSFlzAAAE/wAABP8BbsPM1QAAABl0RVh0U29mdHdhcmUAd3d3 + Lmlua3NjYXBlLm9yZ5vuPBoAAAgOSURBVGiB1Zo9bBvJGYbfb3a5S1LUUuKf + YimADAmCCgOCZdE2BMRdckkV3RUuc0CQS50iRSpXARJccUX6HAJcShVnp0oO + 1xg+gIFMmYZsAwZsWYZxkkOK4oVL0txd7syXQlxGP6REU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2bSsi + KoVCoc+C/3cCWF5ebgK44/u+aDQa0HX9mAGzLOtcl8V+ND4+Dl3X0Wg00M4d + 3DmYxTnkHV69evU3InpYrVbZ8zyEw+Fz34gGkWVZCIfD8DwvyBk83Nzc/Pxg + mWO304VCYVIptS6EyKTTaaFpGmzb7mxMF6VYLAbLsiClxO7urlJKlYQQS4uL + izsHyx1zb4uLizvMvKKU8iuVilJKwbIsjI2NDZ0LG0REhLGxMViWBWZGm8Fn + 5pWj8F0DAIBsNrvGzJ+0Wi2xt7enfN9HNBpFMpk8k2M9TUIIJJNJRKPR4Hgb + JDg+6ZYbAE7JkbWzNH8NcgWBkarX62g0GgMdRE4SEWFkZASxWAxCCHieh0ql + opjZV0r9NpvNftHz2WGTfFJK2LaNwEMNq0gkAsuyOiZy0CTfmdOsBxPXjuOc + 2ivtm7XOZhkMyfeWZg3Ub6JbSgkpZfB5AYB9GyyEQPsThE7ZC0t0H9QP9lOD + o/rBfuzRTd/n5zb/A5T81V+Urp9tAAAAAElFTkSuQmCC diff --git a/src/qtc_packaging/debian_fremantle/copyright b/src/qtc_packaging/debian_fremantle/copyright new file mode 100644 index 0000000..f68c623 --- /dev/null +++ b/src/qtc_packaging/debian_fremantle/copyright @@ -0,0 +1,33 @@ +This package was debianized by Ionutz Borcoman on +Mon, 31 Jan 2011 14:34:36 +0200. + +It was downloaded from https://garage.maemo.org/projects/simple-xmbc-rem/ + +Upstream Author(s): + + Ionutz Borcoman + +Copyright: + + Copyright (C) 2011 Ionutz Borcoman + +License: + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2011, Ionutz Borcoman and +is licensed under the GPL, see above. diff --git a/src/qtc_packaging/debian_fremantle/rules b/src/qtc_packaging/debian_fremantle/rules new file mode 100755 index 0000000..d6def77 --- /dev/null +++ b/src/qtc_packaging/debian_fremantle/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/simplexbmcremote.sgml > simplexbmcremote.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/simplexbmcremote. + $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/simplexbmcremote install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + # dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + dh_shlibdeps # Uncomment this line for publishing! + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/src/setupdialog.cpp b/src/setupdialog.cpp new file mode 100644 index 0000000..a8ba697 --- /dev/null +++ b/src/setupdialog.cpp @@ -0,0 +1,32 @@ +#include "setupdialog.h" +#include "ui_setupdialog.h" + +#include "constants.h" + +#include + +SetupDialog::SetupDialog(QWidget *parent) : + QDialog(parent), + ui(new Ui::SetupDialog) +{ + ui->setupUi(this); +} + +SetupDialog::~SetupDialog() +{ + delete ui; +} + +void SetupDialog::save() +{ + QSettings settings; + settings.setValue(SETUP_XBMC_SERVER, ui->xbmcServerEdit->text()); + settings.setValue(SETUP_XBMC_PORT, ui->xbmcPortEdit->text()); +} + +void SetupDialog::load() +{ + QSettings settings; + ui->xbmcServerEdit->setText(settings.value(SETUP_XBMC_SERVER, SETUP_XBMC_SERVER_DEFAULT).toString()); + ui->xbmcPortEdit->setText(settings.value(SETUP_XBMC_PORT, SETUP_XBMC_PORT_DEFAULT).toString()); +} diff --git a/src/setupdialog.h b/src/setupdialog.h new file mode 100644 index 0000000..aa76217 --- /dev/null +++ b/src/setupdialog.h @@ -0,0 +1,24 @@ +#ifndef SETUPDIALOG_H +#define SETUPDIALOG_H + +#include + +namespace Ui { + class SetupDialog; +} + +class SetupDialog : public QDialog +{ + Q_OBJECT + +public: + explicit SetupDialog(QWidget *parent = 0); + ~SetupDialog(); + void save(); + void load(); + +private: + Ui::SetupDialog *ui; +}; + +#endif // SETUPDIALOG_H diff --git a/src/setupdialog.ui b/src/setupdialog.ui new file mode 100644 index 0000000..dfa5ea6 --- /dev/null +++ b/src/setupdialog.ui @@ -0,0 +1,112 @@ + + + SetupDialog + + + + 0 + 0 + 329 + 111 + + + + Dialog + + + + + + + + XBMC + + + + + + + + + Server: + + + + + + + + + + Port: + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + Qt::Vertical + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + buttonBox + accepted() + SetupDialog + accept() + + + 248 + 254 + + + 157 + 274 + + + + + buttonBox + rejected() + SetupDialog + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/src/simplexbmcremote.desktop b/src/simplexbmcremote.desktop new file mode 100644 index 0000000..b852018 --- /dev/null +++ b/src/simplexbmcremote.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Terminal=false +Name=Simple XBMC Remote +Exec=/opt/usr/bin/simplexbmcremote +Icon=simplexbmcremote +X-Window-Icon= +X-HildonDesk-ShowInToolbar=true +X-Osso-Type=application/x-executable diff --git a/src/simplexbmcremote.png b/src/simplexbmcremote.png new file mode 100644 index 0000000..1a1f2e0 Binary files /dev/null and b/src/simplexbmcremote.png differ diff --git a/src/simplexbmcremote.pro b/src/simplexbmcremote.pro new file mode 100644 index 0000000..b35e480 --- /dev/null +++ b/src/simplexbmcremote.pro @@ -0,0 +1,50 @@ +# Add files and directories to ship with the application +# by adapting the examples below. +# file1.source = myfile +# dir1.source = mydir +DEPLOYMENTFOLDERS = # file1 dir1 + +# Avoid auto screen rotation +#DEFINES += ORIENTATIONLOCK + +maemo5 { + message(Compiling for Maemo) + QT += maemo5 + DEFINES += Q_WS_MAEMO_5 +} else { + CONFIG += link_pkgconfig + PKGCONFIG += gtk+-2.0 libnotify +} + +# Needs to be defined for Symbian +DEFINES += NETWORKACCESS +QT += network + +symbian:TARGET.UID3 = 0xED8FBFF1 + +# If your application uses the Qt Mobility libraries, uncomment +# the following lines and add the respective components to the +# MOBILITY variable. +# CONFIG += mobility +# MOBILITY += + +TARGET = simplexbmcremote + +SOURCES += main.cpp mainwindow.cpp \ + setupdialog.cpp \ + xbmc.cpp \ + genericnotify.cpp +HEADERS += mainwindow.h \ + setupdialog.h \ + constants.h \ + xbmc.h \ + genericnotify.h +FORMS += mainwindow.ui \ + setupdialog.ui + +# Please do not modify the following two lines. Required for deployment. +include(deployment.pri) +qtcAddDeployment() + +RESOURCES += \ + simplexbmcremote.qrc diff --git a/src/simplexbmcremote.qrc b/src/simplexbmcremote.qrc new file mode 100644 index 0000000..9ffcd19 --- /dev/null +++ b/src/simplexbmcremote.qrc @@ -0,0 +1,16 @@ + + + images/btn_down.png + images/btn_enter.png + images/btn_left.png + images/btn_mute.png + images/btn_next_language.png + images/btn_next_subtitle.png + images/btn_play_pause.png + images/btn_right.png + images/btn_stop.png + images/btn_up.png + images/btn_volume_down.png + images/btn_volume_up.png + + diff --git a/src/xbmc.cpp b/src/xbmc.cpp new file mode 100644 index 0000000..5730eb5 --- /dev/null +++ b/src/xbmc.cpp @@ -0,0 +1,145 @@ +#include "xbmc.h" +#include "constants.h" +#include "genericnotify.h" + +#include +#include +#include + +// XBMC constants -- from https://github.com/xbmc/xbmc/blob/master/xbmc/guilib/Key.h +#define ACTION_MOVE_LEFT 1 +#define ACTION_MOVE_RIGHT 2 +#define ACTION_MOVE_UP 3 +#define ACTION_MOVE_DOWN 4 +#define ACTION_NEXT_SUBTITLE 26 // switch to next subtitle of movie. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_SUBTITLE_DELAY_MIN 52 // Decrease subtitle/movie Delay. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_SUBTITLE_DELAY_PLUS 53 // Increase subtitle/movie Delay. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_AUDIO_DELAY_MIN 54 // Increase avsync delay. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_AUDIO_DELAY_PLUS 55 // Decrease avsync delay. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_AUDIO_NEXT_LANGUAGE 56 // Select next language in movie. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_ENTER 135 +#define ACTION_SHOW_GUI 18 // toggle between GUI and movie or GUI and visualisation. +#define ACTION_STEP_FORWARD 20 // seek +1% in the movie. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_STEP_BACK 21 // seek -1% in the movie. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_BIG_STEP_FORWARD 22 // seek +10% in the movie. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_BIG_STEP_BACK 23 // seek -10% in the movie. Can b used in videoFullScreen.xml window id=2005 + +#define ACTION_PLAYER_PLAY 79 // Play current song. Unpauses song and sets playspeed to 1x. global action, can be used anywhere +#define ACTION_SELECT_ITEM 7 +#define ACTION_HIGHLIGHT_ITEM 8 +#define ACTION_PARENT_DIR 9 + +#define ACTION_VOLUME_UP 88 +#define ACTION_VOLUME_DOWN 89 +#define ACTION_MUTE 91 + +#define ACTION_PAUSE 12 +#define ACTION_STOP 13 +#define ACTION_NEXT_ITEM 14 +#define ACTION_PREV_ITEM 15 +#define ACTION_FORWARD 16 // Can be used to specify specific action in a window, Playback control is handled in ACTION_PLAYER_* +#define ACTION_REWIND 17 // Can be used to specify specific action in a window, Playback control is handled in ACTION_PLAYER_* + +Xbmc::Xbmc(QObject *parent) : QObject(parent) +{ + m_manager = new QNetworkAccessManager(this); +} + +Xbmc::~Xbmc() +{ + delete m_manager; +} + +void Xbmc::commandActionFinished() +{ + QNetworkReply* reply = qobject_cast(sender()); + if (reply) { + if (reply->error() == QNetworkReply::NoError) { + QTextStream stream(reply); + QString msg = stream.readAll(); + qDebug("Xbmc::commandActionFinished: %s", qPrintable(msg)); + } else { + notify::notify(reply->errorString()); + } + reply->deleteLater(); + } +} + +void Xbmc::do_command_action(int action) +{ + QSettings settings; + QString server = settings.value(SETUP_XBMC_SERVER, SETUP_XBMC_SERVER_DEFAULT).toString(); + QString port = settings.value(SETUP_XBMC_PORT, SETUP_XBMC_PORT_DEFAULT).toString(); + + QUrl url = QUrl(QString("http://%1:%2/xbmcCmds/xbmcHttp?command=Action(%3)").arg(server).arg(port).arg(action)); + + QNetworkRequest request; + request.setUrl(url); + + QNetworkReply *reply = m_manager->get(request); + connect(reply, SIGNAL(finished()), this, SLOT(commandActionFinished())); +} + +void Xbmc::actionRight() +{ + do_command_action(ACTION_MOVE_RIGHT); + do_command_action(ACTION_STEP_FORWARD); +} + +void Xbmc::actionLeft() +{ + do_command_action(ACTION_MOVE_LEFT); + do_command_action(ACTION_STEP_BACK); +} + +void Xbmc::actionUp() +{ + do_command_action(ACTION_MOVE_UP); + do_command_action(ACTION_BIG_STEP_FORWARD); +} + +void Xbmc::actionDown() +{ + do_command_action(ACTION_MOVE_DOWN); + do_command_action(ACTION_BIG_STEP_BACK); +} + +void Xbmc::actionMute() +{ + do_command_action(ACTION_MUTE); +} + +void Xbmc::actionVolumeUp() +{ + do_command_action(ACTION_VOLUME_UP); +} + +void Xbmc::actionVolumeDown() +{ + do_command_action(ACTION_VOLUME_DOWN); +} + +void Xbmc::actionNextSubtitle() +{ + do_command_action(ACTION_NEXT_SUBTITLE); +} + +void Xbmc::actionNextLanguage() +{ + do_command_action(ACTION_AUDIO_NEXT_LANGUAGE); +} + +void Xbmc::actionPlay() +{ + do_command_action(ACTION_PLAYER_PLAY); +} + +void Xbmc::actionSelect() +{ + do_command_action(ACTION_SELECT_ITEM); +} + +void Xbmc::actionStop() +{ + do_command_action(ACTION_STOP); +} diff --git a/src/xbmc.h b/src/xbmc.h new file mode 100644 index 0000000..03227c2 --- /dev/null +++ b/src/xbmc.h @@ -0,0 +1,40 @@ +#ifndef XBMC_H +#define XBMC_H + +#include +#include + +class Xbmc : public QObject +{ + Q_OBJECT +public: + Xbmc(QObject* parent = 0); + ~Xbmc(); + + void actionRight(); + void actionLeft(); + void actionUp(); + void actionDown(); + + void actionMute(); + void actionVolumeUp(); + void actionVolumeDown(); + + void actionNextSubtitle(); + void actionNextLanguage(); + + void actionPlay(); + void actionStop(); + + void actionSelect(); + +private slots: + void commandActionFinished(); + +private: + void do_command_action(int action); + + QNetworkAccessManager *m_manager; +}; + +#endif // XBMC_H