summaryrefslogtreecommitdiffstats
path: root/RadioTuner/build
diff options
context:
space:
mode:
authorAnselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>2011-03-03 17:09:35 -0300
committerAnselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>2011-03-03 19:21:03 -0300
commitd7d612ff07253b1cc1ffa4be489a8d90ec750af6 (patch)
tree3a58a0fd8cba98c67dffb030e84769bd0280475a /RadioTuner/build
parent3d1495cc84ce8a274cbda6023d56e75de671eed9 (diff)
RadioTuner
Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
Diffstat (limited to 'RadioTuner/build')
-rw-r--r--RadioTuner/build/build.pro17
-rw-r--r--RadioTuner/build/debian/changelog5
-rw-r--r--RadioTuner/build/debian/compat1
-rw-r--r--RadioTuner/build/debian/control13
-rwxr-xr-xRadioTuner/build/debian/rules19
-rw-r--r--RadioTuner/build/main.cpp36
-rw-r--r--RadioTuner/build/mainwindow.cpp39
-rw-r--r--RadioTuner/build/mainwindow.h22
-rw-r--r--RadioTuner/build/resource.qrc43
9 files changed, 195 insertions, 0 deletions
diff --git a/RadioTuner/build/build.pro b/RadioTuner/build/build.pro
new file mode 100644
index 0000000..a0c6a18
--- /dev/null
+++ b/RadioTuner/build/build.pro
@@ -0,0 +1,17 @@
+TEMPLATE = app
+TARGET = radiotuner
+
+QT += declarative
+
+symbian {
+ LIBS += -lesock -lconnmon -lcone -lavkon
+
+ TARGET.UID3 = 0xe3431593
+ TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
+
+ DEPLOYMENT.installer_header = 0xA000D7CE
+}
+
+SOURCES += main.cpp
+
+RESOURCES += resource.qrc
diff --git a/RadioTuner/build/debian/changelog b/RadioTuner/build/debian/changelog
new file mode 100644
index 0000000..16f5a75
--- /dev/null
+++ b/RadioTuner/build/debian/changelog
@@ -0,0 +1,5 @@
+radiotuner (0.1-1) unstable; urgency=low
+
+ * Initial release
+
+ -- Adriano Rezende <adriano.rezende@openbossa.org> Thu, 25 Nov 2010 10:37:30 -0300
diff --git a/RadioTuner/build/debian/compat b/RadioTuner/build/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/RadioTuner/build/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/RadioTuner/build/debian/control b/RadioTuner/build/debian/control
new file mode 100644
index 0000000..f24ba17
--- /dev/null
+++ b/RadioTuner/build/debian/control
@@ -0,0 +1,13 @@
+Source: radiotuner
+Section: user/Other
+Priority: extra
+Maintainer: Adriano Rezende <adriano.rezende@openbossa.org>
+Build-Depends: debhelper (>= 5), libqt4-experimental-dev
+Standards-Version: 3.8.4
+
+Package: radiotuner
+Section: user/Other
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Radio Tuner
+ Qt Quick demo.
diff --git a/RadioTuner/build/debian/rules b/RadioTuner/build/debian/rules
new file mode 100755
index 0000000..f62b045
--- /dev/null
+++ b/RadioTuner/build/debian/rules
@@ -0,0 +1,19 @@
+#!/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
+
+DEB_BUILDDIR = debian/builddeb
+DEB_QMAKE_ARGS = $(CURDIR)/build.pro
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/qmake.mk
+
+clear::
+ rm -fr $(DEB_BUILDDIR)
diff --git a/RadioTuner/build/main.cpp b/RadioTuner/build/main.cpp
new file mode 100644
index 0000000..c766754
--- /dev/null
+++ b/RadioTuner/build/main.cpp
@@ -0,0 +1,36 @@
+#include <QApplication>
+#include <QDeclarativeView>
+#include <QDeclarativeEngine>
+
+#ifdef Q_OS_SYMBIAN
+#include <eikenv.h>
+#include <aknappui.h>
+#endif
+
+
+int main(int argc, char **argv)
+{
+ QApplication app(argc, argv);
+
+#ifdef Q_OS_SYMBIAN
+ // lock portrait mode for symbian
+ CAknAppUi *akn = dynamic_cast<CAknAppUi*>(CEikonEnv::Static()->AppUi());
+ TRAPD(error, if (akn) akn->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape); );
+#endif
+
+ QDeclarativeView view;
+#ifdef Q_OS_SYMBIAN
+ view.setSource(QUrl("qrc:main_s60.qml"));
+#else
+ view.setSource(QUrl("qrc:main_n900.qml"));
+#endif
+ QObject::connect(view.engine(), SIGNAL(quit()), qApp, SLOT(quit()));
+
+#if defined(Q_OS_SYMBIAN) || defined(Q_WS_MAEMO_5)
+ view.showFullScreen();
+#else
+ view.show();
+#endif
+
+ return app.exec();
+}
diff --git a/RadioTuner/build/mainwindow.cpp b/RadioTuner/build/mainwindow.cpp
new file mode 100644
index 0000000..0fd7157
--- /dev/null
+++ b/RadioTuner/build/mainwindow.cpp
@@ -0,0 +1,39 @@
+#include "mainwindow.h"
+
+#include <QApplication>
+#include <QDeclarativeEngine>
+
+#if defined(Q_OS_SYMBIAN)
+#include <QTimer>
+#include <eikenv.h>
+#include <coemain.h>
+#include <aknappui.h>
+#endif
+
+MainWindow::MainWindow()
+ : QDeclarativeView(),
+ m_isPortrait(false)
+{
+ setSource(QUrl::fromLocalFile("c://data/radiotuner/main_s60.qml"));
+
+ QObject::connect(engine(), SIGNAL(quit()), qApp, SLOT(quit()));
+
+#if defined(Q_OS_SYMBIAN)
+ QTimer::singleShot(0, this, SLOT(lockViewMode()));
+#endif
+}
+
+#if defined(Q_OS_SYMBIAN)
+void MainWindow::lockViewMode()
+{
+ CAknAppUi *aknAppUi = dynamic_cast<CAknAppUi *>(CEikonEnv::Static()->AppUi());
+
+ if (!aknAppUi)
+ return;
+
+ if (m_isPortrait)
+ aknAppUi->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
+ else
+ aknAppUi->SetOrientationL(CAknAppUi::EAppUiOrientationLandscape);
+}
+#endif
diff --git a/RadioTuner/build/mainwindow.h b/RadioTuner/build/mainwindow.h
new file mode 100644
index 0000000..8e92912
--- /dev/null
+++ b/RadioTuner/build/mainwindow.h
@@ -0,0 +1,22 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QDeclarativeView>
+
+class MainWindow : public QDeclarativeView
+{
+ Q_OBJECT
+
+public:
+ MainWindow();
+
+protected slots:
+#ifdef Q_OS_SYMBIAN
+ void lockViewMode();
+#endif
+
+private:
+ bool m_isPortrait;
+};
+
+#endif
diff --git a/RadioTuner/build/resource.qrc b/RadioTuner/build/resource.qrc
new file mode 100644
index 0000000..5cf653c
--- /dev/null
+++ b/RadioTuner/build/resource.qrc
@@ -0,0 +1,43 @@
+<RCC>
+<qresource prefix="/">
+ <file>../content/RadioTuner.qml</file>
+ <file>../content/rangemodel.js</file>
+ <file>../content/RangeStation.qml</file>
+ <file>../content/images/n900/close.png</file>
+ <file>../content/images/n900/bt_next_down.png</file>
+ <file>../content/images/n900/medium_tick.png</file>
+ <file>../content/images/n900/low_tick.png</file>
+ <file>../content/images/n900/bt_prev_down.png</file>
+ <file>../content/images/n900/scala_glass.png</file>
+ <file>../content/images/n900/scala_ticks.png</file>
+ <file>../content/images/n900/bt_next.png</file>
+ <file>../content/images/n900/top.png</file>
+ <file>../content/images/n900/scala_bg.png</file>
+ <file>../content/images/n900/bt_prev.png</file>
+ <file>../content/images/n900/bt_rdsname_arrow.png</file>
+ <file>../content/images/n900/high_tick.png</file>
+ <file>../content/images/n900/bottom.png</file>
+ <file>../content/images/n900/scala_rdslabel.png</file>
+ <file>../content/images/n900/scala_needle.png</file>
+ <file>../content/images/s60/close.png</file>
+ <file>../content/images/s60/bt_next_down.png</file>
+ <file>../content/images/s60/medium_tick.png</file>
+ <file>../content/images/s60/low_tick.png</file>
+ <file>../content/images/s60/bt_prev_down.png</file>
+ <file>../content/images/s60/scala_glass.png</file>
+ <file>../content/images/s60/scala_ticks.png</file>
+ <file>../content/images/s60/bt_next.png</file>
+ <file>../content/images/s60/top.png</file>
+ <file>../content/images/s60/scala_bg.png</file>
+ <file>../content/images/s60/bt_prev.png</file>
+ <file>../content/images/s60/bt_rdsname_arrow.png</file>
+ <file>../content/images/s60/high_tick.png</file>
+ <file>../content/images/s60/bottom.png</file>
+ <file>../content/images/s60/scala_rdslabel.png</file>
+ <file>../content/images/s60/scala_needle.png</file>
+ <file>../content/RadioModel.qml</file>
+ <file>../content/StationsModel.qml</file>
+ <file>../main_s60.qml</file>
+ <file>../main_n900.qml</file>
+</qresource>
+</RCC>