From acfccb1f63dd621809581c09b3f9690e3b2e50f2 Mon Sep 17 00:00:00 2001 From: Developer Date: Wed, 27 Jul 2011 18:14:06 +0200 Subject: [PATCH] LatitudeUpdater 0.1, based in qtm-location and qml --- .gitignore | 6 +- GoogleLatitudeCommon.pri | 16 -- GoogleLatitudeDaemon.pro | 6 - GoogleLatitudeGUI.pro | 6 - data/Readme.icons | 4 - data/glupdater | 13 -- data/googlelatitude.desktop | 10 -- data/googlelatitude.png | Bin 3646 -> 0 bytes debian/README | 6 - debian/README.Debian | 6 - debian/changelog | 129 ---------------- debian/compat | 1 - debian/control | 94 ------------ debian/copyright | 34 ----- debian/cron.d.ex | 4 - debian/docs | 1 - debian/emacsen-install.ex | 45 ------ debian/emacsen-remove.ex | 15 -- debian/emacsen-startup.ex | 25 ---- debian/googlelatitude.default.ex | 10 -- debian/googlelatitude.doc-base.EX | 22 --- debian/googlelatitude.install | 5 - debian/init.d.ex | 157 -------------------- debian/init.d.lsb.ex | 296 ------------------------------------- debian/manpage.1.ex | 59 -------- debian/manpage.sgml.ex | 156 ------------------- debian/manpage.xml.ex | 291 ------------------------------------ debian/menu.ex | 2 - debian/optify | 1 - debian/postinst.ex | 41 ----- debian/postrm.ex | 39 ----- debian/preinst.ex | 37 ----- debian/prerm.ex | 40 ----- debian/rules | 72 --------- debian/watch.ex | 23 --- googlelatitude.pro | 3 - src/daemon.cpp | 43 ------ src/daemon.h | 26 ---- src/glatitude.cpp | 95 ------------ src/glatitude.h | 37 ----- src/gps.cpp | 110 -------------- src/gps.h | 63 -------- src/latitude.cpp | 196 ------------------------ src/latitude.h | 49 ------ src/main-daemon.cpp | 22 --- src/main-gui.cpp | 14 -- 46 files changed, 1 insertion(+), 2329 deletions(-) delete mode 100644 GoogleLatitudeCommon.pri delete mode 100644 GoogleLatitudeDaemon.pro delete mode 100644 GoogleLatitudeGUI.pro delete mode 100644 data/Readme.icons delete mode 100644 data/glupdater delete mode 100644 data/googlelatitude.desktop delete mode 100644 data/googlelatitude.png delete mode 100644 debian/README delete mode 100644 debian/README.Debian delete mode 100644 debian/changelog delete mode 100644 debian/compat delete mode 100644 debian/control delete mode 100644 debian/copyright delete mode 100644 debian/cron.d.ex delete mode 100644 debian/docs delete mode 100644 debian/emacsen-install.ex delete mode 100644 debian/emacsen-remove.ex delete mode 100644 debian/emacsen-startup.ex delete mode 100644 debian/googlelatitude.default.ex delete mode 100644 debian/googlelatitude.doc-base.EX delete mode 100644 debian/googlelatitude.install delete mode 100644 debian/init.d.ex delete mode 100644 debian/init.d.lsb.ex delete mode 100644 debian/manpage.1.ex delete mode 100644 debian/manpage.sgml.ex delete mode 100644 debian/manpage.xml.ex delete mode 100644 debian/menu.ex delete mode 100644 debian/optify delete mode 100644 debian/postinst.ex delete mode 100644 debian/postrm.ex delete mode 100644 debian/preinst.ex delete mode 100644 debian/prerm.ex delete mode 100755 debian/rules delete mode 100644 debian/watch.ex delete mode 100644 googlelatitude.pro delete mode 100644 src/daemon.cpp delete mode 100644 src/daemon.h delete mode 100644 src/glatitude.cpp delete mode 100644 src/glatitude.h delete mode 100644 src/gps.cpp delete mode 100644 src/gps.h delete mode 100644 src/latitude.cpp delete mode 100644 src/latitude.h delete mode 100644 src/main-daemon.cpp delete mode 100644 src/main-gui.cpp diff --git a/.gitignore b/.gitignore index e734ff9..1a83395 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ -Makefile -googlelatitude.pro.user -build/* -build-stamp -configure-stamp +LatitudeUpdater.pro.user diff --git a/GoogleLatitudeCommon.pri b/GoogleLatitudeCommon.pri deleted file mode 100644 index e39bd9d..0000000 --- a/GoogleLatitudeCommon.pri +++ /dev/null @@ -1,16 +0,0 @@ -HEADERS += src/glatitude.h src/gps.h -SOURCES += src/glatitude.cpp src/gps.cpp - -OBJECTS_DIR = build -MOC_DIR = build -DESTDIR = build - -TEMPLATE = app - -QT += network - -contains(QT_CONFIG, maemo5) { - QT += maemo5 - CONFIG += link_pkgconfig - PKGCONFIG += glib-2.0 liblocation -} diff --git a/GoogleLatitudeDaemon.pro b/GoogleLatitudeDaemon.pro deleted file mode 100644 index f4fbe2c..0000000 --- a/GoogleLatitudeDaemon.pro +++ /dev/null @@ -1,6 +0,0 @@ -include(GoogleLatitudeCommon.pri) -TARGET = GoogleLatitudeDaemon -HEADERS += src/daemon.h -SOURCES += src/daemon.cpp src/main-daemon.cpp - -QT -= gui diff --git a/GoogleLatitudeGUI.pro b/GoogleLatitudeGUI.pro deleted file mode 100644 index 3d43ee1..0000000 --- a/GoogleLatitudeGUI.pro +++ /dev/null @@ -1,6 +0,0 @@ -include(GoogleLatitudeCommon.pri) -TARGET = GoogleLatitudeGUI -HEADERS += src/latitude.h -SOURCES += src/latitude.cpp src/main-gui.cpp - -QT += webkit diff --git a/data/Readme.icons b/data/Readme.icons deleted file mode 100644 index aae0abf..0000000 --- a/data/Readme.icons +++ /dev/null @@ -1,4 +0,0 @@ -Thanks to: - Joppu http://talk.maemo.org/member.php?u=24013 - http://talk.maemo.org/showpost.php?p=449435&postcount=83 - diff --git a/data/glupdater b/data/glupdater deleted file mode 100644 index 62c9362..0000000 --- a/data/glupdater +++ /dev/null @@ -1,13 +0,0 @@ -author "Danilo Luvizotto " -description "Google Latitude Updater Daemon" - -start on started hildon-desktop - -console output - -post-stop script - killall -9 GoogleLatitudeDaemon -end script - -exec /bin/su - user -c "/opt/linfati.com/GoogleLatitudeDaemon --init" - diff --git a/data/googlelatitude.desktop b/data/googlelatitude.desktop deleted file mode 100644 index 091b4ab..0000000 --- a/data/googlelatitude.desktop +++ /dev/null @@ -1,10 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Version=1.0 -Type=Application -Name=Latitude & Buzz -Exec=/opt/linfati.com/GoogleLatitudeGUI -Icon=googlelatitude -X-HildonDesk-ShowInToolbar=true -X-Osso-Type=application/x-executable - diff --git a/data/googlelatitude.png b/data/googlelatitude.png deleted file mode 100644 index d98268f31e1c847a9b0e0d3fda477d7079f494d9..0000000000000000000000000000000000000000 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?@XECCx84Q7gCKUxW0H~37WZatC4#-FWhK*gV=V$s6LBf!C+d)7jY53w z54e~$U-hKd`_~o~WB3{^V5z+X;mSF8Tk@Xu#^O3&0Kw@%%}*xkNPZ`%`YorSdx5Yp zftERw=1`LIV|qtp&?D(EM~B1Kxo7BzV1`$mgrlwrCpVlzO}SmQeYvnCxjhtlw0ga9=n;!;ewKBo^S!j(Wv-?idaPN=!adt5Y}-?oO-@L!YwH6mh? z1@wI=jT6Dz;*;B3-{WeTrA-X~RS=*?M3-J-kkZzM|EdU3Ap&h}xIY5^4?arL+YO$1 Qv;Y7A07*qoM6N<$f^%-)0RR91 diff --git a/debian/README b/debian/README deleted file mode 100644 index c757c22..0000000 --- a/debian/README +++ /dev/null @@ -1,6 +0,0 @@ -The Debian Package googlelatitude ----------------------------- - -Comments regarding the Package - - -- Rodrigo Linfati sab, 02 gen 2010 22:12:52 +0100 diff --git a/debian/README.Debian b/debian/README.Debian deleted file mode 100644 index 45a379d..0000000 --- a/debian/README.Debian +++ /dev/null @@ -1,6 +0,0 @@ -googlelatitude for Debian -------------------------- - - - - -- Rodrigo Linfati sab, 02 gen 2010 22:12:52 +0100 diff --git a/debian/changelog b/debian/changelog deleted file mode 100644 index 85b8e7d..0000000 --- a/debian/changelog +++ /dev/null @@ -1,129 +0,0 @@ -googlelatitude (0.6-2) unstable; urgency=low - - * enable use of gps+cell - * fix the "start daemon" bug - - -- Rodrigo Linfati Thu, 27 Jan 2011 16:07:22 +0100 - -googlelatitude (0.6-1) unstable; urgency=low - - * auto update setting for daemon, fix start at boot time, fix NaN in gps eph - - -- Rodrigo Linfati Wed, 26 Jan 2011 17:23:41 +0100 - -googlelatitude (0.6-0) unstable; urgency=low - - * Daemon at boot time (default off) - * If not network, do not try to update - * Use of gps - * Max 120s for a fix, min of 5 in cell-mode and 15 in gps-mode, default 30s - * Updates between 1800s, min 300, max 3600 - - -- Rodrigo Linfati Wed, 26 Jan 2011 16:32:34 +0100 - -googlelatitude (0.4-7) unstable; urgency=low - - * fix maximal accuracy - - -- Rodrigo Linfati Tue, 25 Jan 2011 00:48:01 +0100 - -googlelatitude (0.4-6) unstable; urgency=low - - * GUI for the daemon mode - - -- Rodrigo Linfati Sat, 22 Jan 2011 23:26:09 +0100 - -googlelatitude (0.4-5) unstable; urgency=low - - * New daemon mode - * bugs fix - - -- Rodrigo Linfati Sat, 22 Jan 2011 18:51:23 +0100 - -googlelatitude (0.4-0) unstable; urgency=low - - * Bump version - - -- Rodrigo Linfati Wed, 05 May 2010 16:14:00 +0200 - -googlelatitude (0.3-9) unstable; urgency=low - - * Cleanup, preparation for pr1.2 - * Now Google Location and Buzz - * TODO: geolocation on webkit - - -- Rodrigo Linfati Wed, 05 May 2010 16:05:51 +0200 - -googlelatitude (0.3-8) unstable; urgency=low - - * Testing, minor bugs fix - - -- Rodrigo Linfati Sat, 02 Jan 2010 03:53:51 +0100 - -googlelatitude (0.3-7) unstable; urgency=low - - * libqt4 -> diablo = OK, fremantle -> fail - * libqt4-maemo5 -> fremantle => OK - - -- Rodrigo Linfati Sat, 02 Jan 2010 03:40:22 +0100 - -googlelatitude (0.3-6) unstable; urgency=low - - * test libqt4 + libqt4-maemo5 - - -- Rodrigo Linfati Sat, 02 Jan 2010 02:44:33 +0100 - -googlelatitude (0.3-5) unstable; urgency=low - - * some fix, support to auto update, auto stop on real-fix - - -- Rodrigo Linfati Fri, 01 Jan 2010 23:32:32 +0100 - -googlelatitude (0.3-1) unstable; urgency=low - - * initial support to liblocation - - -- Rodrigo Linfati Fri, 01 Jan 2010 16:20:56 +0100 - -googlelatitude (0.2-2) unstable; urgency=low - - * minor change in gui - - -- Rodrigo Linfati Tue, 29 Dec 2009 23:23:46 +0100 - -googlelatitude (0.2-1) unstable; urgency=low - - * more fix... - - -- Rodrigo Linfati Tue, 29 Dec 2009 21:53:01 +0100 - -googlelatitude (0.2-0) unstable; urgency=low - - * Google Maps via WebKit - - -- Rodrigo Linfati Tue, 29 Dec 2009 12:58:25 +0100 - -googlelatitude (0.1-4) unstable; urgency=low - - * add libgconf2-dev depend... ¿why? - - -- Rodrigo Linfati Wed, 16 Dec 2009 19:08:20 +0100 - -googlelatitude (0.1-3) unstable; urgency=low - - * fix depend from libqt4-dev to libqt4-maemo5-dev - - -- Rodrigo Linfati Wed, 16 Dec 2009 16:35:12 +0100 - -googlelatitude (0.1-2) unstable; urgency=low - - * fix section - - -- Rodrigo Linfati Wed, 16 Dec 2009 15:34:52 +0100 - -googlelatitude (0.1-1) unstable; urgency=low - - * Initial release - - -- Rodrigo Linfati Tue, 15 Dec 2009 20:42:16 +0100 - diff --git a/debian/compat b/debian/compat deleted file mode 100644 index 7ed6ff8..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -5 diff --git a/debian/control b/debian/control deleted file mode 100644 index f692c71..0000000 --- a/debian/control +++ /dev/null @@ -1,94 +0,0 @@ -Source: googlelatitude -Section: user/navigation -Priority: optional -Maintainer: Rodrigo Linfati -Build-Depends: debhelper (>= 5), libqt4-dev, liblocation-dev, libgconf2-dev -Standards-Version: 3.7.2 -Homepage: http://googlelatitude.garage.maemo.org/ -XSBC-Bugtracker: mailto:rodrigo@linfati.cl - -Package: googlelatitude -Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends} -Description: Google Latitude and Buzz - Google Latitude Updater is written in QT4. - Features: - - Retrieve location using Cell Tower and send to Google Latitude - - View Location of Friends - - View Buzz of Friends - - View and Search on Google Maps - - Run as Daemon -XB-Maemo-Display-Name: Google Latitude and Buzz -XB-Description: Google Latitude and Buzz Client - Google Latitude Updater is written in QT4. - Features: - - Retrieve location using Cell Tower and send to Google Latitude - - View Location of Friends - - View Buzz of Friends - - View and Search on Google Maps - - Run as Daemon -XB-Maemo-Icon-26: - iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAAEgBckRAAAAB3RJTUUH2gEC - ARA3G6WpuwAAAAlwSFlzAAAN1gAADdYBkG95nAAAAARnQU1BAACxjwv8YQUA - AAp3SURBVHja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GqtS - jtYweAUo/07tDNDVWmx45MTDasin9RDohtxQqZFkEx30cHWh6U0/6YR5k86m - alxk/zuNSIxAn5H90PRCBMwdVYSEEu//jOp/VeL24SqpIFQFDnQI8DX1UuhC - U6NEOYCnZTS78tPqYxpeTIhNDEevV/qiNXgIhPYUoVu7eC8PtTcqUXiwCoLI - Z5Jw89kN3zO+SpE7rYCdIl70k6HhzTOH/2EggmJCYAyh6lLfU0mXLI77+ai9 - RYIfqCDBtSeJ2RwS3NAxft2sgJ0ievrJ0miEKTFLwrjAqGCIoS9LOKE8D3UF - j1Cwr0IUBE02MZlNgrd0js9zUsBOER9icornTeOjSRFGr+DvD0hw7SXqzyDB - m7tG/zkrYKeIH0WNsxJNQZxKgjd2D12lyP8DUHmCrUaJp5UAAAAASUVORK5C - YII= - diff --git a/debian/copyright b/debian/copyright deleted file mode 100644 index 73b9a6b..0000000 --- a/debian/copyright +++ /dev/null @@ -1,34 +0,0 @@ -This package was debianized by Rodrigo Linfati on -sab, 02 gen 2010 22:12:52 +0100. - -It was downloaded from - -Upstream Author(s): - - Rodrigo Linfati - -Copyright: - - Copyright (C) 2009 Rodrigo Linfati - -License: - - This package is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser 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 - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser 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 Lesser General -Public License can be found in `/usr/share/common-licenses/LGPL'. - -The Debian packaging is (C) 2010, Rodrigo Linfati and -is licensed under the GPL, see `/usr/share/common-licenses/GPL'. diff --git a/debian/cron.d.ex b/debian/cron.d.ex deleted file mode 100644 index 58708e8..0000000 --- a/debian/cron.d.ex +++ /dev/null @@ -1,4 +0,0 @@ -# -# Regular cron jobs for the googlelatitude package -# -0 4 * * * root [ -x /usr/bin/googlelatitude_maintenance ] && /usr/bin/googlelatitude_maintenance diff --git a/debian/docs b/debian/docs deleted file mode 100644 index c484de9..0000000 --- a/debian/docs +++ /dev/null @@ -1 +0,0 @@ -data/Readme.icons diff --git a/debian/emacsen-install.ex b/debian/emacsen-install.ex deleted file mode 100644 index 509b62a..0000000 --- a/debian/emacsen-install.ex +++ /dev/null @@ -1,45 +0,0 @@ -#! /bin/sh -e -# /usr/lib/emacsen-common/packages/install/googlelatitude - -# Written by Jim Van Zandt , borrowing heavily -# from the install scripts for gettext by Santiago Vila -# and octave by Dirk Eddelbuettel . - -FLAVOR=$1 -PACKAGE=googlelatitude - -if [ ${FLAVOR} = emacs ]; then exit 0; fi - -echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} - -#FLAVORTEST=`echo $FLAVOR | cut -c-6` -#if [ ${FLAVORTEST} = xemacs ] ; then -# SITEFLAG="-no-site-file" -#else -# SITEFLAG="--no-site-file" -#fi -FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" - -ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} -ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} - -# Install-info-altdir does not actually exist. -# Maybe somebody will write it. -if test -x /usr/sbin/install-info-altdir; then - echo install/${PACKAGE}: install Info links for ${FLAVOR} - install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/share/info/${PACKAGE}.info.gz -fi - -install -m 755 -d ${ELCDIR} -cd ${ELDIR} -FILES=`echo *.el` -cp ${FILES} ${ELCDIR} -cd ${ELCDIR} - -cat << EOF > path.el -(setq load-path (cons "." load-path) byte-compile-warnings nil) -EOF -${FLAVOR} ${FLAGS} ${FILES} -rm -f *.el path.el - -exit 0 diff --git a/debian/emacsen-remove.ex b/debian/emacsen-remove.ex deleted file mode 100644 index f45fc69..0000000 --- a/debian/emacsen-remove.ex +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -e -# /usr/lib/emacsen-common/packages/remove/googlelatitude - -FLAVOR=$1 -PACKAGE=googlelatitude - -if [ ${FLAVOR} != emacs ]; then - if test -x /usr/sbin/install-info-altdir; then - echo remove/${PACKAGE}: removing Info links for ${FLAVOR} - install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/share/info/googlelatitude.info.gz - fi - - echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} - rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} -fi diff --git a/debian/emacsen-startup.ex b/debian/emacsen-startup.ex deleted file mode 100644 index d28a9b8..0000000 --- a/debian/emacsen-startup.ex +++ /dev/null @@ -1,25 +0,0 @@ -;; -*-emacs-lisp-*- -;; -;; Emacs startup file, e.g. /etc/emacs/site-start.d/50googlelatitude.el -;; for the Debian googlelatitude package -;; -;; Originally contributed by Nils Naumann -;; Modified by Dirk Eddelbuettel -;; Adapted for dh-make by Jim Van Zandt - -;; The googlelatitude package follows the Debian/GNU Linux 'emacsen' policy and -;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, -;; xemacs19, emacs20, xemacs20...). The compiled code is then -;; installed in a subdirectory of the respective site-lisp directory. -;; We have to add this to the load-path: -(let ((package-dir (concat "/usr/share/" - (symbol-name flavor) - "/site-lisp/googlelatitude"))) -;; If package-dir does not exist, the googlelatitude package must have -;; removed but not purged, and we should skip the setup. - (when (file-directory-p package-dir) - (setq load-path (cons package-dir load-path)) - (autoload 'googlelatitude-mode "googlelatitude-mode" - "Major mode for editing googlelatitude files." t) - (add-to-list 'auto-mode-alist '("\\.googlelatitude$" . googlelatitude-mode)))) - diff --git a/debian/googlelatitude.default.ex b/debian/googlelatitude.default.ex deleted file mode 100644 index 8e0413d..0000000 --- a/debian/googlelatitude.default.ex +++ /dev/null @@ -1,10 +0,0 @@ -# Defaults for googlelatitude initscript -# sourced by /etc/init.d/googlelatitude -# installed at /etc/default/googlelatitude by the maintainer scripts - -# -# This is a POSIX shell fragment -# - -# Additional options that are passed to the Daemon. -DAEMON_OPTS="" diff --git a/debian/googlelatitude.doc-base.EX b/debian/googlelatitude.doc-base.EX deleted file mode 100644 index 97fe9cf..0000000 --- a/debian/googlelatitude.doc-base.EX +++ /dev/null @@ -1,22 +0,0 @@ -Document: googlelatitude -Title: Debian googlelatitude Manual -Author: -Abstract: This manual describes what googlelatitude is - and how it can be used to - manage online manuals on Debian systems. -Section: unknown - -Format: debiandoc-sgml -Files: /usr/share/doc/googlelatitude/googlelatitude.sgml.gz - -Format: postscript -Files: /usr/share/doc/googlelatitude/googlelatitude.ps.gz - -Format: text -Files: /usr/share/doc/googlelatitude/googlelatitude.text.gz - -Format: HTML -Index: /usr/share/doc/googlelatitude/html/index.html -Files: /usr/share/doc/googlelatitude/html/*.html - - diff --git a/debian/googlelatitude.install b/debian/googlelatitude.install deleted file mode 100644 index 0706d6f..0000000 --- a/debian/googlelatitude.install +++ /dev/null @@ -1,5 +0,0 @@ -data/googlelatitude.desktop usr/share/applications/hildon -data/googlelatitude.png usr/share/icons/hicolor/64x64/apps -build/GoogleLatitudeGUI opt/linfati.com -build/GoogleLatitudeDaemon opt/linfati.com -data/glupdater etc/event.d diff --git a/debian/init.d.ex b/debian/init.d.ex deleted file mode 100644 index 2a28586..0000000 --- a/debian/init.d.ex +++ /dev/null @@ -1,157 +0,0 @@ -#! /bin/sh -# -# skeleton example file to build /etc/init.d/ scripts. -# This file should be used to construct scripts for /etc/init.d. -# -# Written by Miquel van Smoorenburg . -# Modified for Debian -# by Ian Murdock . -# Further changes by Javier Fernandez-Sanguino -# -# Version: @(#)skeleton 1.9 26-Feb-2001 miquels@cistron.nl -# - -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -DAEMON=/usr/sbin/googlelatitude -NAME=googlelatitude -DESC=googlelatitude - -test -x $DAEMON || exit 0 - -LOGDIR=/var/log/googlelatitude -PIDFILE=/var/run/$NAME.pid -DODTIME=1 # Time to wait for the server to die, in seconds - # If this value is set too low you might not - # let some servers to die gracefully and - # 'restart' will not work - -# Include googlelatitude defaults if available -if [ -f /etc/default/googlelatitude ] ; then - . /etc/default/googlelatitude -fi - -set -e - -running_pid() -{ - # Check if a given process pid's cmdline matches a given name - pid=$1 - name=$2 - [ -z "$pid" ] && return 1 - [ ! -d /proc/$pid ] && return 1 - cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` - # Is this the expected child? - [ "$cmd" != "$name" ] && return 1 - return 0 -} - -running() -{ -# Check if the process is running looking at /proc -# (works for all users) - - # No pidfile, probably no daemon present - [ ! -f "$PIDFILE" ] && return 1 - # Obtain the pid and check it against the binary name - pid=`cat $PIDFILE` - running_pid $pid $DAEMON || return 1 - return 0 -} - -force_stop() { -# Forcefully kill the process - [ ! -f "$PIDFILE" ] && return - if running ; then - kill -15 $pid - # Is it really dead? - [ -n "$DODTIME" ] && sleep "$DODTIME"s - if running ; then - kill -9 $pid - [ -n "$DODTIME" ] && sleep "$DODTIME"s - if running ; then - echo "Cannot kill $LABEL (pid=$pid)!" - exit 1 - fi - fi - fi - rm -f $PIDFILE - return 0 -} - -case "$1" in - start) - echo -n "Starting $DESC: " - start-stop-daemon --start --quiet --pidfile $PIDFILE \ - --exec $DAEMON -- $DAEMON_OPTS - if running ; then - echo "$NAME." - else - echo " ERROR." - fi - ;; - stop) - echo -n "Stopping $DESC: " - start-stop-daemon --stop --quiet --pidfile $PIDFILE \ - --exec $DAEMON - echo "$NAME." - ;; - force-stop) - echo -n "Forcefully stopping $DESC: " - force_stop - if ! running ; then - echo "$NAME." - else - echo " ERROR." - fi - ;; - #reload) - # - # If the daemon can reload its config files on the fly - # for example by sending it SIGHUP, do it here. - # - # If the daemon responds to changes in its config file - # directly anyway, make this a do-nothing entry. - # - # echo "Reloading $DESC configuration files." - # start-stop-daemon --stop --signal 1 --quiet --pidfile \ - # /var/run/$NAME.pid --exec $DAEMON - #;; - force-reload) - # - # If the "reload" option is implemented, move the "force-reload" - # option to the "reload" entry above. If not, "force-reload" is - # just the same as "restart" except that it does nothing if the - # daemon isn't already running. - # check wether $DAEMON is running. If so, restart - start-stop-daemon --stop --test --quiet --pidfile \ - /var/run/$NAME.pid --exec $DAEMON \ - && $0 restart \ - || exit 0 - ;; - restart) - echo -n "Restarting $DESC: " - start-stop-daemon --stop --quiet --pidfile \ - /var/run/$NAME.pid --exec $DAEMON - [ -n "$DODTIME" ] && sleep $DODTIME - start-stop-daemon --start --quiet --pidfile \ - /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS - echo "$NAME." - ;; - status) - echo -n "$LABEL is " - if running ; then - echo "running" - else - echo " not running." - exit 1 - fi - ;; - *) - N=/etc/init.d/$NAME - # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2 - echo "Usage: $N {start|stop|restart|force-reload|status|force-stop}" >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/debian/init.d.lsb.ex b/debian/init.d.lsb.ex deleted file mode 100644 index 81e064d..0000000 --- a/debian/init.d.lsb.ex +++ /dev/null @@ -1,296 +0,0 @@ -#!/bin/sh -# -# Example init.d script with LSB support. -# -# Please read this init.d carefully and modify the sections to -# adjust it to the program you want to run. -# -# Copyright (c) 2007 Javier Fernandez-Sanguino -# -# This is free software; you may 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, -# or (at your option) any later version. -# -# This 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 with -# the Debian operating system, in /usr/share/common-licenses/GPL; if -# not, write to the Free Software Foundation, Inc., 59 Temple Place, -# Suite 330, Boston, MA 02111-1307 USA -# -### BEGIN INIT INFO -# Provides: googlelatitude -# Required-Start: $network $local_fs -# Required-Stop: -# Should-Start: $named -# Should-Stop: -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: -# Description: -# <...> -# <...> -### END INIT INFO - -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin - -DAEMON=/usr/sbin/googlelatitude # Introduce the server's location here -NAME=#PACKAGE # Introduce the short server's name here -DESC=#PACKAGE # Introduce a short description here -LOGDIR=/var/log/googlelatitude # Log directory to use - -PIDFILE=/var/run/$NAME.pid - -test -x $DAEMON || exit 0 - -. /lib/lsb/init-functions - -# Default options, these can be overriden by the information -# at /etc/default/$NAME -DAEMON_OPTS="" # Additional options given to the server - -DIETIME=10 # Time to wait for the server to die, in seconds - # If this value is set too low you might not - # let some servers to die gracefully and - # 'restart' will not work - -#STARTTIME=2 # Time to wait for the server to start, in seconds - # If this value is set each time the server is - # started (on start or restart) the script will - # stall to try to determine if it is running - # If it is not set and the server takes time - # to setup a pid file the log message might - # be a false positive (says it did not start - # when it actually did) - -LOGFILE=$LOGDIR/$NAME.log # Server logfile -#DAEMONUSER=googlelatitude # Users to run the daemons as. If this value - # is set start-stop-daemon will chuid the server - -# Include defaults if available -if [ -f /etc/default/$NAME ] ; then - . /etc/default/$NAME -fi - -# Use this if you want the user to explicitly set 'RUN' in -# /etc/default/ -#if [ "x$RUN" != "xyes" ] ; then -# log_failure_msg "$NAME disabled, please adjust the configuration to your needs " -# log_failure_msg "and then set RUN to 'yes' in /etc/default/$NAME to enable it." -# exit 1 -#fi - -# Check that the user exists (if we set a user) -# Does the user exist? -if [ -n "$DAEMONUSER" ] ; then - if getent passwd | grep -q "^$DAEMONUSER:"; then - # Obtain the uid and gid - DAEMONUID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $3}'` - DAEMONGID=`getent passwd |grep "^$DAEMONUSER:" | awk -F : '{print $4}'` - else - log_failure_msg "The user $DAEMONUSER, required to run $NAME does not exist." - exit 1 - fi -fi - - -set -e - -running_pid() { -# Check if a given process pid's cmdline matches a given name - pid=$1 - name=$2 - [ -z "$pid" ] && return 1 - [ ! -d /proc/$pid ] && return 1 - cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1` - # Is this the expected server - [ "$cmd" != "$name" ] && return 1 - return 0 -} - -running() { -# Check if the process is running looking at /proc -# (works for all users) - - # No pidfile, probably no daemon present - [ ! -f "$PIDFILE" ] && return 1 - pid=`cat $PIDFILE` - running_pid $pid $DAEMON || return 1 - return 0 -} - -start_server() { -# Start the process using the wrapper - if [ -z "$DAEMONUSER" ] ; then - start_daemon -p $PIDFILE $DAEMON -- $DAEMON_OPTS - errcode=$? - else -# if we are using a daemonuser then change the user id - start-stop-daemon --start --quiet --pidfile $PIDFILE \ - --chuid $DAEMONUSER \ - --exec $DAEMON -- $DAEMON_OPTS - errcode=$? - fi - return $errcode -} - -stop_server() { -# Stop the process using the wrapper - if [ -z "$DAEMONUSER" ] ; then - killproc -p $PIDFILE $DAEMON - errcode=$? - else -# if we are using a daemonuser then look for process that match - start-stop-daemon --stop --quiet --pidfile $PIDFILE \ - --user $DAEMONUSER \ - --exec $DAEMON - errcode=$? - fi - - return $errcode -} - -reload_server() { - [ ! -f "$PIDFILE" ] && return 1 - pid=pidofproc $PIDFILE # This is the daemon's pid - # Send a SIGHUP - kill -1 $pid - return $? -} - -force_stop() { -# Force the process to die killing it manually - [ ! -e "$PIDFILE" ] && return - if running ; then - kill -15 $pid - # Is it really dead? - sleep "$DIETIME"s - if running ; then - kill -9 $pid - sleep "$DIETIME"s - if running ; then - echo "Cannot kill $NAME (pid=$pid)!" - exit 1 - fi - fi - fi - rm -f $PIDFILE -} - - -case "$1" in - start) - log_daemon_msg "Starting $DESC " "$NAME" - # Check if it's running first - if running ; then - log_progress_msg "apparently already running" - log_end_msg 0 - exit 0 - fi - if start_server ; then - # NOTE: Some servers might die some time after they start, - # this code will detect this issue if STARTTIME is set - # to a reasonable value - [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time - if running ; then - # It's ok, the server started and is running - log_end_msg 0 - else - # It is not running after we did start - log_end_msg 1 - fi - else - # Either we could not start it - log_end_msg 1 - fi - ;; - stop) - log_daemon_msg "Stopping $DESC" "$NAME" - if running ; then - # Only stop the server if we see it running - errcode=0 - stop_server || errcode=$? - log_end_msg $errcode - else - # If it's not running don't do anything - log_progress_msg "apparently not running" - log_end_msg 0 - exit 0 - fi - ;; - force-stop) - # First try to stop gracefully the program - $0 stop - if running; then - # If it's still running try to kill it more forcefully - log_daemon_msg "Stopping (force) $DESC" "$NAME" - errcode=0 - force_stop || errcode=$? - log_end_msg $errcode - fi - ;; - restart|force-reload) - log_daemon_msg "Restarting $DESC" "$NAME" - errcode=0 - stop_server || errcode=$? - # Wait some sensible amount, some server need this - [ -n "$DIETIME" ] && sleep $DIETIME - start_server || errcode=$? - [ -n "$STARTTIME" ] && sleep $STARTTIME - running || errcode=$? - log_end_msg $errcode - ;; - status) - - log_daemon_msg "Checking status of $DESC" "$NAME" - if running ; then - log_progress_msg "running" - log_end_msg 0 - else - log_progress_msg "apparently not running" - log_end_msg 1 - exit 1 - fi - ;; - # Use this if the daemon cannot reload - reload) - log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon" - log_warning_msg "cannot re-read the config file (use restart)." - ;; - # And this if it cann - #reload) - # - # If the daemon can reload its config files on the fly - # for example by sending it SIGHUP, do it here. - # - # If the daemon responds to changes in its config file - # directly anyway, make this a do-nothing entry. - # - # log_daemon_msg "Reloading $DESC configuration files" "$NAME" - # if running ; then - # reload_server - # if ! running ; then - # Process died after we tried to reload - # log_progress_msg "died on reload" - # log_end_msg 1 - # exit 1 - # fi - # else - # log_progress_msg "server is not running" - # log_end_msg 1 - # exit 1 - # fi - #;; - - *) - N=/etc/init.d/$NAME - echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2 - exit 1 - ;; -esac - -exit 0 diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex deleted file mode 100644 index f679799..0000000 --- a/debian/manpage.1.ex +++ /dev/null @@ -1,59 +0,0 @@ -.\" Hey, EMACS: -*- nroff -*- -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH GOOGLELATITUDE SECTION "January 2, 2010" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -googlelatitude \- program to do something -.SH SYNOPSIS -.B googlelatitude -.RI [ options ] " files" ... -.br -.B bar -.RI [ options ] " files" ... -.SH DESCRIPTION -This manual page documents briefly the -.B googlelatitude -and -.B bar -commands. -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBgooglelatitude\fP is a program that... -.SH OPTIONS -These programs follow the usual GNU command line syntax, with long -options starting with two dashes (`-'). -A summary of options is included below. -For a complete description, see the Info files. -.TP -.B \-h, \-\-help -Show summary of options. -.TP -.B \-v, \-\-version -Show version of program. -.SH SEE ALSO -.BR bar (1), -.BR baz (1). -.br -The programs are documented fully by -.IR "The Rise and Fall of a Fooish Bar" , -available via the Info system. -.SH AUTHOR -googlelatitude was written by . -.PP -This manual page was written by Rodrigo Linfati , -for the Debian project (but may be used by others). diff --git a/debian/manpage.sgml.ex b/debian/manpage.sgml.ex deleted file mode 100644 index 3196b4d..0000000 --- a/debian/manpage.sgml.ex +++ /dev/null @@ -1,156 +0,0 @@ - manpage.1'. You may view - the manual page with: `docbook-to-man manpage.sgml | nroff -man | - less'. A typical entry in a Makefile or Makefile.am is: - -manpage.1: manpage.sgml - docbook-to-man $< > $@ - - - The docbook-to-man binary is found in the docbook-to-man package. - Please remember that if you create the nroff version in one of the - debian/rules file targets (such as build), you will need to include - docbook-to-man in your Build-Depends control field. - - --> - - - FIRSTNAME"> - SURNAME"> - - January 2, 2010"> - - SECTION"> - rodrigo@linfati.cl"> - - GOOGLELATITUDE"> - - - Debian"> - GNU"> - GPL"> -]> - - - -

- &dhemail; -
- - &dhfirstname; - &dhsurname; - - - 2003 - &dhusername; - - &dhdate; - - - &dhucpackage; - - &dhsection; - - - &dhpackage; - - program to do something - - - - &dhpackage; - - - - - - - - DESCRIPTION - - This manual page documents briefly the - &dhpackage; and bar - commands. - - This manual page was written for the &debian; distribution - because the original program does not have a manual page. - Instead, it has documentation in the &gnu; - Info format; see below. - - &dhpackage; is a program that... - - - - OPTIONS - - These programs follow the usual &gnu; command line syntax, - with long options starting with two dashes (`-'). A summary of - options is included below. For a complete description, see the - Info files. - - - - - - - - Show summary of options. - - - - - - - - Show version of program. - - - - - - SEE ALSO - - bar (1), baz (1). - - The programs are documented fully by The Rise and - Fall of a Fooish Bar available via the - Info system. - - - AUTHOR - - This manual page was written by &dhusername; &dhemail; for - the &debian; system (but may be used by others). Permission is - granted to copy, distribute and/or modify this document under - the terms of the &gnu; General Public License, Version 2 any - later version published by the Free Software Foundation. - - - On Debian systems, the complete text of the GNU General Public - License can be found in /usr/share/common-licenses/GPL. - - - - - - - - diff --git a/debian/manpage.xml.ex b/debian/manpage.xml.ex deleted file mode 100644 index 77cb57b..0000000 --- a/debian/manpage.xml.ex +++ /dev/null @@ -1,291 +0,0 @@ - -.
will be generated. You may view the -manual page with: nroff -man .
| less'. A typical entry -in a Makefile or Makefile.am is: - -DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl -XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" - -manpage.1: manpage.xml - $(XP) $(DB2MAN) $< - -The xsltproc binary is found in the xsltproc package. The XSL files are in -docbook-xsl. A description of the parameters you can use can be found in the -docbook-xsl-doc-* packages. Please remember that if you create the nroff -version in one of the debian/rules file targets (such as build), you will need -to include xsltproc and docbook-xsl in your Build-Depends control field. -Alternatively use the xmlto command/package. That will also automatically -pull in xsltproc and docbook-xsl. - -Notes for using docbook2x: docbook2x-man does not automatically create the -AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as - ... . - -To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections -read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be -found in the docbook-xsl-doc-html package. - -Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` - -General documentation about man-pages and man-page-formatting: -man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ - ---> - - - - - - - - - - - - - -]> - - - - &dhtitle; - &dhpackage; - - - &dhfirstname; - &dhsurname; - Wrote this manpage for the Debian system. -
- &dhemail; -
-
-
- - 2007 - &dhusername; - - - This manual page was written for the Debian system - (but may be used by others). - Permission is granted to copy, distribute and/or modify this - document under the terms of the GNU General Public License, - Version 2 or (at your option) any later version published by - the Free Software Foundation. - On Debian systems, the complete text of the GNU General Public - License can be found in - /usr/share/common-licenses/GPL. - -
- - &dhucpackage; - &dhsection; - - - &dhpackage; - program to do something - - - - &dhpackage; - - - - - - - - - this - - - - - - - - this - that - - - - - &dhpackage; - - - - - - - - - - - - - - - - - - - DESCRIPTION - This manual page documents briefly the - &dhpackage; and bar - commands. - This manual page was written for the Debian distribution - because the original program does not have a manual page. - Instead, it has documentation in the GNU - info - 1 - format; see below. - &dhpackage; is a program that... - - - OPTIONS - The program follows the usual GNU command line syntax, - with long options starting with two dashes (`-'). A summary of - options is included below. For a complete description, see the - - info - 1 - files. - - - - - - - Does this and that. - - - - - - - Show summary of options. - - - - - - - Show version of program. - - - - - - FILES - - - /etc/foo.conf - - The system-wide configuration file to control the - behaviour of &dhpackage;. See - - foo.conf - 5 - for further details. - - - - ${HOME}/.foo.conf - - The per-user configuration file to control the - behaviour of &dhpackage;. See - - foo.conf - 5 - for further details. - - - - - - ENVIONMENT - - - FOO_CONF - - If used, the defined file is used as configuration - file (see also ). - - - - - - DIAGNOSTICS - The following diagnostics may be issued - on stderr: - - - Bad configuration file. Exiting. - - The configuration file seems to contain a broken configuration - line. Use the option, to get more info. - - - - - &dhpackage; provides some return codes, that can - be used in scripts: - - Code - Diagnostic - - 0 - Program exited successfully. - - - 1 - The configuration file seems to be broken. - - - - - - BUGS - The program is currently limited to only work - with the foobar library. - The upstreams BTS can be found - at . - - - SEE ALSO - - - bar - 1 - , - baz - 1 - , - foo.conf - 5 - - The programs are documented fully by The Rise and - Fall of a Fooish Bar available via the - info - 1 - system. - -
- diff --git a/debian/menu.ex b/debian/menu.ex deleted file mode 100644 index 716ff82..0000000 --- a/debian/menu.ex +++ /dev/null @@ -1,2 +0,0 @@ -?package(googlelatitude):needs="X11|text|vc|wm" section="Applications/see-menu-manual"\ - title="googlelatitude" command="/usr/bin/googlelatitude" diff --git a/debian/optify b/debian/optify deleted file mode 100644 index 865faf1..0000000 --- a/debian/optify +++ /dev/null @@ -1 +0,0 @@ -auto diff --git a/debian/postinst.ex b/debian/postinst.ex deleted file mode 100644 index ba4c0fb..0000000 --- a/debian/postinst.ex +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh -# postinst script for googlelatitude -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-remove' -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - configure) - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/postrm.ex b/debian/postrm.ex deleted file mode 100644 index 91593ce..0000000 --- a/debian/postrm.ex +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# postrm script for googlelatitude -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `purge' -# * `upgrade' -# * `failed-upgrade' -# * `abort-install' -# * `abort-install' -# * `abort-upgrade' -# * `disappear' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) - ;; - - *) - echo "postrm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/preinst.ex b/debian/preinst.ex deleted file mode 100644 index 59846cb..0000000 --- a/debian/preinst.ex +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# preinst script for googlelatitude -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `install' -# * `install' -# * `upgrade' -# * `abort-upgrade' -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - install|upgrade) - ;; - - abort-upgrade) - ;; - - *) - echo "preinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/prerm.ex b/debian/prerm.ex deleted file mode 100644 index dacd93d..0000000 --- a/debian/prerm.ex +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh -# prerm script for googlelatitude -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `remove' -# * `upgrade' -# * `failed-upgrade' -# * `remove' `in-favour' -# * `deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package - - -case "$1" in - remove|upgrade|deconfigure) - ;; - - failed-upgrade) - ;; - - *) - echo "prerm called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# - -exit 0 - - diff --git a/debian/rules b/debian/rules deleted file mode 100755 index bf04f01..0000000 --- a/debian/rules +++ /dev/null @@ -1,72 +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 - -APPNAME := googlelatitude - -configure: configure-stamp -configure-stamp: - dh_testdir - qmake $(APPNAME).pro - touch configure-stamp - -build: build-stamp -build-stamp: configure-stamp - dh_testdir - $(MAKE) - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - -$(MAKE) clean - dh_clean - -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - $(MAKE) DESTDIR=$(CURDIR)/debian/$(APPNAME) install - -binary-indep: build install -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 - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/debian/watch.ex b/debian/watch.ex deleted file mode 100644 index 309d917..0000000 --- a/debian/watch.ex +++ /dev/null @@ -1,23 +0,0 @@ -# Example watch control file for uscan -# Rename this file to "watch" and then you can run the "uscan" command -# to check for upstream updates and more. -# See uscan(1) for format - -# Compulsory line, this is a version 3 file -version=3 - -# Uncomment to examine a Webpage -# -#http://www.example.com/downloads.php googlelatitude-(.*)\.tar\.gz - -# Uncomment to examine a Webserver directory -#http://www.example.com/pub/googlelatitude-(.*)\.tar\.gz - -# Uncommment to examine a FTP server -#ftp://ftp.example.com/pub/googlelatitude-(.*)\.tar\.gz debian uupdate - -# Uncomment to find new files on sourceforge, for devscripts >= 2.9 -# http://sf.net/googlelatitude/googlelatitude-(.*)\.tar\.gz - -# Uncomment to find new files on GooglePages -# http://example.googlepages.com/foo.html googlelatitude-(.*)\.tar\.gz diff --git a/googlelatitude.pro b/googlelatitude.pro deleted file mode 100644 index f7030aa..0000000 --- a/googlelatitude.pro +++ /dev/null @@ -1,3 +0,0 @@ -TEMPLATE = subdirs -SUBDIRS += GoogleLatitudeDaemon.pro -SUBDIRS += GoogleLatitudeGUI.pro diff --git a/src/daemon.cpp b/src/daemon.cpp deleted file mode 100644 index 7574870..0000000 --- a/src/daemon.cpp +++ /dev/null @@ -1,43 +0,0 @@ -#include "daemon.h" - -Daemon::Daemon(QObject *parent) : QObject(parent) { - setting = new QSettings(); - gps = new GpsMaemo5(this); - glatitude = new GoogleLatitude(this); - - connect(gps, SIGNAL(fix()), this, SLOT(set())); - connect(glatitude, SIGNAL(glat_ok()), this, SLOT(daemon_ok())); - connect(glatitude, SIGNAL(glat_error()), this, SLOT(daemon_error())); - - set_config(); - if ( 0 ) gps->config(15, 3, 0); - - gps->refresh(); -} - -void Daemon::set() { - qDebug() << "Daemon: set"; - set_config(); - glatitude->update(gps->get_lat(), - gps->get_lon(), - gps->get_acc()); -} - -void Daemon::set_config() { - qDebug() << "Daemon: set_config"; - glatitude->set_login(setting->value("user","my_username").toString(), - setting->value("pass","my_password").toString()); - - gps->config(setting->value("interval",1800).toInt(), - setting->value("wait",30).toInt(), - setting->value("method","cell").toString()); -} - -void Daemon::daemon_ok() { - qDebug() << "Daemon: ok"; -} - -void Daemon::daemon_error() { - qDebug() << "Daemon: no auth"; - QCoreApplication::exit(); -} diff --git a/src/daemon.h b/src/daemon.h deleted file mode 100644 index c53c90f..0000000 --- a/src/daemon.h +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef DAEMON_H -#define DAEMON_H - -#include -#include "gps.h" -#include "glatitude.h" - -class Daemon : public QObject { - Q_OBJECT - -public: - Daemon(QObject *parent = 0); - -private slots: - void set(); - void set_config(); - void daemon_ok(); - void daemon_error(); - -private: - QSettings *setting; - GpsMaemo5 *gps; - GoogleLatitude *glatitude; -}; - -#endif // DAEMON_H diff --git a/src/glatitude.cpp b/src/glatitude.cpp deleted file mode 100644 index a4da3b6..0000000 --- a/src/glatitude.cpp +++ /dev/null @@ -1,95 +0,0 @@ -#include "glatitude.h" - -GoogleLatitude::GoogleLatitude(QObject *parent) : - QObject(parent), - user(""), pass(""), login_error(false), - latitude(0), longitude(0), accuracy(0) { - - worker = new QNetworkAccessManager(); - connect(worker, SIGNAL(finished(QNetworkReply *)), this, SLOT(glat_reply(QNetworkReply *))); - - urllogin = QUrl::fromEncoded("https://www.google.com/accounts/ServiceLogin?service=friendview"); - urldologin = QUrl::fromEncoded("https://www.google.com/accounts/ServiceLoginAuth?service=friendview"); - urlupdate = QUrl::fromEncoded("http://maps.google.com/glm/mmap/mwmfr?hl=en"); -} - -void GoogleLatitude::set_login(QString u, QString p) { - qDebug() << "GoogleLatitude: set_login"; - if ( !u.contains('@') ) u.append("@gmail.com"); - user = u; - pass = p; -} - -void GoogleLatitude::update(double la, double lo, double ac) { - if (login_error) return; - if (!la) return; - if (!lo) return; - if (!ac) return; - -#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) - QNetworkConfigurationManager mgr; - if (!mgr.isOnline()) { - qDebug() << "GoogleLatitude: offline"; - return; - } -#endif - - qDebug() << "GoogleLatitude: update"; - - latitude = la; - longitude = lo; - accuracy = ac; - - worker->get(QNetworkRequest(urllogin)); -} - -void GoogleLatitude::reset() { - qDebug() << "GoogleLatitude: reset"; - login_error = false; - update(latitude, longitude, accuracy); -} - -void GoogleLatitude::glat_reply(QNetworkReply *r) { - if ( r->url() == urllogin ) { - qDebug() << "GoogleLatitude: login"; - QString aidis = r->readAll(); - QRegExp regexp ("type=\"hidden\".*name=\"GALX\".*value=\"(.*)\""); - regexp.setMinimal(1); - regexp.indexIn(aidis, 1); - QString googleGALX = regexp.capturedTexts().last(); - - QByteArray datalogin; - datalogin += "&service=friendview"; - datalogin += "&GALX=" + googleGALX; - datalogin += "&Email=" + user; - datalogin += "&Passwd=" + pass; - worker->post(QNetworkRequest(urldologin), datalogin); - } else if ( r->url() == urldologin ) { - qDebug() << "GoogleLatitude: dologin"; - QByteArray datagps; - datagps += "t=ul"; - datagps += "&lat=" + QString::number(latitude); - datagps += "&lng=" + QString::number(longitude); - datagps += "&accuracy=" + QString::number(accuracy); - - QNetworkRequest request(urlupdate); - request.setRawHeader("X-ManualHeader", QString("true").toAscii() ); - worker->post(request, datagps); - } else if ( r->url() == urlupdate ) { - QString output = r->readAll(); - QRegExp regexp ("Authentication required"); - if (regexp.indexIn(output, 1) != -1) { - qDebug() << "GoogleLatitude: update error auth"; - login_error = true; - emit glat_error(); - } else { - qDebug() << "GoogleLatitude: update ok"; - qDebug() << output; - emit glat_ok(); - } - } else { - qDebug() << "GoogleLatitude Error url" << r->url(); - qDebug() << r->rawHeaderList(); - qDebug() << r->readAll(); - } -} diff --git a/src/glatitude.h b/src/glatitude.h deleted file mode 100644 index d4aa126..0000000 --- a/src/glatitude.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef GLATITUDE_H -#define GLATITUDE_H - -#include -#include - -class GoogleLatitude : public QObject { - Q_OBJECT - -signals: - void glat_ok(); - void glat_error(); - -public: - GoogleLatitude(QObject *parent = 0); - void set_login(QString username, QString password); - void update(double la, double lo, double ac); - void reset(); - -private slots: - void glat_reply(QNetworkReply *r); - -private: - QString user; - QString pass; - bool login_error; - double latitude; - double longitude; - double accuracy; - - QNetworkAccessManager *worker; - QUrl urllogin; - QUrl urldologin; - QUrl urlupdate; -}; - -#endif // GLATITUDE_H diff --git a/src/gps.cpp b/src/gps.cpp deleted file mode 100644 index e5c8869..0000000 --- a/src/gps.cpp +++ /dev/null @@ -1,110 +0,0 @@ -#include "gps.h" - -GpsMaemo5::GpsMaemo5(QObject *parent) : - QObject(parent), - latitude(0), longitude(0), accuracy(0), - interval(1800), wait(30), method("cell"), - emitfix(false), stopgps(true) { -#ifdef Q_WS_MAEMO_5 - control = location_gpsd_control_get_default(); - device = (LocationGPSDevice*) g_object_new(LOCATION_TYPE_GPS_DEVICE, NULL); - g_signal_connect(device, "changed", G_CALLBACK(GpsMaemo5_changed), this); -#else - urlloc = QUrl::fromEncoded("http://www.google.com/loc/json"); - worker = new QNetworkAccessManager(); - connect(worker, SIGNAL(finished(QNetworkReply *)), this, SLOT(gloc_reply(QNetworkReply *))); -#endif // Q_WS_MAEMO_5 -} - -void GpsMaemo5::refresh() { - if ( stopgps ) return; - qDebug() << "GpsMaemo5: refresh"; - - QTimer::singleShot(interval*1000, this, SLOT(refresh())); - QTimer::singleShot(wait*1000, this, SLOT(stop())); - -#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) - QNetworkConfigurationManager mgr; - if (!mgr.isOnline()) { - qDebug() << "GpsMaemo5: offline"; - return; - } -#endif - -#ifdef Q_WS_MAEMO_5 - if ( method == QString("cell") ) { - g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_ACWP, NULL); - } else if ( method == QString("both") ) { - g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_USER_SELECTED, NULL); - } else if ( method == QString("agps") ) { - g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_AGNSS, NULL); - } else { - g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_ACWP, NULL); - } - location_gpsd_control_start(control); -#else - worker->post(QNetworkRequest(urlloc), QByteArray("{version:\"1.1.0\"}")); -#endif // Q_WS_MAEMO_5 -} - -void GpsMaemo5::stop() { - qDebug() << "GpsMaemo5: stop"; -#ifdef Q_WS_MAEMO_5 - location_gpsd_control_stop(control); -#else -#endif // Q_WS_MAEMO_5 - if (emitfix) { - emitfix = false; - emit fix(); - } -} - -void GpsMaemo5::forcestop() { - qDebug() << "GpsMaemo5: forcestop"; - stopgps = true; - emitfix = false; - stop(); -} - -int GpsMaemo5::config(int i, int w, QString m) { - qDebug() << "GpsMaemo5: config"; - stopgps = false; - interval = i; - wait = w; - method = m; - return 0; -} - -#ifdef Q_WS_MAEMO_5 -void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps) { - if (device->fix) { - if (device->fix->fields) { - if ( isnan(gps->device->fix->eph) ) return; - g_print("GpsMaemo5 lat %f lon %f eph %f\n", gps->device->fix->latitude, gps->device->fix->longitude, gps->device->fix->eph/100.); - gps->latitude = gps->device->fix->latitude; - gps->longitude = gps->device->fix->longitude; - gps->accuracy = gps->device->fix->eph/100.; - gps->emitfix = true; - } - } -} -#else -void GpsMaemo5::gloc_reply(QNetworkReply *r) { - if ( r->url() == urlloc ) { - QString loc = r->readAll(); - QRegExp regexp ("\\{\"latitude\":(.*),\"longitude\":(.*),\"accuracy\":(.*)\\}"); - regexp.setMinimal(1); - regexp.indexIn(loc, 1); - latitude = regexp.capturedTexts().at(1).toDouble(); - longitude = regexp.capturedTexts().at(2).toDouble(); - accuracy = regexp.capturedTexts().at(3).toDouble(); - if ( accuracy > 100000 ) accuracy = 100000; - qDebug() << "GpsIP lat" << latitude << "lon" << longitude << "acc" << accuracy; - emitfix = true; - } else { - qDebug() << "GpsIP Error url" << r->url(); - qDebug() << r->rawHeaderList(); - qDebug() << r->readAll(); - } -} -#endif // Q_WS_MAEMO_5 diff --git a/src/gps.h b/src/gps.h deleted file mode 100644 index c0ba709..0000000 --- a/src/gps.h +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef GPS_H -#define GPS_H - -#include -#include - -#ifdef Q_WS_MAEMO_5 -extern "C" { -#include -#include -} -#else -#include -#endif // Q_WS_MAEMO_5 - -class GpsMaemo5 : public QObject { - Q_OBJECT - -signals: - void fix(); - -public: - GpsMaemo5(QObject *parent = 0); - double get_lat() { return latitude; } - double get_lon() { return longitude; } - double get_acc() { return accuracy; } - -public slots: - void refresh(); - void stop(); - void forcestop(); - int config(int i, int w, QString m); - -private slots: -#ifdef Q_WS_MAEMO_5 - friend void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps); -#else - void gloc_reply(QNetworkReply *r); -#endif // Q_WS_MAEMO_5 - -private: - double latitude; - double longitude; - double accuracy; - int interval; - int wait; - QString method; - bool emitfix; - bool stopgps; -#ifdef Q_WS_MAEMO_5 - LocationGPSDControl *control; - LocationGPSDevice *device; -#else - QUrl urlloc; - QNetworkAccessManager *worker; -#endif // Q_WS_MAEMO_5 -}; - -#ifdef Q_WS_MAEMO_5 -void GpsMaemo5_changed(LocationGPSDevice *device, GpsMaemo5 *gps); -#endif // Q_WS_MAEMO_5 - -#endif // GPS_H diff --git a/src/latitude.cpp b/src/latitude.cpp deleted file mode 100644 index 5f6038a..0000000 --- a/src/latitude.cpp +++ /dev/null @@ -1,196 +0,0 @@ -#include "latitude.h" - -LatitudeGUI::LatitudeGUI(QMainWindow *parent) : QMainWindow(parent) { - setting = new QSettings(); - gps = new GpsMaemo5(this); - glatitude = new GoogleLatitude(this); - - connect(gps, SIGNAL(fix()), this, SLOT(set())); - connect(glatitude, SIGNAL(glat_ok()), this, SLOT(latitude_ok())); - connect(glatitude, SIGNAL(glat_error()), this, SLOT(latitude_error())); - - set_config(); - if ( 0 ) gps->config(15, 3, 0); - - gps->refresh(); - -#ifdef Q_WS_MAEMO_5 - setAttribute(Qt::WA_Maemo5AutoOrientation, true); -#endif - setWindowTitle(tr("Latitude & Buzz")); - - maps = new QWebView(); - connect(maps, SIGNAL(loadFinished(bool)), this, SLOT(maps_login())); - - maps->settings()->setAttribute(QWebSettings::PluginsEnabled, true); - maps->load(QUrl::fromEncoded("https://www.google.com/accounts/ServiceLogin?service=friendview&continue=http://www.google.com/maps/m?mode=latitude")); - - setCentralWidget(maps); - - menuBar()->addAction(tr("&Latitude"), this, SLOT(mode_latitude())); - menuBar()->addAction(tr("&Buzz"), this, SLOT(mode_buzz())); - menuBar()->addAction(tr("&Config"), this, SLOT(config())); - - demonio = new QAction(this); - if ( system("killall -0 GoogleLatitudeDaemon 2> /dev/null" ) ) { - demonio->setText(tr("&Start Daemon")); - } else { - demonio->setText(tr("&Stop Daemon")); - } - connect(demonio, SIGNAL(triggered()), this, SLOT(mode_demonio())); - menuBar()->addAction(demonio); -} - -void LatitudeGUI::set() { - qDebug() << "LatitudeGUI: set"; - glatitude->update(gps->get_lat(), - gps->get_lon(), - gps->get_acc()); -} - -void LatitudeGUI::set_config() { - qDebug() << "LatitudeGUI: set_config"; - glatitude->set_login(setting->value("user","my_username").toString(), - setting->value("pass","my_password").toString()); - - gps->config(setting->value("interval",1800).toInt(), - setting->value("wait",30).toInt(), - setting->value("method","cell").toString()); -} - -void LatitudeGUI::latitude_ok() { - qDebug() << "LatitudeGUI: ok"; -} - -void LatitudeGUI::latitude_error() { -#ifdef Q_WS_MAEMO_5 - QString error_message = tr("Error in Authentification!

") + - tr("Plese verify your login details
"); - QMaemo5InformationBox::information(this, error_message, - QMaemo5InformationBox::NoTimeout); -#endif - qDebug() << "LatitudeGUI: no auth"; - config(); -} - -void LatitudeGUI::maps_login() { - if ( maps->url() == QUrl::fromEncoded("https://www.google.com/accounts/ServiceLogin?service=friendview&continue=http://www.google.com/maps/m?mode=latitude") ) { - maps->page()->mainFrame()->evaluateJavaScript( - QString("document.getElementById('Email').value = \"%1\";").arg( - setting->value("user").toString())); - maps->page()->mainFrame()->evaluateJavaScript( - QString("document.getElementById('Passwd').value = \"%1\";").arg( - setting->value("pass").toString())); - maps->page()->mainFrame()->evaluateJavaScript("document.getElementById('gaia_loginform').submit();"); - } - if ( maps->url() == QUrl::fromEncoded("https://www.google.com/accounts/ServiceLoginAuth") ) { - latitude_error(); - } -} - -void LatitudeGUI::mode_buzz() { - maps->load(QUrl::fromEncoded("http://www.google.com/maps/m?l-view=map&l-lci=m,com.google.latitudepublicupdates&ac=f,s,l")); -} - -void LatitudeGUI::mode_latitude() { - maps->load(QUrl::fromEncoded("https://www.google.com/accounts/ServiceLogin?service=friendview&continue=http://www.google.com/maps/m?mode=latitude")); -} - -void LatitudeGUI::mode_demonio() { - if ( ! system("killall -0 GoogleLatitudeDaemon 2> /dev/null" ) ) { - system("killall GoogleLatitudeDaemon 2> /dev/null"); - demonio->setText(tr("&Start Daemon")); - } else { - QProcess *cli = new QProcess(this); - cli->startDetached(QCoreApplication::applicationDirPath()+QDir::separator()+"GoogleLatitudeDaemon"); - qDebug() << "LatitudeGUI: demonio" << QCoreApplication::applicationDirPath()+QDir::separator()+"GoogleLatitudeDaemon"; - if ( ! system("killall -0 GoogleLatitudeDaemon 2> /dev/null" ) ) { - demonio->setText(tr("&Stop Daemon")); - } - } -} - -void LatitudeGUI::config() { - gps->forcestop(); - - QDialog *dialoglogin = new QDialog(this); - - QLineEdit *login_user = new QLineEdit(setting->value("user","my_username").toString()); - QLineEdit *login_pass = new QLineEdit(setting->value("pass","my_password").toString()); - login_pass->setEchoMode(QLineEdit::Password); - - QLineEdit *gps_interval = new QLineEdit(setting->value("interval",1800).toString()); - QLineEdit *gps_wait = new QLineEdit(setting->value("wait",30).toString()); - - QCheckBox *daemon_use = new QCheckBox(); - if ( setting->value("daemon",false).toBool() ) { - daemon_use->setCheckState(Qt::Checked); - } else { - daemon_use->setCheckState(Qt::Unchecked); - } - - QRadioButton *gps_cell = new QRadioButton(tr("&Cell Tower")); - QRadioButton *gps_both = new QRadioButton(tr("&Both")); - QRadioButton *gps_agps = new QRadioButton(tr("Only &Gps")); - - QString gps_setting = setting->value("method","cell").toString(); - if ( gps_setting == QString("cell") ) { - gps_cell->setChecked(true); - } else if ( gps_setting == QString("both") ) { - gps_both->setChecked(true); - } else if ( gps_setting == QString("agps") ) { - gps_agps->setChecked(true); - } else { - gps_cell->setChecked(true); - } - - QFormLayout *layout_form = new QFormLayout(); - - layout_form->addRow(tr("&Username"), login_user); - layout_form->addRow(tr("&Password"), login_pass); - connect(login_user, SIGNAL(textEdited(QString)), this, SLOT(save_user(QString))); - connect(login_user, SIGNAL(returnPressed()), login_pass, SLOT(setFocus())); - connect(login_pass, SIGNAL(textEdited(QString)), this, SLOT(save_pass(QString))); - connect(login_pass, SIGNAL(returnPressed()), dialoglogin, SLOT(accept())); - - layout_form->addRow(tr("&Interval for Updates"), gps_interval); - layout_form->addRow(tr("&Wait for a Fix"), gps_wait); - layout_form->addRow(tr("&Daemon at Boot"), daemon_use); - connect(gps_interval, SIGNAL(textEdited(QString)), this, SLOT(save_interval(QString))); - connect(gps_wait, SIGNAL(textEdited(QString)), this, SLOT(save_wait(QString))); - connect(daemon_use, SIGNAL(stateChanged(int)), this, SLOT(save_daemon(int))); - - QHBoxLayout *layout_gps = new QHBoxLayout; - layout_gps->addWidget(gps_cell); - layout_gps->addWidget(gps_both); - layout_gps->addWidget(gps_agps); - layout_form->addRow(layout_gps); - connect(gps_cell, SIGNAL(clicked()), this, SLOT(save_gps_cell())); - connect(gps_both, SIGNAL(clicked()), this, SLOT(save_gps_both())); - connect(gps_agps, SIGNAL(clicked()), this, SLOT(save_gps_agps())); - - dialoglogin->setLayout(layout_form); - dialoglogin->exec(); - - if ( setting->value("interval",1800).toInt() < 300 ) - setting->setValue("interval", 300); - if ( setting->value("interval",1800).toInt() > 3600 ) - setting->setValue("interval", 3600); - - if ( QString("agps") == setting->value("method","cell").toString() ) { - if ( setting->value("wait",30).toInt() < 15 ) - setting->setValue("wait", 15); - } else { - if ( setting->value("wait",30).toInt() < 5 ) - setting->setValue("wait", 5); - } - if ( setting->value("wait",30).toInt() > 120 ) - setting->setValue("wait", 120); - - set_config(); - glatitude->reset(); - gps->refresh(); - - mode_latitude(); -} - diff --git a/src/latitude.h b/src/latitude.h deleted file mode 100644 index 2b2e2a9..0000000 --- a/src/latitude.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef LATITUDE_H -#define LATITUDE_H - -#include -#include -#ifdef Q_WS_MAEMO_5 -#include -#endif -#include "glatitude.h" -#include "gps.h" - -class LatitudeGUI : public QMainWindow { - Q_OBJECT - -public: - LatitudeGUI(QMainWindow *parent = 0); - -private slots: - void set(); - void set_config(); - void latitude_ok(); - void latitude_error(); - - void maps_login(); - void mode_buzz(); - void mode_latitude(); - - void mode_demonio(); - - void config(); - void save_user(QString _user) { setting->setValue("user", _user); } - void save_pass(QString _pass) { setting->setValue("pass", _pass); } - void save_interval(QString _inter) { setting->setValue("interval", _inter.toInt()); } - void save_wait(QString _wait) { setting->setValue("wait", _wait.toInt()); } - void save_daemon(int _c) { setting->setValue("daemon", (_c == Qt::Checked ? true : false)); } - void save_gps_cell() { setting->setValue("method", "cell"); } - void save_gps_both() { setting->setValue("method", "both"); } - void save_gps_agps() { setting->setValue("method", "agps"); } - -private: - QSettings *setting; - GpsMaemo5 *gps; - GoogleLatitude *glatitude; - - QWebView *maps; - QAction *demonio; -}; - -#endif // LATITUDE_H diff --git a/src/main-daemon.cpp b/src/main-daemon.cpp deleted file mode 100644 index 6007c60..0000000 --- a/src/main-daemon.cpp +++ /dev/null @@ -1,22 +0,0 @@ -#include "daemon.h" - -int main(int argc, char *argv[]) { - QCoreApplication::setOrganizationName("linfati"); - QCoreApplication::setOrganizationDomain("linfati.com"); - QCoreApplication::setApplicationName("GoogleLatitude"); - - QCoreApplication app(argc, argv); - - if ( app.arguments().contains(QString("--init")) ) { - QSettings set; - if ( ! set.value("daemon",false).toBool() ) { - qDebug() << "No Daemon mode enable"; - return 0; - } - } - - Daemon demonio; - Q_UNUSED(demonio); - - return app.exec(); -} diff --git a/src/main-gui.cpp b/src/main-gui.cpp deleted file mode 100644 index 21225cc..0000000 --- a/src/main-gui.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include "latitude.h" - -int main(int argc, char *argv[]) { - QCoreApplication::setOrganizationName("linfati"); - QCoreApplication::setOrganizationDomain("linfati.com"); - QCoreApplication::setApplicationName("GoogleLatitude"); - - QApplication app(argc, argv); - - LatitudeGUI gui; - gui.show(); - - return app.exec(); -} -- 1.7.9.5