+++ /dev/null
-Package: ameter
-Version: 0.0.1
-Section: user/utilities
-Priority: optional
-Architecture: armel
-Installed-Size: 108
-Maintainer: Ivan Gorinov <igorinov@yandex.ru>
-Description: Graphical acceleration indicator
- This application displays a 2D acceleration indicator
-Maemo-Display-Name: ameter
-Maemo-Icon-26: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAB8RJREFUaIHtmWtsVMcVx3/n3l3vw2vv2oBZzCu80kahiPCqmhdBLWlTRYrUSIRQoQhaAe2HqrRVSSulxY1aNYqqkC9taWiUSlHUikhtJScFWuJS0pRHGyAkvGyDg7ExrPH6sV7b67339MMuu3vXuzZrm0iR+H/x3ZkzM///zJkzZ8bwKYcULN0yP0jU8k0Lu8u3PTm32m3atpW0b9wbqWldt26v9QlzHBVZAVvmB0kaz6FsXTy/PPDoyhDBgIlqgVaqNnAFpF3Rj1HZhyEtpiVtlg5fqltzKPnJC9i08HngWRDX99fXEiw3sVUptkgOqNoqDAgSBT2i0IwtTaaphy3DHaktu9G3dcX/hm+zgEUdCNMNgZ2bZ2PbmmOieX9HVQMIqqhgX0WkA7isIvtBL1pJq9W8Pr25bt3exOQJeGauF7NsAIV5Mzw881jNCEKFiZJTl/97bKREakSRiIge3/lQw6bS6IMLAI/pIe21blc+gWKECtkV2jDFIYKA1AjUAL6SGqdhjE6sNEIjRd16e1UpdTDg5goUHdTp94ZAbNAiEh3mc+FVzKoKU+71c62/ic6BVvoTUUSMvPZjUi8w7oQEFIYAJxtjtLZ7+dqSp9i2aitedxkiQsIaoGuwnXOdh/nn5T/kiUjTUxtNkzTEJDsxpbveGAIK74GkpXx4wc9LT/2Ux5asRiRrV2b6CJcvIFw+n0s9J/i454NMvapw7EwvO778PWwZpKO/iQtdR/LGEUrZ/GMIyIUiIkSiw7y+/xqRXR/hMrNN+hIRDjUdwGPPYc09X8Bluti05GWao8d58/zzJKx+2joTN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mknJg+DmNG+ZHyRpdqNw92wfG9ZOzTNL3cz2/LWTDSs28MOvbqU6ECrQnfLaB9tp6TmVuReLQP+AhZmcwWdmzMNf5qG170NiiS5sbCTtBKo01z38zsJSBdzipT4V659YHeTd83u5/MYFdq1/gZrKrNCBZB9H2t50kE9tZKHca6J0cLH3alqUpPOh8fl9LkrqYVrIzZdWVTJl5nm++eqz9MR7M3VDyX5OXT9Q8Fkl/RaBISaGmJNC/CayPd3SG24qhagJeThw9l/sbngjUxfyhtl23++4v/ZpvGZgRLY6JoSW0hqkkBVQwnh2+g31j0ff4krX1Uy511XBytrH8bj8pXWYIvBuiQ2A8QZfYPV9Idpizfzyrd1F+Iz4KPIbFG014c/j4ZGNQpbZjV0sChViJ+k7gBIfFKr8lXjdXuLJ7nQSl7UbrQ/Qn6iv/Fd1K+rj4xGQjUIlrfjNV7dURAn4lIR2MzRE+uYmDrscJBX6BPsEyEVFz5O0d9WtqB933j3KQZY7e6P9j0DQ9PVQRpp0o3SCXlFhPypNGFaLeivO7FxePyAy8dw0JSB6MUbFol4g5+lh9KVXtEfQG6rahsgBEaNRbKvFtvQjHnkkXid1o2ZndRNlnkZKwF4sNusOVH8OVBegbIlqv4qcBr0o0GiI8Q9bpc1vxKM7Hnyvz9ni0CTRGxs5L7VNr+BbGDNNeVGVcqBLhDZF/y5iNKptX/Ibg6fjD6zt3znG7N7BHdzBHdzBpwb/BzqK/6HhZmA8AAAAAElFTkSuQmCC
+++ /dev/null
-543e88aeaabbf8b2b0e973a9acad747a usr/share/applications/hildon/ameter.desktop
-d2a682ad86b8f28e24ba18cbe3404e5a usr/share/icons/hicolor/64x64/apps/ameter.png
-be215c9369fe1807fcf328e806230563 usr/share/doc/ameter/copyright
-d70f30584982d3eda0c2c3c6c9468092 usr/share/doc/ameter/changelog.gz
-8dd134475c980cfd9fac24e9b467ac17 usr/bin/ameter
+++ /dev/null
-[Desktop Entry]
-Encoding=UTF-8
-Version=1.0
-Type=Application
-Terminal=false
-Name=ameter
-Exec=/usr/bin/ameter
-Icon=ameter
-X-Window-Icon=
-X-HildonDesk-ShowInToolbar=true
-X-Osso-Type=application/x-executable
+++ /dev/null
-This package was debianized by Ivan Gorinov <igorinov@unknown> on
-Mon, 27 Jun 2011 22:36:07 -0700.
-
-It was downloaded from <url://example.com>
-
-Upstream Author(s):
-
- <put author's name and email here>
- <likewise for another author>
-
-Copyright:
-
- <Copyright (C) YYYY Name OfAuthor>
- <likewise for another author>
-
-License:
-
- This package 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 2 of the License, or
- (at your option) any later version.
-
- This package 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 package; if not, write to the Free Software
- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-
-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, Ivan Gorinov <igorinov@unknown> and
-is licensed under the GPL, see above.
-
-
-# Please also look if there are files or directories which have a
-# different copyright/license attached and list them here.
+++ /dev/null
-/****************************************************************************
-** Meta object code from reading C++ file 'ameterwidget.h'
-**
-** Created: Sun Aug 7 15:34:40 2011
-** by: The Qt Meta Object Compiler version 62 (Qt 4.7.0)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "ameterwidget.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'ameterwidget.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 62
-#error "This file was generated using the moc from 4.7.0. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_AMeterWidget[] = {
-
- // content:
- 5, // revision
- 0, // classname
- 0, 0, // classinfo
- 1, 14, // methods
- 0, 0, // properties
- 0, 0, // enums/sets
- 0, 0, // constructors
- 0, // flags
- 0, // signalCount
-
- // slots: signature, parameters, type, tag, flags
- 27, 19, 14, 13, 0x0a,
-
- 0 // eod
-};
-
-static const char qt_meta_stringdata_AMeterWidget[] = {
- "AMeterWidget\0\0bool\0reading\0"
- "filter(QAccelerometerReading*)\0"
-};
-
-const QMetaObject AMeterWidget::staticMetaObject = {
- { &QWidget::staticMetaObject, qt_meta_stringdata_AMeterWidget,
- qt_meta_data_AMeterWidget, 0 }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &AMeterWidget::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *AMeterWidget::metaObject() const
-{
- return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *AMeterWidget::qt_metacast(const char *_clname)
-{
- if (!_clname) return 0;
- if (!strcmp(_clname, qt_meta_stringdata_AMeterWidget))
- return static_cast<void*>(const_cast< AMeterWidget*>(this));
- if (!strcmp(_clname, "QAccelerometerFilter"))
- return static_cast< QAccelerometerFilter*>(const_cast< AMeterWidget*>(this));
- return QWidget::qt_metacast(_clname);
-}
-
-int AMeterWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
- _id = QWidget::qt_metacall(_c, _id, _a);
- if (_id < 0)
- return _id;
- if (_c == QMetaObject::InvokeMetaMethod) {
- switch (_id) {
- case 0: { bool _r = filter((*reinterpret_cast< QAccelerometerReading*(*)>(_a[1])));
- if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
- default: ;
- }
- _id -= 1;
- }
- return _id;
-}
-QT_END_MOC_NAMESPACE
+++ /dev/null
-/****************************************************************************
-** Meta object code from reading C++ file 'asettings.h'
-**
-** Created: Sun Aug 7 15:34:40 2011
-** by: The Qt Meta Object Compiler version 62 (Qt 4.7.0)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "asettings.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'asettings.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 62
-#error "This file was generated using the moc from 4.7.0. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_SettingsDialog[] = {
-
- // content:
- 5, // revision
- 0, // classname
- 0, 0, // classinfo
- 1, 14, // methods
- 0, 0, // properties
- 0, 0, // enums/sets
- 0, 0, // constructors
- 0, // flags
- 0, // signalCount
-
- // slots: signature, parameters, type, tag, flags
- 16, 15, 15, 15, 0x0a,
-
- 0 // eod
-};
-
-static const char qt_meta_stringdata_SettingsDialog[] = {
- "SettingsDialog\0\0accept()\0"
-};
-
-const QMetaObject SettingsDialog::staticMetaObject = {
- { &QDialog::staticMetaObject, qt_meta_stringdata_SettingsDialog,
- qt_meta_data_SettingsDialog, 0 }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &SettingsDialog::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *SettingsDialog::metaObject() const
-{
- return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *SettingsDialog::qt_metacast(const char *_clname)
-{
- if (!_clname) return 0;
- if (!strcmp(_clname, qt_meta_stringdata_SettingsDialog))
- return static_cast<void*>(const_cast< SettingsDialog*>(this));
- return QDialog::qt_metacast(_clname);
-}
-
-int SettingsDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
- _id = QDialog::qt_metacall(_c, _id, _a);
- if (_id < 0)
- return _id;
- if (_c == QMetaObject::InvokeMetaMethod) {
- switch (_id) {
- case 0: accept(); break;
- default: ;
- }
- _id -= 1;
- }
- return _id;
-}
-QT_END_MOC_NAMESPACE
+++ /dev/null
-/****************************************************************************
-** Meta object code from reading C++ file 'mainwindow.h'
-**
-** Created: Sun Aug 7 15:34:40 2011
-** by: The Qt Meta Object Compiler version 62 (Qt 4.7.0)
-**
-** WARNING! All changes made in this file will be lost!
-*****************************************************************************/
-
-#include "mainwindow.h"
-#if !defined(Q_MOC_OUTPUT_REVISION)
-#error "The header file 'mainwindow.h' doesn't include <QObject>."
-#elif Q_MOC_OUTPUT_REVISION != 62
-#error "This file was generated using the moc from 4.7.0. It"
-#error "cannot be used with the include files from this version of Qt."
-#error "(The moc has changed too much.)"
-#endif
-
-QT_BEGIN_MOC_NAMESPACE
-static const uint qt_meta_data_MainWindow[] = {
-
- // content:
- 5, // revision
- 0, // classname
- 0, 0, // classinfo
- 1, 14, // methods
- 0, 0, // properties
- 0, 0, // enums/sets
- 0, 0, // constructors
- 0, // flags
- 0, // signalCount
-
- // slots: signature, parameters, type, tag, flags
- 12, 11, 11, 11, 0x0a,
-
- 0 // eod
-};
-
-static const char qt_meta_stringdata_MainWindow[] = {
- "MainWindow\0\0changeSettings()\0"
-};
-
-const QMetaObject MainWindow::staticMetaObject = {
- { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow,
- qt_meta_data_MainWindow, 0 }
-};
-
-#ifdef Q_NO_DATA_RELOCATION
-const QMetaObject &MainWindow::getStaticMetaObject() { return staticMetaObject; }
-#endif //Q_NO_DATA_RELOCATION
-
-const QMetaObject *MainWindow::metaObject() const
-{
- return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
-}
-
-void *MainWindow::qt_metacast(const char *_clname)
-{
- if (!_clname) return 0;
- if (!strcmp(_clname, qt_meta_stringdata_MainWindow))
- return static_cast<void*>(const_cast< MainWindow*>(this));
- return QMainWindow::qt_metacast(_clname);
-}
-
-int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
-{
- _id = QMainWindow::qt_metacall(_c, _id, _a);
- if (_id < 0)
- return _id;
- if (_c == QMetaObject::InvokeMetaMethod) {
- switch (_id) {
- case 0: changeSettings(); break;
- default: ;
- }
- _id -= 1;
- }
- return _id;
-}
-QT_END_MOC_NAMESPACE
+++ /dev/null
-#include "telepathist.h"
-
-#include <QtDBus/QtDBus>
-
-struct SimplePresence
-{
- unsigned type;
- QString status;
- QString message;
-};
-
-Q_DECLARE_METATYPE(SimplePresence)
-
-
-QDBusArgument &operator<<(QDBusArgument &argument, const SimplePresence &mystatus)
-{
- argument.beginStructure();
- argument << mystatus.type;
- argument << mystatus.status;
- argument << mystatus.message;
- argument.endStructure();
-
- return argument;
-}
-
-const QDBusArgument &operator>>(const QDBusArgument &argument, SimplePresence &mystatus)
-{
- argument.beginStructure();
- argument >> mystatus.type;
- argument >> mystatus.status;
- argument >> mystatus.message;
- argument.endStructure();
-
- return argument;
-}
-
-Telepathist::Telepathist(QObject *parent)
-{
- qDBusRegisterMetaType<SimplePresence>();
-}
-
-Telepathist::~Telepathist()
-{
-}
-
-void Telepathist::setStatus(unsigned type, QString status, QString message)
-{
- QDBusConnection bus = QDBusConnection::sessionBus();
-
- QDBusInterface *dbi, *dbi2;
- QDBusArgument a;
- SimplePresence ms;
-
- ms.type = type; // 3;
- ms.status = status; // "away";
- ms.message = message; // "Fishing.";
-
- dbi = new QDBusInterface("org.freedesktop.Telepathy.AccountManager", "/org/freedesktop/Telepathy/AccountManager", "", bus, this);
- QDBusReply<QDBusVariant> reply = dbi->call(QDBus::AutoDetect, "Get", "org.freedesktop.Telepathy.AccountManager", "ValidAccounts");
-
- if (reply.isValid()) {
- QDBusVariant validAccounts = reply.value();
- const QVariant var = validAccounts.variant();
- const QDBusArgument arg = var.value<QDBusArgument>();
- a << ms;
-
- arg.beginArray();
- while (!arg.atEnd()) {
- QDBusObjectPath opath;
- arg >> opath;
- dbi2 = new QDBusInterface("org.freedesktop.Telepathy.AccountManager", opath.path(), "org.freedesktop.DBus.Properties", bus, this);
- dbi2->call(QDBus::AutoDetect, "Set", "org.freedesktop.Telepathy.Account", "RequestedPresence", /* a.asVariant()*/
- QVariant::fromValue(QDBusVariant(QVariant::fromValue(a))) );
- }
- arg.endArray();
- }
-}
+++ /dev/null
-#ifndef TELEPATHIST_H
-#define TELEPATHIST_H
-
-#include <QObject>
-
-class Telepathist: public QObject
-{
- Q_OBJECT
-
-public:
- Telepathist(QObject *parent = 0);
- ~Telepathist();
-
-public slots:
- void setStatus(unsigned type, QString status, QString Message);
-
-protected:
-};
-
-#endif // TELEPATHIST_H
-