First commit
authorari <ari@ari-laptop.(none)>
Wed, 18 Aug 2010 19:33:00 +0000 (22:33 +0300)
committerari <ari@ari-laptop.(none)>
Wed, 18 Aug 2010 19:33:00 +0000 (22:33 +0300)
79 files changed:
INSTALL [new file with mode: 0755]
LICENSE [new file with mode: 0755]
Makefile [new file with mode: 0644]
debian/README.Debian [new file with mode: 0755]
debian/changelog [new file with mode: 0755]
debian/compat [new file with mode: 0755]
debian/control [new file with mode: 0755]
debian/copyright [new file with mode: 0755]
debian/cron.d.ex [new file with mode: 0755]
debian/dirs [new file with mode: 0755]
debian/docs [new file with mode: 0755]
debian/emacsen-install.ex [new file with mode: 0755]
debian/emacsen-remove.ex [new file with mode: 0755]
debian/emacsen-startup.ex [new file with mode: 0755]
debian/hikingdiary-default.ex [new file with mode: 0755]
debian/hikingdiary.doc-base.EX [new file with mode: 0755]
debian/init.d.ex [new file with mode: 0755]
debian/manpage.1.ex [new file with mode: 0755]
debian/manpage.sgml.ex [new file with mode: 0755]
debian/manpage.xml.ex [new file with mode: 0755]
debian/menu.ex [new file with mode: 0755]
debian/postinst.ex [new file with mode: 0755]
debian/postrm.ex [new file with mode: 0755]
debian/preinst.ex [new file with mode: 0755]
debian/prerm.ex [new file with mode: 0755]
debian/rules [new file with mode: 0755]
debian/watch.ex [new file with mode: 0755]
diaryContent.xml [new file with mode: 0755]
hikingdiary.pro [new file with mode: 0755]
hikingdiary.pro.user [new file with mode: 0755]
res/drawing.svg [new file with mode: 0755]
res/icon/26x26/hikingdiary.png [new file with mode: 0755]
res/icon/26x26/hikingdiary.png.base64 [new file with mode: 0755]
res/icon/48x48/hikingdiary.png [new file with mode: 0755]
res/icon/48x48/hikingdiary.svg [new file with mode: 0755]
res/icon/64x64/hikingdiary.png [new file with mode: 0755]
res/icon/orgin_rw_hd_icon.xcf [new file with mode: 0755]
src/Makefile [new file with mode: 0644]
src/Pensseli.png [new file with mode: 0755]
src/about.png [new file with mode: 0755]
src/diaryContent.xml [new file with mode: 0755]
src/diaryData.dat [new file with mode: 0755]
src/diarydata.cpp [new file with mode: 0755]
src/diarydata.h [new file with mode: 0755]
src/diarydata.o [new file with mode: 0644]
src/diarydatamanager.cpp [new file with mode: 0755]
src/diarydatamanager.h [new file with mode: 0755]
src/diarydatamanager.o [new file with mode: 0644]
src/exit.png [new file with mode: 0755]
src/hikingdiary [new file with mode: 0755]
src/hikingdiary.desktop [new file with mode: 0755]
src/hikingdiary.pro.user [new file with mode: 0755]
src/info.png [new file with mode: 0755]
src/maemo5location.cpp [new file with mode: 0755]
src/maemo5location.h [new file with mode: 0755]
src/maemo5location.o [new file with mode: 0644]
src/maemo5locationprivate.cpp [new file with mode: 0755]
src/maemo5locationprivate.h [new file with mode: 0755]
src/maemo5locationprivate.o [new file with mode: 0644]
src/main.cpp [new file with mode: 0755]
src/main.o [new file with mode: 0644]
src/mainwindow.cpp [new file with mode: 0755]
src/mainwindow.h [new file with mode: 0755]
src/mainwindow.o [new file with mode: 0644]
src/moc_gps_data.cpp [new file with mode: 0755]
src/moc_gps_data.o [new file with mode: 0755]
src/moc_maemo5location.cpp [new file with mode: 0644]
src/moc_maemo5location.o [new file with mode: 0644]
src/moc_maemo5locationprivate.cpp [new file with mode: 0644]
src/moc_maemo5locationprivate.o [new file with mode: 0644]
src/moc_mainwindow.cpp [new file with mode: 0644]
src/moc_mainwindow.o [new file with mode: 0644]
src/paintbrush.png [new file with mode: 0755]
src/save-icon.jpg [new file with mode: 0755]
src/save.png [new file with mode: 0755]
src/src.pro [new file with mode: 0755]
src/xmlparser.cpp [new file with mode: 0755]
src/xmlparser.h [new file with mode: 0755]
src/xmlparser.o [new file with mode: 0644]

diff --git a/INSTALL b/INSTALL
new file mode 100755 (executable)
index 0000000..8dc2ba4
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1,9 @@
+To install through make, type:
+
+export DEBFULLNAME=Ari Iivari
+
+make
+make install
+
+To create debian package, type:
+dpkg-buildpackage -rfakeroot -b -tc
diff --git a/LICENSE b/LICENSE
new file mode 100755 (executable)
index 0000000..d159169
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    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 2 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, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..8682d09
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,114 @@
+#############################################################################
+# Makefile for building: hikingdiary
+# Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Jul 9 22:57:51 2010
+# Project:  hikingdiary.pro
+# Template: subdirs
+# Command: /usr/bin/qmake -unix -o Makefile hikingdiary.pro
+#############################################################################
+
+first: make_default
+MAKEFILE      = Makefile
+QMAKE         = /usr/bin/qmake
+DEL_FILE      = rm -f
+CHK_DIR_EXISTS= test -d
+MKDIR         = mkdir -p
+COPY          = cp -f
+COPY_FILE     = $(COPY)
+COPY_DIR      = $(COPY) -r
+INSTALL_FILE  = install -m 644 -p
+INSTALL_PROGRAM = install -m 755 -p
+INSTALL_DIR   = $(COPY_DIR)
+DEL_FILE      = rm -f
+SYMLINK       = ln -f -s
+DEL_DIR       = rmdir
+MOVE          = mv -f
+CHK_DIR_EXISTS= test -d
+MKDIR         = mkdir -p
+SUBTARGETS    =  \
+               sub-src
+
+src/$(MAKEFILE): 
+       @$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/ 
+       cd src/ && $(QMAKE) /home/ari/code/hikingdiary/src/src.pro -unix -o $(MAKEFILE)
+sub-src-qmake_all:  FORCE
+       @$(CHK_DIR_EXISTS) src/ || $(MKDIR) src/ 
+       cd src/ && $(QMAKE) /home/ari/code/hikingdiary/src/src.pro -unix -o $(MAKEFILE)
+sub-src: src/$(MAKEFILE) FORCE
+       cd src/ && $(MAKE) -f $(MAKEFILE)
+sub-src-make_default: src/$(MAKEFILE) FORCE
+       cd src/ && $(MAKE) -f $(MAKEFILE) 
+sub-src-make_first: src/$(MAKEFILE) FORCE
+       cd src/ && $(MAKE) -f $(MAKEFILE) first
+sub-src-all: src/$(MAKEFILE) FORCE
+       cd src/ && $(MAKE) -f $(MAKEFILE) all
+sub-src-clean: src/$(MAKEFILE) FORCE
+       cd src/ && $(MAKE) -f $(MAKEFILE) clean
+sub-src-distclean: src/$(MAKEFILE) FORCE
+       cd src/ && $(MAKE) -f $(MAKEFILE) distclean
+sub-src-install_subtargets: src/$(MAKEFILE) FORCE
+       cd src/ && $(MAKE) -f $(MAKEFILE) install
+sub-src-uninstall_subtargets: src/$(MAKEFILE) FORCE
+       cd src/ && $(MAKE) -f $(MAKEFILE) uninstall
+
+Makefile: hikingdiary.pro  /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++/qmake.conf /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf
+       $(QMAKE) -unix -o Makefile hikingdiary.pro
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf:
+qmake: qmake_all FORCE
+       @$(QMAKE) -unix -o Makefile hikingdiary.pro
+
+qmake_all: sub-src-qmake_all FORCE
+
+make_default: sub-src-make_default FORCE
+make_first: sub-src-make_first FORCE
+all: sub-src-all FORCE
+clean: sub-src-clean FORCE
+distclean: sub-src-distclean FORCE
+       -$(DEL_FILE) Makefile
+install_subtargets: sub-src-install_subtargets FORCE
+uninstall_subtargets: sub-src-uninstall_subtargets FORCE
+
+mocclean: compiler_moc_header_clean compiler_moc_source_clean
+
+mocables: compiler_moc_header_make_all compiler_moc_source_make_all
+install: install_subtargets  FORCE
+
+uninstall:  uninstall_subtargets FORCE
+
+FORCE:
+
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100755 (executable)
index 0000000..6020d57
--- /dev/null
@@ -0,0 +1,6 @@
+hikingdiary for Debian
+----------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Ari Iivari <ari.iivari@redneck-wanderers.com>  Sat,  1 May 2010 16:01:01 +0300
diff --git a/debian/changelog b/debian/changelog
new file mode 100755 (executable)
index 0000000..cd5414c
--- /dev/null
@@ -0,0 +1,6 @@
+hikingdiary (0.1) unstable; urgency=low
+
+  * Initial release (Closes: #nnnn)  <nnnn is the bug number of your ITP>
+
+ -- Ari Iivari <ari.iivari@redneck-wanderers.com>  Sat,  1 May 2010 16:01:01 +0300
+
diff --git a/debian/compat b/debian/compat
new file mode 100755 (executable)
index 0000000..7ed6ff8
--- /dev/null
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100755 (executable)
index 0000000..42f4027
--- /dev/null
@@ -0,0 +1,14 @@
+Source: hikingdiary
+Section: user/other
+Priority: extra
+Maintainer: Ari Iivari <ari.iivari@redneck-wanderers.com>
+Build-Depends:
+Standards-Version: 3.7.2
+
+Package: hikingdiary
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Simple hiking diary application with GPS coordinate
+ This application is done with Qt, requires Qt4.6.2 libraries.
+XB-Maemo-Display-Name: Hiking Diary
+XB-Maemo-Icon-26:
diff --git a/debian/copyright b/debian/copyright
new file mode 100755 (executable)
index 0000000..78fcec2
--- /dev/null
@@ -0,0 +1,35 @@
+This package was debianized by unknown <ari.iivari@redneck-wanderers.com> on
+Sat,  1 May 2010 16:01:01 +0300.
+
+It was downloaded from <fill in http/ftp site>
+
+Upstream Author: <put author(s) name and email here>
+
+Copyright: <put the year(s) of the copyright, and the names of the
+            copyright holder(s) here>
+
+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) 2010, unknown <ari.iivari@redneck-wanderers.com> 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.
diff --git a/debian/cron.d.ex b/debian/cron.d.ex
new file mode 100755 (executable)
index 0000000..197f217
--- /dev/null
@@ -0,0 +1,4 @@
+#
+# Regular cron jobs for the hikingdiary package
+#
+0 4    * * *   root    hikingdiary_maintenance
diff --git a/debian/dirs b/debian/dirs
new file mode 100755 (executable)
index 0000000..ca882bb
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100755 (executable)
index 0000000..d1d32e2
--- /dev/null
@@ -0,0 +1 @@
+diaryContent.xml
diff --git a/debian/emacsen-install.ex b/debian/emacsen-install.ex
new file mode 100755 (executable)
index 0000000..e6b5f63
--- /dev/null
@@ -0,0 +1,45 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/hikingdiary
+
+# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
+
+FLAVOR=$1
+PACKAGE=hikingdiary
+
+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/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
new file mode 100755 (executable)
index 0000000..c91092c
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/hikingdiary
+
+FLAVOR=$1
+PACKAGE=hikingdiary
+
+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/info/hikingdiary.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
new file mode 100755 (executable)
index 0000000..42f2d87
--- /dev/null
@@ -0,0 +1,25 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g.  /etc/emacs/site-start.d/50hikingdiary.el
+;; for the Debian hikingdiary package
+;;
+;; Originally contributed by Nils Naumann <naumann@unileoben.ac.at>
+;; Modified by Dirk Eddelbuettel <edd@debian.org>
+;; Adapted for dh-make by Jim Van Zandt <jrv@debian.org>
+
+;; The hikingdiary 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/hikingdiary")))
+;; If package-dir does not exist, the hikingdiary 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 'hikingdiary-mode "hikingdiary-mode"
+         "Major mode for editing hikingdiary files." t)
+       (add-to-list 'auto-mode-alist '("\\.hikingdiary$" . hikingdiary-mode))))
+
diff --git a/debian/hikingdiary-default.ex b/debian/hikingdiary-default.ex
new file mode 100755 (executable)
index 0000000..6894ff7
--- /dev/null
@@ -0,0 +1,10 @@
+# Defaults for hikingdiary initscript
+# sourced by /etc/init.d/hikingdiary
+# installed at /etc/default/hikingdiary by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""
diff --git a/debian/hikingdiary.doc-base.EX b/debian/hikingdiary.doc-base.EX
new file mode 100755 (executable)
index 0000000..5567b93
--- /dev/null
@@ -0,0 +1,22 @@
+Document: hikingdiary
+Title: Debian hikingdiary Manual
+Author: <insert document author here>
+Abstract: This manual describes what hikingdiary is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/hikingdiary/hikingdiary.sgml.gz
+
+Format: postscript
+Files: /usr/share/doc/hikingdiary/hikingdiary.ps.gz
+
+Format: text
+Files: /usr/share/doc/hikingdiary/hikingdiary.text.gz
+
+Format: HTML
+Index: /usr/share/doc/hikingdiary/html/index.html
+Files: /usr/share/doc/hikingdiary/html/*.html
+
+  
diff --git a/debian/init.d.ex b/debian/init.d.ex
new file mode 100755 (executable)
index 0000000..2e1f209
--- /dev/null
@@ -0,0 +1,81 @@
+#! /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 <miquels@cistron.nl>.
+#              Modified for Debian 
+#              by Ian Murdock <imurdock@gnu.ai.mit.edu>.
+#
+# 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/hikingdiary
+NAME=hikingdiary
+DESC=hikingdiary
+
+test -x $DAEMON || exit 0
+
+# Include hikingdiary defaults if available
+if [ -f /etc/default/hikingdiary ] ; then
+       . /etc/default/hikingdiary
+fi
+
+set -e
+
+case "$1" in
+  start)
+       echo -n "Starting $DESC: "
+       start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
+               --exec $DAEMON -- $DAEMON_OPTS
+       echo "$NAME."
+       ;;
+  stop)
+       echo -n "Stopping $DESC: "
+       start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
+               --exec $DAEMON
+       echo "$NAME."
+       ;;
+  #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
+       sleep 1
+       start-stop-daemon --start --quiet --pidfile \
+               /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
+       echo "$NAME."
+       ;;
+  *)
+       N=/etc/init.d/$NAME
+       # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+       echo "Usage: $N {start|stop|restart|force-reload}" >&2
+       exit 1
+       ;;
+esac
+
+exit 0
diff --git a/debian/manpage.1.ex b/debian/manpage.1.ex
new file mode 100755 (executable)
index 0000000..816338c
--- /dev/null
@@ -0,0 +1,59 @@
+.\"                                      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 HIKINGDIARY SECTION "May  1, 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 <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+hikingdiary \- program to do something
+.SH SYNOPSIS
+.B hikingdiary
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B hikingdiary
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics, 
+.\" respectively.
+\fBhikingdiary\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
+hikingdiary was written by <upstream author>.
+.PP
+This manual page was written by Ari Iivari <ari.iivari@redneck-wanderers.com>,
+for the Debian project (but may be used by others).
diff --git a/debian/manpage.sgml.ex b/debian/manpage.sgml.ex
new file mode 100755 (executable)
index 0000000..01bfb9c
--- /dev/null
@@ -0,0 +1,156 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > 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.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+  <!ENTITY dhsurname   "<surname>SURNAME</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>May  1, 2010</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>SECTION</manvolnum>">
+  <!ENTITY dhemail     "<email>ari.iivari@redneck-wanderers.com</email>">
+  <!ENTITY dhusername  "Ari Iivari">
+  <!ENTITY dhucpackage "<refentrytitle>HIKINGDIARY</refentrytitle>">
+  <!ENTITY dhpackage   "hikingdiary">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>program to do something</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+      <arg><option>--example <replaceable>that</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> and <command>bar</command>
+      commands.</para>
+
+    <para>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;
+      <application>Info</application> format; see below.</para>
+
+    <para><command>&dhpackage;</command> is a program that...</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>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
+      <application>Info</application> files.</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-h</option>
+          <option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-v</option>
+          <option>--version</option>
+        </term>
+        <listitem>
+          <para>Show version of program.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>bar (1), baz (1).</para>
+
+    <para>The programs are documented fully by <citetitle>The Rise and
+      Fall of a Fooish Bar</citetitle> available via the
+      <application>Info</application> system.</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>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.
+    </para>
+       <para>
+         On Debian systems, the complete text of the GNU General Public
+         License can be found in /usr/share/common-licenses/GPL.
+       </para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
diff --git a/debian/manpage.xml.ex b/debian/manpage.xml.ex
new file mode 100755 (executable)
index 0000000..8e01741
--- /dev/null
@@ -0,0 +1,148 @@
+<?xml version='1.0' encoding='ISO-8859-1'?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
+"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
+
+<!--
+
+Process this file with an XSLT processor: `xsltproc \
+-''-nonet /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/\
+manpages/docbook.xsl manpage.dbk'.  A manual page
+<package>.<section> will be generated.  You may view the
+manual page with: nroff -man <package>.<section> | 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
+
+manpage.1: manpage.dbk
+        $(XP) $(DB2MAN) $<
+    
+The xsltproc binary is found in the xsltproc package.  The
+XSL files are in docbook-xsl.  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.
+
+-->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>FIRSTNAME</firstname>">
+  <!ENTITY dhsurname   "<surname>SURNAME</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>May  1, 2010</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>SECTION</manvolnum>">
+  <!ENTITY dhemail     "<email>ari.iivari@redneck-wanderers.com</email>">
+  <!ENTITY dhusername  "Ari Iivari">
+  <!ENTITY dhucpackage "<refentrytitle>HIKINGDIARY</refentrytitle>">
+  <!ENTITY dhpackage   "hikingdiary">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>program to do something</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>-e <replaceable>this</replaceable></option></arg>
+
+      <arg><option>--example <replaceable>that</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> and <command>bar</command>
+      commands.</para>
+
+    <para>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;
+      <application>Info</application> format; see below.</para>
+
+    <para><command>&dhpackage;</command> is a program that...</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>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
+      <application>Info</application> files.</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-h</option>
+          <option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-v</option>
+          <option>--version</option>
+        </term>
+        <listitem>
+          <para>Show version of program.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>bar (1), baz (1).</para>
+
+    <para>The programs are documented fully by <citetitle>The Rise and
+      Fall of a Fooish Bar</citetitle> available via the
+      <application>Info</application> system.</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>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.
+    </para>
+       <para>
+         On Debian systems, the complete text of the GNU General Public
+         License can be found in /usr/share/common-licenses/GPL.
+       </para>
+
+  </refsect1>
+</refentry>
+
diff --git a/debian/menu.ex b/debian/menu.ex
new file mode 100755 (executable)
index 0000000..f58759d
--- /dev/null
@@ -0,0 +1,2 @@
+?package(hikingdiary):needs="X11|text|vc|wm" section="Apps/see-menu-manual"\
+  title="hikingdiary" command="/usr/bin/hikingdiary"
diff --git a/debian/postinst.ex b/debian/postinst.ex
new file mode 100755 (executable)
index 0000000..4d9979d
--- /dev/null
@@ -0,0 +1,41 @@
+#!/bin/sh
+# postinst script for hikingdiary
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# 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
new file mode 100755 (executable)
index 0000000..cbd6c50
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postrm script for hikingdiary
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# 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
new file mode 100755 (executable)
index 0000000..65e14e5
--- /dev/null
@@ -0,0 +1,37 @@
+#!/bin/sh
+# preinst script for hikingdiary
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# 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
new file mode 100755 (executable)
index 0000000..7af53db
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/sh
+# prerm script for hikingdiary
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# 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
new file mode 100755 (executable)
index 0000000..95eb942
--- /dev/null
@@ -0,0 +1,64 @@
+#!/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 := hikingdiary
+builddir:
+       mkdir -p builddir
+
+builddir/Makefile: builddir
+       cd builddir && qmake 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/situare.
+       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
+       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/debian/watch.ex b/debian/watch.ex
new file mode 100755 (executable)
index 0000000..70fa638
--- /dev/null
@@ -0,0 +1,22 @@
+# 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 
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php hikingdiary-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/hikingdiary-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/hikingdiary-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for debscripts >= 2.9
+# http://sf.net/hikingdiary/hikingdiary-(.*)\.tar\.gz
+
+
diff --git a/diaryContent.xml b/diaryContent.xml
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/hikingdiary.pro b/hikingdiary.pro
new file mode 100755 (executable)
index 0000000..60f5c69
--- /dev/null
@@ -0,0 +1,9 @@
+# hikingdiary.pro
+
+QMAKEVERSION = $$[QMAKE_VERSION]
+ISQT4 = $$find(QMAKEVERSION, ^[2-9])
+isEmpty( ISQT4 ) {
+error("Use the qmake include with Qt4.6.2 or greater");
+}
+TEMPLATE = subdirs
+SUBDIRS = src
diff --git a/hikingdiary.pro.user b/hikingdiary.pro.user
new file mode 100755 (executable)
index 0000000..89dfd4b
--- /dev/null
@@ -0,0 +1,113 @@
+<!DOCTYPE QtCreatorProject>
+<qtcreator>
+ <data>
+  <variable>ProjectExplorer.Project.ActiveTarget</variable>
+  <value type="int">0</value>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.EditorSettings</variable>
+  <valuemap type="QVariantMap">
+   <value key="EditorConfiguration.Codec" type="QByteArray">System</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.Target.0</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Desktop</value>
+   <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Target.DesktopTarget</value>
+   <value key="ProjectExplorer.Target.ActiveBuildConfiguration" type="int">0</value>
+   <value key="ProjectExplorer.Target.ActiveRunConfiguration" type="int">0</value>
+   <valuemap key="ProjectExplorer.Target.BuildConfiguration.0" type="QVariantMap">
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">qmake</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
+     <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
+    </valuemap>
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">2</value>
+    <valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
+      <value type="QString">clean</value>
+     </valuelist>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
+    <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
+    <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Debug</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">2</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/scratchbox/users/ari/home/ari/code/hikingdiary-build-desktop</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">2</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">0</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
+   </valuemap>
+   <valuemap key="ProjectExplorer.Target.BuildConfiguration.1" type="QVariantMap">
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">qmake</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">QtProjectManager.QMakeBuildStep</value>
+     <valuelist key="QtProjectManager.QMakeBuildStep.QMakeArguments" type="QVariantList"/>
+    </valuemap>
+    <valuemap key="ProjectExplorer.BuildConfiguration.BuildStep.1" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">false</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList"/>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.BuildStepsCount" type="int">2</value>
+    <valuemap key="ProjectExplorer.BuildConfiguration.CleanStep.0" type="QVariantMap">
+     <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Make</value>
+     <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.MakeStep</value>
+     <value key="Qt4ProjectManager.MakeStep.Clean" type="bool">true</value>
+     <valuelist key="Qt4ProjectManager.MakeStep.MakeArguments" type="QVariantList">
+      <value type="QString">clean</value>
+     </valuelist>
+     <value key="Qt4ProjectManager.MakeStep.MakeCommand" type="QString"></value>
+    </valuemap>
+    <value key="ProjectExplorer.BuildConfiguration.CleanStepsCount" type="int">1</value>
+    <value key="ProjectExplorer.BuildConfiguration.ClearSystemEnvironment" type="bool">false</value>
+    <valuelist key="ProjectExplorer.BuildConfiguration.UserEnvironmentChanges" type="QVariantList"/>
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">Release</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4BuildConfiguration</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildConfiguration" type="int">0</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.BuildDirectory" type="QString">/scratchbox/users/ari/home/ari/code/hikingdiary-build-desktop</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.QtVersionId" type="int">2</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.ToolChain" type="int">0</value>
+    <value key="Qt4ProjectManager.Qt4BuildConfiguration.UseShadowBuild" type="bool">true</value>
+   </valuemap>
+   <value key="ProjectExplorer.Target.BuildConfigurationCount" type="int">2</value>
+   <valuemap key="ProjectExplorer.Target.RunConfiguration.0" type="QVariantMap">
+    <value key="ProjectExplorer.ProjectConfiguration.DisplayName" type="QString">src</value>
+    <value key="ProjectExplorer.ProjectConfiguration.Id" type="QString">Qt4ProjectManager.Qt4RunConfiguration</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.BaseEnvironmentBase" type="int">2</value>
+    <valuelist key="Qt4ProjectManager.Qt4RunConfiguration.CommandLineArguments" type="QVariantList"/>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.ProFile" type="QString">src/src.pro</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix" type="bool">false</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UseTerminal" type="bool">false</value>
+    <valuelist key="Qt4ProjectManager.Qt4RunConfiguration.UserEnvironmentChanges" type="QVariantList"/>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetName" type="bool">false</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UserSetWorkingDirectory" type="bool">false</value>
+    <value key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory" type="QString"></value>
+   </valuemap>
+   <value key="ProjectExplorer.Target.RunConfigurationCount" type="int">1</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.TargetCount</variable>
+  <value type="int">1</value>
+ </data>
+ <data>
+  <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
+  <value type="int">4</value>
+ </data>
+</qtcreator>
diff --git a/res/drawing.svg b/res/drawing.svg
new file mode 100755 (executable)
index 0000000..b6f7e00
--- /dev/null
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="48px"
+   height="48px"
+   id="svg2816"
+   version="1.1"
+   inkscape:version="0.47pre4 r22446"
+   sodipodi:docname="New document 2">
+  <defs
+     id="defs2818">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 24 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="48 : 24 : 1"
+       inkscape:persp3d-origin="24 : 16 : 1"
+       id="perspective2824" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="7"
+     inkscape:cx="21.5"
+     inkscape:cy="24"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1179"
+     inkscape:window-height="672"
+     inkscape:window-x="84"
+     inkscape:window-y="112"
+     inkscape:window-maximized="0" />
+  <metadata
+     id="metadata2821">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer">
+    <path
+       transform="matrix(0.46142355,-0.71492257,-0.68645772,-0.44305183,27.037171,31.895899)"
+       d="M 22.148546,24.577117 6.0000001,12.08257 -10.148545,24.577117 2.3460014,8.4285718 -10.148546,-7.7199737 5.9999999,4.7745731 22.148545,-7.7199738 9.6539986,8.4285716 22.148546,24.577117 z"
+       inkscape:randomized="0"
+       inkscape:rounded="0"
+       inkscape:flatsided="false"
+       sodipodi:arg2="1.5707963"
+       sodipodi:arg1="0.78539816"
+       sodipodi:r2="3.6539986"
+       sodipodi:r1="22.837492"
+       sodipodi:cy="8.4285717"
+       sodipodi:cx="6"
+       sodipodi:sides="4"
+       id="path3606"
+       style="fill:#ffffff;stroke:#000000;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none"
+       sodipodi:type="star" />
+    <path
+       sodipodi:type="star"
+       style="fill:#ffffff;stroke:#000000;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none"
+       id="path3602"
+       sodipodi:sides="4"
+       sodipodi:cx="6"
+       sodipodi:cy="8.4285717"
+       sodipodi:r1="22.837492"
+       sodipodi:r2="3.6539986"
+       sodipodi:arg1="0.78539816"
+       sodipodi:arg2="1.5707963"
+       inkscape:flatsided="false"
+       inkscape:rounded="0"
+       inkscape:randomized="0"
+       d="M 22.148546,24.577117 6.0000001,12.08257 -10.148545,24.577117 2.3460014,8.4285718 -10.148546,-7.7199737 5.9999999,4.7745731 22.148545,-7.7199738 9.6539986,8.4285716 22.148546,24.577117 z"
+       transform="matrix(1.1347896,-0.1795155,0.19333804,1.2221675,15.561699,14.775967)" />
+    <path
+       sodipodi:type="arc"
+       style="fill:#ffffff;stroke:#000000;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none"
+       id="path3604"
+       sodipodi:cx="21.357143"
+       sodipodi:cy="10.428572"
+       sodipodi:rx="2.7857144"
+       sodipodi:ry="2.7142856"
+       d="m 24.142858,10.428572 a 2.7857144,2.7142856 0 1 1 -5.571429,0 2.7857144,2.7142856 0 1 1 5.571429,0 z"
+       transform="translate(2.6428566,13.571428)" />
+  </g>
+</svg>
diff --git a/res/icon/26x26/hikingdiary.png b/res/icon/26x26/hikingdiary.png
new file mode 100755 (executable)
index 0000000..28dc72d
Binary files /dev/null and b/res/icon/26x26/hikingdiary.png differ
diff --git a/res/icon/26x26/hikingdiary.png.base64 b/res/icon/26x26/hikingdiary.png.base64
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/res/icon/48x48/hikingdiary.png b/res/icon/48x48/hikingdiary.png
new file mode 100755 (executable)
index 0000000..07b7b20
Binary files /dev/null and b/res/icon/48x48/hikingdiary.png differ
diff --git a/res/icon/48x48/hikingdiary.svg b/res/icon/48x48/hikingdiary.svg
new file mode 100755 (executable)
index 0000000..7eccb52
--- /dev/null
@@ -0,0 +1,137 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="48px"
+   height="48px"
+   id="svg2816"
+   version="1.1"
+   inkscape:version="0.47pre4 r22446"
+   sodipodi:docname="hikingdiary.png">
+  <defs
+     id="defs2818">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 24 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="48 : 24 : 1"
+       inkscape:persp3d-origin="24 : 16 : 1"
+       id="perspective2824" />
+    <inkscape:perspective
+       id="perspective3720"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective3742"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="39.59798"
+     inkscape:cx="27.357827"
+     inkscape:cy="25.070763"
+     inkscape:current-layer="layer3"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="941"
+     inkscape:window-height="672"
+     inkscape:window-x="95"
+     inkscape:window-y="48"
+     inkscape:window-maximized="0"
+     inkscape:snap-global="true"
+     inkscape:snap-nodes="false"
+     inkscape:snap-bbox="true"
+     inkscape:bbox-nodes="true" />
+  <metadata
+     id="metadata2821">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     style="display:none">
+    <path
+       transform="matrix(0.39434531,-0.55181964,-0.58666573,-0.34197368,26.741394,30.493909)"
+       d="M 22.148546,24.577117 6.0000001,12.08257 -10.148545,24.577117 2.3460014,8.4285718 -10.148546,-7.7199737 5.9999999,4.7745731 22.148545,-7.7199738 9.6539986,8.4285716 22.148546,24.577117 z"
+       inkscape:randomized="0"
+       inkscape:rounded="0"
+       inkscape:flatsided="false"
+       sodipodi:arg2="1.5707963"
+       sodipodi:arg1="0.78539816"
+       sodipodi:r2="3.6539986"
+       sodipodi:r1="22.837492"
+       sodipodi:cy="8.4285717"
+       sodipodi:cx="6"
+       sodipodi:sides="4"
+       id="path3606"
+       style="fill:#ffffff;stroke:#000000;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none"
+       sodipodi:type="star" />
+    <path
+       sodipodi:type="star"
+       style="fill:#ffffff;stroke:#000000;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none"
+       id="path3602"
+       sodipodi:sides="4"
+       sodipodi:cx="6"
+       sodipodi:cy="8.4285717"
+       sodipodi:r1="22.837492"
+       sodipodi:r2="3.6539986"
+       sodipodi:arg1="0.78539816"
+       sodipodi:arg2="1.5707963"
+       inkscape:flatsided="false"
+       inkscape:rounded="0"
+       inkscape:randomized="0"
+       d="M 22.148546,24.577117 6.0000001,12.08257 -10.148545,24.577117 2.3460014,8.4285718 -10.148546,-7.7199737 5.9999999,4.7745731 22.148545,-7.7199738 9.6539986,8.4285716 22.148546,24.577117 z"
+       transform="matrix(1.1347896,-0.1795155,0.19333804,1.2221675,15.561699,14.775967)" />
+    <path
+       sodipodi:type="arc"
+       style="fill:#ffffff;stroke:#000000;stroke-width:0.25;stroke-miterlimit:4;stroke-dasharray:none"
+       id="path3604"
+       sodipodi:cx="21.357143"
+       sodipodi:cy="10.428572"
+       sodipodi:rx="2.7857144"
+       sodipodi:ry="2.7142856"
+       d="m 24.142858,10.428572 a 2.7857144,2.7142856 0 1 1 -5.571429,0 2.7857144,2.7142856 0 1 1 5.571429,0 z"
+       transform="matrix(1.2458267,0,0,1.22598,-2.6072981,11.429066)" />
+  </g>
+  <g
+     inkscape:groupmode="layer"
+     id="layer3"
+     inkscape:label="Layer2"
+     style="display:inline">
+    <path
+       transform="matrix(0.8495432,-0.13439158,0.14473962,0.91495735,21.111362,16.938848)"
+       style="fill:#ffffff;stroke:#000000;stroke-width:0.25;stroke-miterlimit:4;display:inline"
+       d="M -10.148545,24.577117 2.3460014,8.4285718 M 6.0000001,12.08257 -10.148545,24.577117 m 32.297091,0 L 6.0000001,12.08257 M 9.6539986,8.4285716 22.148545,-7.7199738 9.6539986,8.4285716 z M -10.148546,-7.7199737 5.9999999,4.7745731 M 22.148545,-7.7199738 5.9999999,4.7745731 22.148545,-7.7199738 z M 9.6539986,8.4285716 22.148546,24.577117 M 2.3460014,8.4285718 -10.148546,-7.7199737"
+       id="path3699-0"
+       sodipodi:nodetypes="ccccccccccsccccccc" />
+  </g>
+</svg>
diff --git a/res/icon/64x64/hikingdiary.png b/res/icon/64x64/hikingdiary.png
new file mode 100755 (executable)
index 0000000..489595c
Binary files /dev/null and b/res/icon/64x64/hikingdiary.png differ
diff --git a/res/icon/orgin_rw_hd_icon.xcf b/res/icon/orgin_rw_hd_icon.xcf
new file mode 100755 (executable)
index 0000000..95fa272
Binary files /dev/null and b/res/icon/orgin_rw_hd_icon.xcf differ
diff --git a/src/Makefile b/src/Makefile
new file mode 100644 (file)
index 0000000..09f0102
--- /dev/null
@@ -0,0 +1,326 @@
+#############################################################################
+# Makefile for building: hikingdiary
+# Generated by qmake (2.01a) (Qt 4.6.2) on: Fri Jul 9 22:57:54 2010
+# Project:  src.pro
+# Template: app
+# Command: /usr/bin/qmake -unix -o Makefile src.pro
+#############################################################################
+
+####### Compiler, tools and options
+
+CC            = gcc
+CXX           = g++
+DEFINES       = -DLIBLOCATION -DDATADIR=\"/usr/share\" -DPKGDATADIR=\"\" -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
+CFLAGS        = -pipe -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -W -D_REENTRANT $(DEFINES)
+CXXFLAGS      = -pipe -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -W -D_REENTRANT $(DEFINES)
+INCPATH       = -I/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++ -I. -I/targets/FREMANTLE_X86/usr/include/QtCore -I/targets/FREMANTLE_X86/usr/include/QtGui -I/targets/FREMANTLE_X86/usr/include/QtXml -I/targets/FREMANTLE_X86/usr/include -I/targets/FREMANTLE_X86/usr/include/location -I/targets/FREMANTLE_X86/usr/include/glib-2.0 -I/targets/FREMANTLE_X86/usr/lib/glib-2.0/include -I.
+LINK          = g++
+LFLAGS        = -Wl,-O1 -Wl,-rpath,/usr/lib
+LIBS          = $(SUBLIBS)  -L/usr/lib -llocation -lgconf-2 -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0 -lQtXml -L/usr/lib -lQtGui -L/usr/X11R6/lib -lQtCore -lpthread 
+AR            = ar cqs
+RANLIB        = 
+QMAKE         = /usr/bin/qmake
+TAR           = tar -cf
+COMPRESS      = gzip -9f
+COPY          = cp -f
+SED           = sed
+COPY_FILE     = $(COPY)
+COPY_DIR      = $(COPY) -r
+STRIP         = strip
+INSTALL_FILE  = install -m 644 -p
+INSTALL_DIR   = $(COPY_DIR)
+INSTALL_PROGRAM = install -m 755 -p
+DEL_FILE      = rm -f
+SYMLINK       = ln -f -s
+DEL_DIR       = rmdir
+MOVE          = mv -f
+CHK_DIR_EXISTS= test -d
+MKDIR         = mkdir -p
+
+####### Output directory
+
+OBJECTS_DIR   = ./
+
+####### Files
+
+SOURCES       = main.cpp \
+               mainwindow.cpp \
+               maemo5location.cpp \
+               maemo5locationprivate.cpp \
+               xmlparser.cpp \
+               diarydata.cpp \
+               diarydatamanager.cpp moc_mainwindow.cpp \
+               moc_maemo5location.cpp \
+               moc_maemo5locationprivate.cpp
+OBJECTS       = main.o \
+               mainwindow.o \
+               maemo5location.o \
+               maemo5locationprivate.o \
+               xmlparser.o \
+               diarydata.o \
+               diarydatamanager.o \
+               moc_mainwindow.o \
+               moc_maemo5location.o \
+               moc_maemo5locationprivate.o
+DIST          = /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf \
+               src.pro
+QMAKE_TARGET  = hikingdiary
+DESTDIR       = 
+TARGET        = hikingdiary
+
+first: all
+####### Implicit rules
+
+.SUFFIXES: .o .c .cpp .cc .cxx .C
+
+.cpp.o:
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cc.o:
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.cxx.o:
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.C.o:
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<"
+
+.c.o:
+       $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"
+
+####### Build rules
+
+all: Makefile $(TARGET)
+
+$(TARGET):  $(OBJECTS)  
+       $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
+
+Makefile: src.pro  /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/linux-g++/qmake.conf /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/link_pkgconfig.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf \
+               /targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf \
+               /usr/lib/libQtXml.prl \
+               /usr/lib/libQtCore.prl \
+               /usr/lib/libQtGui.prl
+       $(QMAKE) -unix -o Makefile src.pro
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/g++.conf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/unix.conf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/common/linux.conf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/qconfig.pri:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_functions.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt_config.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/exclusive_builds.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_pre.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/release.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/default_post.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/link_pkgconfig.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/warn_on.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/qt.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/unix/thread.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/moc.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/resources.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/uic.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/yacc.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/lex.prf:
+/targets/FREMANTLE_X86/usr/share/qt4/mkspecs/features/include_source_dir.prf:
+/usr/lib/libQtXml.prl:
+/usr/lib/libQtCore.prl:
+/usr/lib/libQtGui.prl:
+qmake:  FORCE
+       @$(QMAKE) -unix -o Makefile src.pro
+
+dist: 
+       @$(CHK_DIR_EXISTS) .tmp/hikingdiary1.0.0 || $(MKDIR) .tmp/hikingdiary1.0.0 
+       $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/hikingdiary1.0.0/ && $(COPY_FILE) --parents mainwindow.h maemo5location.h maemo5locationprivate.h xmlparser.h diarydata.h diarydatamanager.h .tmp/hikingdiary1.0.0/ && $(COPY_FILE) --parents main.cpp mainwindow.cpp maemo5location.cpp maemo5locationprivate.cpp xmlparser.cpp diarydata.cpp diarydatamanager.cpp .tmp/hikingdiary1.0.0/ && (cd `dirname .tmp/hikingdiary1.0.0` && $(TAR) hikingdiary1.0.0.tar hikingdiary1.0.0 && $(COMPRESS) hikingdiary1.0.0.tar) && $(MOVE) `dirname .tmp/hikingdiary1.0.0`/hikingdiary1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/hikingdiary1.0.0
+
+
+clean:compiler_clean 
+       -$(DEL_FILE) $(OBJECTS)
+       -$(DEL_FILE) *~ core *.core
+
+
+####### Sub-libraries
+
+distclean: clean
+       -$(DEL_FILE) $(TARGET) 
+       -$(DEL_FILE) Makefile
+
+
+mocclean: compiler_moc_header_clean compiler_moc_source_clean
+
+mocables: compiler_moc_header_make_all compiler_moc_source_make_all
+
+compiler_moc_header_make_all: moc_mainwindow.cpp moc_maemo5location.cpp moc_maemo5locationprivate.cpp
+compiler_moc_header_clean:
+       -$(DEL_FILE) moc_mainwindow.cpp moc_maemo5location.cpp moc_maemo5locationprivate.cpp
+moc_mainwindow.cpp: maemo5location.h \
+               xmlparser.h \
+               mainwindow.h \
+               diarydatamanager.h \
+               mainwindow.h
+       /usr/bin/moc $(DEFINES) $(INCPATH) mainwindow.h -o moc_mainwindow.cpp
+
+moc_maemo5location.cpp: maemo5location.h
+       /usr/bin/moc $(DEFINES) $(INCPATH) maemo5location.h -o moc_maemo5location.cpp
+
+moc_maemo5locationprivate.cpp: maemo5location.h \
+               maemo5locationprivate.h
+       /usr/bin/moc $(DEFINES) $(INCPATH) maemo5locationprivate.h -o moc_maemo5locationprivate.cpp
+
+compiler_rcc_make_all:
+compiler_rcc_clean:
+compiler_image_collection_make_all: qmake_image_collection.cpp
+compiler_image_collection_clean:
+       -$(DEL_FILE) qmake_image_collection.cpp
+compiler_moc_source_make_all:
+compiler_moc_source_clean:
+compiler_uic_make_all:
+compiler_uic_clean:
+compiler_yacc_decl_make_all:
+compiler_yacc_decl_clean:
+compiler_yacc_impl_make_all:
+compiler_yacc_impl_clean:
+compiler_lex_make_all:
+compiler_lex_clean:
+compiler_clean: compiler_moc_header_clean 
+
+####### Compile
+
+main.o: main.cpp mainwindow.h \
+               maemo5location.h \
+               xmlparser.h \
+               diarydatamanager.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp
+
+mainwindow.o: mainwindow.cpp mainwindow.h \
+               maemo5location.h \
+               xmlparser.h \
+               diarydatamanager.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o mainwindow.o mainwindow.cpp
+
+maemo5location.o: maemo5location.cpp maemo5locationprivate.h \
+               maemo5location.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o maemo5location.o maemo5location.cpp
+
+maemo5locationprivate.o: maemo5locationprivate.cpp maemo5locationprivate.h \
+               maemo5location.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o maemo5locationprivate.o maemo5locationprivate.cpp
+
+xmlparser.o: xmlparser.cpp xmlparser.h \
+               mainwindow.h \
+               maemo5location.h \
+               diarydatamanager.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o xmlparser.o xmlparser.cpp
+
+diarydata.o: diarydata.cpp diarydata.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o diarydata.o diarydata.cpp
+
+diarydatamanager.o: diarydatamanager.cpp diarydatamanager.h
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o diarydatamanager.o diarydatamanager.cpp
+
+moc_mainwindow.o: moc_mainwindow.cpp 
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_mainwindow.o moc_mainwindow.cpp
+
+moc_maemo5location.o: moc_maemo5location.cpp 
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_maemo5location.o moc_maemo5location.cpp
+
+moc_maemo5locationprivate.o: moc_maemo5locationprivate.cpp 
+       $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_maemo5locationprivate.o moc_maemo5locationprivate.cpp
+
+####### Install
+
+install_desktop: first FORCE
+       @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/hildon/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ 
+       -$(INSTALL_PROGRAM) /home/ari/code/hikingdiary/src/hikingdiary.desktop $(INSTALL_ROOT)/usr/share/applications/hildon/
+       -strip $(INSTALL_ROOT)/usr/share/applications/hildon/hikingdiary.desktop
+
+
+uninstall_desktop:  FORCE
+       -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/hildon/hikingdiary.desktop
+       -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ 
+
+
+install_icon26: first FORCE
+       @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/ 
+       -$(INSTALL_PROGRAM) /home/ari/code/hikingdiary/res/icon/26x26/hikingdiary.png $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/
+       -strip $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/hikingdiary.png
+
+
+uninstall_icon26:  FORCE
+       -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/hikingdiary.png
+       -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/26x26/apps/ 
+
+
+install_icon48: first FORCE
+       @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ 
+       -$(INSTALL_PROGRAM) /home/ari/code/hikingdiary/res/icon/48x48/hikingdiary.png $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/
+       -strip $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/hikingdiary.png
+
+
+uninstall_icon48:  FORCE
+       -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/hikingdiary.png
+       -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/48x48/apps/ 
+
+
+install_icon64: first FORCE
+       @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ 
+       -$(INSTALL_PROGRAM) /home/ari/code/hikingdiary/res/icon/64x64/hikingdiary.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/
+       -strip $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/hikingdiary.png
+
+
+uninstall_icon64:  FORCE
+       -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/hikingdiary.png
+       -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ 
+
+
+install_target: first FORCE
+       @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/bin/ || $(MKDIR) $(INSTALL_ROOT)/usr/bin/ 
+       -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
+       -$(STRIP) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
+
+uninstall_target:  FORCE
+       -$(DEL_FILE) "$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"
+       -$(DEL_DIR) $(INSTALL_ROOT)/usr/bin/ 
+
+
+install:  install_desktop install_icon26 install_icon48 install_icon64 install_target  FORCE
+
+uninstall: uninstall_desktop uninstall_icon26 uninstall_icon48 uninstall_icon64 uninstall_target   FORCE
+
+FORCE:
+
diff --git a/src/Pensseli.png b/src/Pensseli.png
new file mode 100755 (executable)
index 0000000..64ba031
Binary files /dev/null and b/src/Pensseli.png differ
diff --git a/src/about.png b/src/about.png
new file mode 100755 (executable)
index 0000000..5244ac3
Binary files /dev/null and b/src/about.png differ
diff --git a/src/diaryContent.xml b/src/diaryContent.xml
new file mode 100755 (executable)
index 0000000..e69de29
diff --git a/src/diaryData.dat b/src/diaryData.dat
new file mode 100755 (executable)
index 0000000..57d3908
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xbel><xbel version="1.0"><date date="01.05.2010 23:19"/></xbel>
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xbel><xbel version="1.0"><date date="01.05.2010 23:20"/></xbel>
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE xbel><xbel version="1.0"><date date="01.05.2010 23:22"><position lat/lon="65.5995 / 30.4548"><header header=";lknmlknlkjnklnkl"><content content="buhuibhuihiuhuh"/></header></position></date></xbel>
diff --git a/src/diarydata.cpp b/src/diarydata.cpp
new file mode 100755 (executable)
index 0000000..9cf8930
--- /dev/null
@@ -0,0 +1,39 @@
+#include "diarydata.h"
+
+diaryData::diaryData(){
+    trailString = "";
+    dateData.toString("");
+    headerString = "";
+    contentData = "";
+    latString = "";
+    lonString = "";
+}
+
+diaryData::diaryData(QString trail, QString hder, QDate d, QString cont, QString lat, QString lon){
+    trail = trailString;
+    hder = headerString;
+    d = dateData;
+    cont = contentData;
+    lat = latString;
+    lon = lonString;
+}
+
+void diaryData::setTrailName(QString trail){
+    trailString = trail;
+}
+
+void diaryData::setHeaderName(QString hder){
+    headerString = hder;
+}
+
+void diaryData::setContentText(QString cont){
+    contentData = cont;
+}
+
+void diaryData::setLatData(QString lat){
+    latString = lat;
+}
+
+void diaryData::setLonData(QString lon){
+    lonString = lon;
+}
diff --git a/src/diarydata.h b/src/diarydata.h
new file mode 100755 (executable)
index 0000000..3a1a7dd
--- /dev/null
@@ -0,0 +1,36 @@
+#ifndef DIARYDATA_H
+#define DIARYDATA_H
+
+#include <QString>
+#include <QDate>
+#include <QDateTime>
+
+class diaryData
+{
+public:
+    diaryData();
+    ~diaryData();
+
+    diaryData(QString trail, QString hder, QDate d, QString cont, QString lat, QString lon);
+
+    void setTrailName(QString trail);
+    void setHeaderName(QString hder);
+    void setDateData(QDate d);
+    void setContentText(QString cont);
+    void setLatData(QString lat);
+    void setLonData(QString lon);
+
+signals:
+
+public slots:
+
+protected:
+    QString trailString;
+    QString headerString;
+    QDate dateData;
+    QString contentData;
+    QString latString;
+    QString lonString;
+};
+
+#endif // DIARYDATA_H
diff --git a/src/diarydata.o b/src/diarydata.o
new file mode 100644 (file)
index 0000000..760942c
Binary files /dev/null and b/src/diarydata.o differ
diff --git a/src/diarydatamanager.cpp b/src/diarydatamanager.cpp
new file mode 100755 (executable)
index 0000000..c64caf4
--- /dev/null
@@ -0,0 +1,9 @@
+#include "diarydatamanager.h"
+
+diaryDataManager::diaryDataManager()
+{
+}
+
+void diaryDataManager::printData(){
+    qDebug() << "Taalla ollaan... :)";
+}
diff --git a/src/diarydatamanager.h b/src/diarydatamanager.h
new file mode 100755 (executable)
index 0000000..56f50cd
--- /dev/null
@@ -0,0 +1,16 @@
+#ifndef DIARYDATAMANAGER_H
+#define DIARYDATAMANAGER_H
+#include <QList>
+#include <QDate>
+#include <QDebug>
+
+class diaryDataManager
+{
+public:
+    diaryDataManager();
+    void printData();
+private:
+    QList<QString> diaryListData;
+};
+
+#endif // DIARYDATAMANAGER_H
diff --git a/src/diarydatamanager.o b/src/diarydatamanager.o
new file mode 100644 (file)
index 0000000..f14e38c
Binary files /dev/null and b/src/diarydatamanager.o differ
diff --git a/src/exit.png b/src/exit.png
new file mode 100755 (executable)
index 0000000..5319a94
Binary files /dev/null and b/src/exit.png differ
diff --git a/src/hikingdiary b/src/hikingdiary
new file mode 100755 (executable)
index 0000000..cf28e44
Binary files /dev/null and b/src/hikingdiary differ
diff --git a/src/hikingdiary.desktop b/src/hikingdiary.desktop
new file mode 100755 (executable)
index 0000000..656a81e
--- /dev/null
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=0.1
+Type=Application
+Name=hikingdiary
+Exec=/usr/bin/hikingdiary
+Icon=hikingdiary
+X-HildonDesk-ShowInToolbar=true
+X-Osso-Type=application/x-executable
diff --git a/src/hikingdiary.pro.user b/src/hikingdiary.pro.user
new file mode 100755 (executable)
index 0000000..0aa2a53
--- /dev/null
@@ -0,0 +1,276 @@
+<!DOCTYPE QtCreatorProject>
+<qtcreator>
+ <data>
+  <variable>RunConfiguration0-Arguments</variable>
+  <valuelist type="QVariantList"/>
+ </data>
+ <data>
+  <variable>RunConfiguration0-BaseEnvironmentBase</variable>
+  <value type="int">2</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-Executable</variable>
+  <value type="QString"></value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-RunConfiguration.name</variable>
+  <value type="QString">Custom Executable</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-UseTerminal</variable>
+  <value type="bool">false</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-UserEnvironmentChanges</variable>
+  <valuelist type="QVariantList"/>
+ </data>
+ <data>
+  <variable>RunConfiguration0-UserName</variable>
+  <value type="QString"></value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-UserSetName</variable>
+  <value type="bool">false</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-WorkingDirectory</variable>
+  <value type="QString">$BUILDDIR</value>
+ </data>
+ <data>
+  <variable>RunConfiguration0-type</variable>
+  <value type="QString">ProjectExplorer.CustomExecutableRunConfiguration</value>
+ </data>
+ <data>
+  <variable>activeRunConfiguration</variable>
+  <value type="int">0</value>
+ </data>
+ <data>
+  <variable>activebuildconfiguration</variable>
+  <value type="QString">Debug</value>
+ </data>
+ <data>
+  <variable>buildConfiguration-Debug</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
+   <value key="QtVersionId" type="int">0</value>
+   <value key="ToolChain" type="int">0</value>
+   <value key="addQDumper" type=""></value>
+   <value key="buildConfiguration" type="int">2</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildConfiguration-Release</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Release</value>
+   <value key="QtVersionId" type="int">0</value>
+   <value key="addQDumper" type=""></value>
+   <value key="buildConfiguration" type="int">0</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Debug-buildstep0</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
+   <valuelist key="abstractProcess.Environment" type="QVariantList">
+    <value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-CYJOVZ5wpg,guid=b84f8d17066bf3a7327c2d744b657958</value>
+    <value type="QString">DESKTOP_SESSION=gnome</value>
+    <value type="QString">DISPLAY=:0.0</value>
+    <value type="QString">GDMSESSION=gnome</value>
+    <value type="QString">GDM_KEYBOARD_LAYOUT=fi</value>
+    <value type="QString">GDM_LANG=en_US.UTF-8</value>
+    <value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
+    <value type="QString">GNOME_KEYRING_SOCKET=/tmp/keyring-BLHq0M/socket</value>
+    <value type="QString">GTK_MODULES=canberra-gtk-module</value>
+    <value type="QString">GTK_RC_FILES=/etc/gtk/gtkrc:/home/ari/.gtkrc-1.2-gnome2</value>
+    <value type="QString">HOME=/home/ari</value>
+    <value type="QString">LANG=en_US.UTF-8</value>
+    <value type="QString">LD_LIBRARY_PATH=/home/ari/qtsdk-2010.01/lib/qtcreator:</value>
+    <value type="QString">LIBGL_DRIVERS_PATH=/usr/lib32/dri:/usr/lib64/dri</value>
+    <value type="QString">LOGNAME=ari</value>
+    <value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-ari</value>
+    <value type="QString">PATH=/home/ari/qtsdk-2010.01/qt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
+    <value type="QString">PWD=/home/ari</value>
+    <value type="QString">QTDIR=/home/ari/qtsdk-2010.01/qt</value>
+    <value type="QString">SESSION_MANAGER=local/ari-laptop:@/tmp/.ICE-unix/1821,unix/ari-laptop:/tmp/.ICE-unix/1821</value>
+    <value type="QString">SHELL=/bin/bash</value>
+    <value type="QString">SPEECHD_PORT=7560</value>
+    <value type="QString">SSH_AGENT_PID=1861</value>
+    <value type="QString">SSH_AUTH_SOCK=/tmp/keyring-BLHq0M/socket.ssh</value>
+    <value type="QString">USER=ari</value>
+    <value type="QString">USERNAME=ari</value>
+    <value type="QString">XAUTHORITY=/var/run/gdm/auth-for-ari-Mn7H48/database</value>
+    <value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
+    <value type="QString">XDG_SESSION_COOKIE=fc73fd5cf79ae06c289c5f054b4644df-1264941400.773113-1887150617</value>
+   </valuelist>
+   <valuelist key="abstractProcess.arguments" type="QVariantList">
+    <value type="QString">/scratchbox/users/ari/home/ari/Qt_codes/hikingdiary/hikingdiary.pro</value>
+    <value type="QString">-spec</value>
+    <value type="QString">linux-g++-64</value>
+    <value type="QString">-r</value>
+    <value type="QString">CONFIG+=debug</value>
+   </valuelist>
+   <value key="abstractProcess.command" type="QString">/home/ari/qtsdk-2010.01/qt/bin/qmake</value>
+   <value key="abstractProcess.enabled" type="bool">true</value>
+   <value key="abstractProcess.workingDirectory" type="QString">/scratchbox/users/ari/home/ari/Qt_codes/hikingdiary</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Debug-buildstep1</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
+   <valuelist key="abstractProcess.Environment" type="QVariantList">
+    <value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-CYJOVZ5wpg,guid=b84f8d17066bf3a7327c2d744b657958</value>
+    <value type="QString">DESKTOP_SESSION=gnome</value>
+    <value type="QString">DISPLAY=:0.0</value>
+    <value type="QString">GDMSESSION=gnome</value>
+    <value type="QString">GDM_KEYBOARD_LAYOUT=fi</value>
+    <value type="QString">GDM_LANG=en_US.UTF-8</value>
+    <value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
+    <value type="QString">GNOME_KEYRING_SOCKET=/tmp/keyring-BLHq0M/socket</value>
+    <value type="QString">GTK_MODULES=canberra-gtk-module</value>
+    <value type="QString">GTK_RC_FILES=/etc/gtk/gtkrc:/home/ari/.gtkrc-1.2-gnome2</value>
+    <value type="QString">HOME=/home/ari</value>
+    <value type="QString">LANG=en_US.UTF-8</value>
+    <value type="QString">LD_LIBRARY_PATH=/home/ari/qtsdk-2010.01/lib/qtcreator:</value>
+    <value type="QString">LIBGL_DRIVERS_PATH=/usr/lib32/dri:/usr/lib64/dri</value>
+    <value type="QString">LOGNAME=ari</value>
+    <value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-ari</value>
+    <value type="QString">PATH=/home/ari/qtsdk-2010.01/qt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
+    <value type="QString">PWD=/home/ari</value>
+    <value type="QString">QTDIR=/home/ari/qtsdk-2010.01/qt</value>
+    <value type="QString">SESSION_MANAGER=local/ari-laptop:@/tmp/.ICE-unix/1821,unix/ari-laptop:/tmp/.ICE-unix/1821</value>
+    <value type="QString">SHELL=/bin/bash</value>
+    <value type="QString">SPEECHD_PORT=7560</value>
+    <value type="QString">SSH_AGENT_PID=1861</value>
+    <value type="QString">SSH_AUTH_SOCK=/tmp/keyring-BLHq0M/socket.ssh</value>
+    <value type="QString">USER=ari</value>
+    <value type="QString">USERNAME=ari</value>
+    <value type="QString">XAUTHORITY=/var/run/gdm/auth-for-ari-Mn7H48/database</value>
+    <value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
+    <value type="QString">XDG_SESSION_COOKIE=fc73fd5cf79ae06c289c5f054b4644df-1264941400.773113-1887150617</value>
+   </valuelist>
+   <value key="abstractProcess.IgnoreReturnValue" type="bool">false</value>
+   <valuelist key="abstractProcess.arguments" type="QVariantList">
+    <value type="QString">-w</value>
+   </valuelist>
+   <value key="abstractProcess.command" type="QString">/usr/bin/make</value>
+   <value key="abstractProcess.enabled" type="bool">true</value>
+   <value key="abstractProcess.workingDirectory" type="QString">/scratchbox/users/ari/home/ari/Qt_codes/hikingdiary</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Debug-cleanstep0</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Debug</value>
+   <valuelist key="abstractProcess.Environment" type="QVariantList">
+    <value type="QString">DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-CYJOVZ5wpg,guid=b84f8d17066bf3a7327c2d744b657958</value>
+    <value type="QString">DESKTOP_SESSION=gnome</value>
+    <value type="QString">DISPLAY=:0.0</value>
+    <value type="QString">GDMSESSION=gnome</value>
+    <value type="QString">GDM_KEYBOARD_LAYOUT=fi</value>
+    <value type="QString">GDM_LANG=en_US.UTF-8</value>
+    <value type="QString">GNOME_DESKTOP_SESSION_ID=this-is-deprecated</value>
+    <value type="QString">GNOME_KEYRING_SOCKET=/tmp/keyring-BLHq0M/socket</value>
+    <value type="QString">GTK_MODULES=canberra-gtk-module</value>
+    <value type="QString">GTK_RC_FILES=/etc/gtk/gtkrc:/home/ari/.gtkrc-1.2-gnome2</value>
+    <value type="QString">HOME=/home/ari</value>
+    <value type="QString">LANG=en_US.UTF-8</value>
+    <value type="QString">LD_LIBRARY_PATH=/home/ari/qtsdk-2010.01/lib/qtcreator:</value>
+    <value type="QString">LIBGL_DRIVERS_PATH=/usr/lib32/dri:/usr/lib64/dri</value>
+    <value type="QString">LOGNAME=ari</value>
+    <value type="QString">ORBIT_SOCKETDIR=/tmp/orbit-ari</value>
+    <value type="QString">PATH=/home/ari/qtsdk-2010.01/qt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games</value>
+    <value type="QString">PWD=/home/ari</value>
+    <value type="QString">QTDIR=/home/ari/qtsdk-2010.01/qt</value>
+    <value type="QString">SESSION_MANAGER=local/ari-laptop:@/tmp/.ICE-unix/1821,unix/ari-laptop:/tmp/.ICE-unix/1821</value>
+    <value type="QString">SHELL=/bin/bash</value>
+    <value type="QString">SPEECHD_PORT=7560</value>
+    <value type="QString">SSH_AGENT_PID=1861</value>
+    <value type="QString">SSH_AUTH_SOCK=/tmp/keyring-BLHq0M/socket.ssh</value>
+    <value type="QString">USER=ari</value>
+    <value type="QString">USERNAME=ari</value>
+    <value type="QString">XAUTHORITY=/var/run/gdm/auth-for-ari-Mn7H48/database</value>
+    <value type="QString">XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/</value>
+    <value type="QString">XDG_SESSION_COOKIE=fc73fd5cf79ae06c289c5f054b4644df-1264941400.773113-1887150617</value>
+   </valuelist>
+   <value key="abstractProcess.IgnoreReturnValue" type="bool">true</value>
+   <valuelist key="abstractProcess.arguments" type="QVariantList">
+    <value type="QString">clean</value>
+    <value type="QString">-w</value>
+   </valuelist>
+   <value key="abstractProcess.command" type="QString">/usr/bin/make</value>
+   <value key="abstractProcess.enabled" type="bool">true</value>
+   <value key="abstractProcess.workingDirectory" type="QString">/scratchbox/users/ari/home/ari/Qt_codes/hikingdiary</value>
+   <value key="cleanConfig" type="bool">true</value>
+   <valuelist key="makeargs" type="QVariantList">
+    <value type="QString">clean</value>
+   </valuelist>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Release-buildstep0</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Release</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Release-buildstep1</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Release</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfiguration-Release-cleanstep0</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString">Release</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildconfigurations</variable>
+  <valuelist type="QVariantList">
+   <value type="QString">Debug</value>
+   <value type="QString">Release</value>
+  </valuelist>
+ </data>
+ <data>
+  <variable>buildstep0</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString"></value>
+   <value key="mkspec" type="QString"></value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildstep1</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString"></value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>buildsteps</variable>
+  <valuelist type="QVariantList">
+   <value type="QString">trolltech.qt4projectmanager.qmake</value>
+   <value type="QString">trolltech.qt4projectmanager.make</value>
+  </valuelist>
+ </data>
+ <data>
+  <variable>cleanstep0</variable>
+  <valuemap type="QVariantMap">
+   <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString"></value>
+   <value key="clean" type="bool">true</value>
+  </valuemap>
+ </data>
+ <data>
+  <variable>cleansteps</variable>
+  <valuelist type="QVariantList">
+   <value type="QString">trolltech.qt4projectmanager.make</value>
+  </valuelist>
+ </data>
+ <data>
+  <variable>defaultFileEncoding</variable>
+  <value type="QByteArray">System</value>
+ </data>
+ <data>
+  <variable>project</variable>
+  <valuemap type="QVariantMap"/>
+ </data>
+</qtcreator>
diff --git a/src/info.png b/src/info.png
new file mode 100755 (executable)
index 0000000..d72c632
Binary files /dev/null and b/src/info.png differ
diff --git a/src/maemo5location.cpp b/src/maemo5location.cpp
new file mode 100755 (executable)
index 0000000..155770a
--- /dev/null
@@ -0,0 +1,38 @@
+#include <QMessageBox>
+#ifdef Q_WS_MAEMO_5
+#include "maemo5locationprivate.h"
+#else
+#include "Maemo5Location_stub.h"
+#endif
+#include "maemo5location.h"
+
+/**
+  *Default constructor of this class.
+  *@param QObject pointer to parent object. By default the value is NULL.
+  */
+Maemo5Location::Maemo5Location(QObject* parent):QObject(parent)
+{
+   // QMessageBox::about(new QWidget(),"Connect to gps","");
+    ptr = new Maemo5LocationPrivate(this);
+    connect(ptr,SIGNAL(agnss()),this,SIGNAL(agnss()));
+    connect(ptr,SIGNAL(awcp()),this,SIGNAL(awcp()));
+    connect(ptr,SIGNAL(locationUpdated()),this,SIGNAL(locationUpdated()));
+    connect(ptr,SIGNAL(connected()),this,SIGNAL(connected()));
+    ptr->get_agnss();
+}
+
+/**
+  *Destructor of this class. Should be used to release all allocated resources.
+  */
+Maemo5Location::~Maemo5Location()
+{
+    delete ptr;
+}
+double Maemo5Location::getLatitude()
+{
+    return ptr->get_lat();
+}
+double Maemo5Location::getLongitude()
+{
+    return ptr->get_lon();
+}
diff --git a/src/maemo5location.h b/src/maemo5location.h
new file mode 100755 (executable)
index 0000000..d7363ac
--- /dev/null
@@ -0,0 +1,24 @@
+#ifndef MAEMO5LOCATION_H
+#define MAEMO5LOCATION_H
+
+#include <QObject>
+
+class Maemo5LocationPrivate;
+class Maemo5Location : public QObject
+{
+    Q_OBJECT
+    public:
+        Maemo5Location(QObject* parent = 0);
+        ~Maemo5Location();
+        double getLatitude();
+        double getLongitude();
+    signals:
+        void awcp();
+        void agnss();
+        void locationUpdated();
+        void connected();
+    private:
+        Maemo5LocationPrivate* ptr;
+};
+
+#endif // MAEMO5LOCATION_H
diff --git a/src/maemo5location.o b/src/maemo5location.o
new file mode 100644 (file)
index 0000000..a2c24f6
Binary files /dev/null and b/src/maemo5location.o differ
diff --git a/src/maemo5locationprivate.cpp b/src/maemo5locationprivate.cpp
new file mode 100755 (executable)
index 0000000..e9c3675
--- /dev/null
@@ -0,0 +1,98 @@
+#include "maemo5locationprivate.h"
+#include <QMessageBox>
+
+/**
+  *Default constructor of this class.
+  *@param Maemo5Location pointer to public interface.
+  */
+Maemo5LocationPrivate::Maemo5LocationPrivate(Maemo5Location* location):QObject(location)
+{
+    //Initialize variables
+    latitude = 0;
+    longitude = 0;
+    usegps = -1;
+    //Get gps control object
+    control = location_gpsd_control_get_default();
+    //create gps device
+    device = (LocationGPSDevice*) g_object_new(LOCATION_TYPE_GPS_DEVICE, NULL);
+    g_signal_connect(device, "changed", G_CALLBACK(gps_data_changed), this);
+    g_signal_connect(device, "connected", G_CALLBACK(gps_data_connected), this);
+}
+/**
+  *Destructor of this class. Should be used to release all allocated resources.
+  */
+Maemo5LocationPrivate::~Maemo5LocationPrivate()
+{
+}
+
+/**
+  *This function is used to start to poll with gprs
+  */
+void Maemo5LocationPrivate::get_acwp()
+{
+    g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_ACWP, NULL);
+    usegps = 0;
+    restart();
+}
+
+/**
+  *This function starts to poll via gps interface
+  */
+void Maemo5LocationPrivate::get_agnss()
+{
+    g_object_set(G_OBJECT(control), "preferred-method", LOCATION_METHOD_AGNSS, NULL);
+    usegps = 1;
+    restart();
+}
+
+/**
+  *Stop pollling
+  */
+void Maemo5LocationPrivate::stop()
+{
+    location_gpsd_control_stop(control);
+}
+
+/**
+  *Stop and restart polling
+  */
+void Maemo5LocationPrivate::restart()
+{
+    location_gpsd_control_stop(control);
+    location_gpsd_control_start(control);
+}
+
+void gps_data_connected(LocationGPSDevice *device, Maemo5LocationPrivate *gps)
+{
+    emit gps->connected();
+}
+/**
+  *Callback function to catch gps signals
+  */
+void gps_data_changed(LocationGPSDevice *device, Maemo5LocationPrivate *gps)
+{
+    //First check that LocationGpsDeviceFix can be found...this data structure contains the location info.
+    if(gps->device->fix)
+    {
+        //Check that there are fields
+        if(gps->device->fix->fields)
+        {
+            //Store values and emit signal
+            gps->latitude = gps->device->fix->latitude;
+            gps->longitude = gps->device->fix->longitude;
+            if(gps->usegps == 0)
+            {
+                emit gps->awcp();
+            }
+            else if(gps->usegps == 1)
+            {
+                emit gps->agnss();
+            }
+            else
+            {
+                emit gps->locationUpdated();
+            }
+        }
+    }
+
+}
diff --git a/src/maemo5locationprivate.h b/src/maemo5locationprivate.h
new file mode 100755 (executable)
index 0000000..5063cd1
--- /dev/null
@@ -0,0 +1,48 @@
+#ifndef MAEMO5LOCATIONPRIVATE_H
+#define MAEMO5LOCATIONPRIVATE_H
+
+//We have to declare these header file inside extern, since these modules are actually c modules not c++
+extern "C"
+{
+#include <location-gps-device.h>
+#include <location-gpsd-control.h>
+}
+
+#include <QObject>
+#include "maemo5location.h"
+
+class Maemo5LocationPrivate : public QObject
+{
+    Q_OBJECT
+    public:
+        Maemo5LocationPrivate(Maemo5Location* location);
+        ~Maemo5LocationPrivate();
+        void get_acwp();
+        void get_agnss();
+        friend void gps_data_changed(LocationGPSDevice *device, Maemo5LocationPrivate *gps);
+        friend void gps_data_connected(LocationGPSDevice *device, Maemo5LocationPrivate *gps);
+        double get_lat() { return latitude; }
+        double get_lon() { return longitude; }
+    signals:
+        void awcp();
+        void agnss();
+        void locationUpdated();
+        void connected();
+    private:
+        void stop();
+        void restart();
+    //private data
+    private:
+        double latitude;
+        double longitude;
+
+        Maemo5Location* d_ptr;
+        GMainLoop *loop;
+        int usegps;
+        LocationGPSDControl *control;
+        LocationGPSDevice *device;
+};
+
+void gps_data_changed(LocationGPSDevice *device, Maemo5LocationPrivate *gps);
+void gps_data_connected(LocationGPSDevice *device, Maemo5LocationPrivate *gps);
+#endif // MAEMO5LOCATIONPRIVATE_H
diff --git a/src/maemo5locationprivate.o b/src/maemo5locationprivate.o
new file mode 100644 (file)
index 0000000..b7ff794
Binary files /dev/null and b/src/maemo5locationprivate.o differ
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100755 (executable)
index 0000000..28a6072
--- /dev/null
@@ -0,0 +1,20 @@
+#include <QtGui/QApplication>
+#include <QTranslator>
+#include <QLocale>
+#include "mainwindow.h"
+
+int main(int argc, char *argv[])
+{
+    QApplication a(argc, argv);
+
+    QTranslator translator;
+    //Qlocale::system().name() call returns the country code e.g. fi
+    //translator.load("tr_fi.qm");
+    translator.load("tr_" + QLocale::system().name());
+    a.installTranslator(&translator);
+
+    MainWindow w;
+    w.setWindowTitle(QObject::tr("Hiking Diary"));
+    w.show();
+    return a.exec();
+}
diff --git a/src/main.o b/src/main.o
new file mode 100644 (file)
index 0000000..0b40aa2
Binary files /dev/null and b/src/main.o differ
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
new file mode 100755 (executable)
index 0000000..bb6369a
--- /dev/null
@@ -0,0 +1,326 @@
+/**
+* @mainwindow.cpp
+* Tähän tekstiä luokan/koodin yleisestä toiminnasta…
+* Copyright (c) Ari Iivari 2009
+* @version 1.0
+*/
+
+#include "mainwindow.h"
+//#include "location.cpp"
+
+//#include <Q3VBoxLayout>
+
+struct diaryContent{
+    QString eDateTime;
+    QString eHeader;
+    QString eText;
+    QString elat;
+    QString elon;
+};
+
+diaryContent diaryArray[100];
+
+/**
+* Constructor
+*
+* @param -
+* @return -
+*/
+MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent){
+
+    this->createActions();
+    this->createToolBars();
+    this->createMenus();
+    this->createTextLayout();
+    this->createCoordLayout();
+    this->createButtons();
+
+    //Päänäkymän layout
+    QVBoxLayout* mainLayout = new QVBoxLayout();
+
+    //Nest the layouts
+    mainLayout->addLayout(mainGridlayout);
+    mainLayout->addLayout(buttonLayout);
+
+    location = new Maemo5Location(this);
+    parser = new xmlParser();
+    manager = new diaryDataManager();
+    manager->printData();
+
+    this->setCentralWidget(new QWidget());
+    this->centralWidget()->setLayout(mainLayout);
+}
+
+/**
+* MainWindows destructor.
+*
+* @param -
+* @return -
+*/
+MainWindow::~MainWindow(){
+    if (xmlparser)
+        delete xmlparser;
+    if (manager)
+        delete manager;
+}
+
+/**
+* Function create header and content fields
+*
+* @param -
+* @return -
+*/
+void MainWindow::createTextLayout(){
+    mainGridlayout = new QGridLayout();
+    dtime = QDateTime::currentDateTime();
+    strDate = dtime.toString("dd.MM.yyyy hh:mm");
+
+    textLayout = new QVBoxLayout();
+    dateLabel = new QLabel(strDate,this);
+    //dateLabel->setText("Now: %s",strDate);
+    textLayout->addWidget(dateLabel);
+    headerText = new QLineEdit(this);
+    headerText->setMaxLength(50);
+    textLayout->addWidget(headerText);;
+    textContent = new QTextEdit(this);
+    textLayout->addWidget(textContent);
+
+    mainGridlayout->addLayout(textLayout,0,0);
+}
+
+/**
+* Function create layout for coordinate field
+*
+* @param -
+* @return -
+*/
+void MainWindow::createCoordLayout(){
+    latitudeString.setText("65");
+    longitudeString.setText("30");
+    coordGridLayout = new QGridLayout();
+    latCoordLabel = new QLabel("lat:",this);
+    lonCoordLabel = new QLabel("lon:",this);;
+    latCoordData = new QLineEdit(latitudeString.text());
+    latCoordData->setMaximumWidth(250);
+
+    lonCoordData = new QLineEdit(longitudeString.text());
+    lonCoordData->setMaximumWidth(250);
+
+    /*
+    accLabel = new QLabel("acc:",this);;
+    accData = new QLineEdit(QString::number(0));
+    accData->setMaximumWidth(250);
+    */
+
+    getCoordButton = new QPushButton(tr("Get location"),this);
+    getCoordButton->setMaximumWidth(220);
+
+    coordGridLayout->verticalSpacing();
+    coordGridLayout->addWidget(latCoordLabel,0,0,1,1,Qt::AlignRight);
+    coordGridLayout->addWidget(latCoordData,0,1,1,1,Qt::AlignLeft);
+    coordGridLayout->addWidget(lonCoordLabel,1,0,1,1,Qt::AlignRight);
+    coordGridLayout->addWidget(lonCoordData,1,1,1,1,Qt::AlignLeft);
+    //coordGridLayout->addWidget(accLabel,3,0,1,1,Qt::AlignRight);
+    //coordGridLayout->addWidget(accData,3,1,1,1,Qt::AlignLeft);
+    coordGridLayout->addWidget(getCoordButton,4,0,20,0,Qt::AlignTop);
+
+    connect(getCoordButton,SIGNAL(clicked()),this,SLOT(getCoordinates()));
+
+    mainGridlayout->addLayout(coordGridLayout,0,1);
+}
+
+/**
+* Function create buttons
+*
+* @param -
+* @return -
+*/
+void MainWindow::createButtons(){
+    buttonLayout = new QHBoxLayout();
+    QString strText[MAX_BUTTONS] = {tr("Save"),
+                                    tr("Clear"),
+                                    tr("Exit")};
+
+    for(int i = 0; i < MAX_BUTTONS; i++){
+        buttons[i] = new QPushButton(strText[i],this);
+        buttonLayout->addWidget(buttons[i]);
+    }
+
+//    connect(buttons[OPEN],SIGNAL(clicked()),this,SLOT(openApplication()));
+    connect(buttons[CLEAR],SIGNAL(clicked()),this,SLOT(clearTextFields()));
+    connect(buttons[EXIT],SIGNAL(clicked()),this,SLOT(close()));
+    connect(buttons[SAVE],SIGNAL(clicked()),this,SLOT(saveData()));
+}
+
+/**
+* Function clear all text fields
+*
+* @param -
+* @return -
+*/
+void MainWindow::clearTextFields(){
+    headerText->setText("");
+    textContent->setText("");
+
+}
+
+/**
+* Function get coordinates from GPS
+*
+* @param -
+* @return -
+*/
+void MainWindow::getCoordinates(){
+    //connect(location, SIGNAL(agnss()), this, SLOT(getCoordinates()));
+    latitudeString.setText(QString::number(location->getLatitude()));
+    longitudeString.setText(QString::number(location->getLongitude()));
+    //latitudeString = "3434458";
+    //longitudeString = "7384738";
+    latCoordData->setText(latitudeString.text());
+    lonCoordData->setText(longitudeString.text());
+}
+
+
+/**
+* Function create actions
+*
+* @param -
+* @return -
+*/
+void MainWindow::createActions(){
+    exitAction = new QAction(tr("E&xit"),this);
+    aboutAction = new QAction(tr("&About"),this);
+    clearAction = new QAction(tr("&Clear"),this);
+    saveAction = new QAction(tr("&Save"),this);
+    /*
+    aboutIconAction = new QAction(QIcon("about.png"),tr("About"),this);
+    saveIconAction = new QAction(QIcon("save.png"),tr("Save"),this);
+    clearIconAction = new QAction(QIcon("Pensseli.png"),tr("Clear"),this);
+    exitIconAction = new QAction(QIcon("exit.png"),tr("Exit"),this);
+    */
+    connect(exitAction,SIGNAL(triggered()),this,SLOT(close()));
+    connect(clearAction,SIGNAL(triggered()),this,SLOT(clearTextFields()));
+    connect(aboutAction,SIGNAL(triggered()),this,SLOT(showAbout()));
+    connect(saveAction,SIGNAL(triggered()),this,SLOT(saveData()));
+    /*
+    connect(aboutIconAction,SIGNAL(triggered()),this,SLOT(showAbout()));
+    connect(clearIconAction,SIGNAL(triggered()),this,SLOT(clearTextFields()));
+    connect(exitIconAction,SIGNAL(triggered()),this,SLOT(close()));
+    connect(saveIconAction,SIGNAL(triggered()),this,SLOT(saveData()));
+    */
+}
+
+/**
+* Function create menus
+*
+* @param -
+* @return -
+*/
+void MainWindow::createMenus(){
+    //fileMenu = this->menuBar()->addMenu(tr("&File"));
+    //aboutMenu = this->menuBar()->addMenu(tr("&Help"));
+    menuBar()->addAction(exitAction);
+    menuBar()->addAction(clearAction);
+    menuBar()->addAction(saveAction);
+    menuBar()->addAction(aboutAction);
+}
+
+/**
+* Function create toolbar
+*
+* @param -
+* @return -
+*/
+void MainWindow::createToolBars(){
+    /*
+    toolBar = this->addToolBar(tr("ToolBar"));
+    toolBar->addAction(saveIconAction);
+    toolBar->addAction(clearIconAction);
+    toolBar->addAction(aboutIconAction);
+    toolBar->addAction(exitIconAction);
+    */
+}
+
+/**
+* About message
+*
+* @param -
+* @return -
+*/
+void MainWindow::showAbout(){
+    QMessageBox::about(this,tr("About"),tr("Hiking Diary. <a href=www.redneck-wanderers.com>Redneck-Wanderers</a>"));
+}
+
+/**
+* Function saves data to the text file
+*
+* @param -
+* @return -
+*/
+bool MainWindow::saveData(){
+
+    //xmlparser->writeXmlData(headerText->text(),date, textContent->toPlainText(),latitudeString.text(),longitudeString.text());
+
+    //return true;
+
+    /*
+    QString diaryPath = "/home/user";
+    QDir dataDir(diaryPath);
+    dataDir.setPath(diaryPath);
+
+    if(!dataDir.exists(diaryPath)){
+        qDebug() << "The path is" << dataDir.path();
+        dataDir.mkpath("hikingdiary");
+    }
+
+    fileNameString = "/home/user/diaryContent.xml";
+
+    QFile file(fileNameString);
+
+    if(!file.open( QIODevice::ReadWrite | QIODevice::Append )){
+        QMessageBox::warning(this, tr("Hiking Diary"),
+                             tr("Cannot write file Error: %1.\n %2")
+                             .arg(file.fileName())
+                             .arg(file.errorString()));
+        return false;
+    }
+    QXmlStreamWriter stream( &file );
+    stream.setAutoFormatting(true);
+    stream.writeStartDocument();
+
+    stream.writeAttribute("version", "1.0");
+    stream.writeStartElement("header");
+    stream.writeAttribute("header", headerText->text());
+    stream.writeStartElement("date");
+    stream.writeAttribute("date", strDate);
+    stream.writeStartElement("position");
+    stream.writeAttribute("latitude", latCoordData->text());
+    stream.writeAttribute("longitude",lonCoordData->text());
+    //! [write element]
+
+    //stream.writeTextElement("title", "Qt Home");
+    stream.writeStartElement("content");
+    stream.writeTextElement("content", textContent->toPlainText());
+
+    stream.writeEndElement(); // content
+    stream.writeEndElement(); // position
+    stream.writeEndElement(); // date
+    stream.writeEndElement(); // header
+
+    //! [finish stream]
+    stream.writeEndDocument();
+
+    //! [finish stream]
+    //! [write output]
+    file.close();
+
+    */
+    statusBar()->showMessage(tr("File saved"), 2000);
+
+    clearTextFields();
+    return true;
+}
+
+bool MainWindow::writeXml(){
+    return true;
+}
diff --git a/src/mainwindow.h b/src/mainwindow.h
new file mode 100755 (executable)
index 0000000..6ec45d1
--- /dev/null
@@ -0,0 +1,114 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QtGui/QMainWindow>
+#include <QVBoxLayout>
+#include <QHBoxLayout>
+#include <QFormLayout>
+#include <QGridLayout>
+#include <QTextEdit>
+#include <QLineEdit>
+#include <QTextLine>
+#include <QPushButton>
+#include <QMenu>
+#include <QMenuBar>
+#include <QToolBar>
+#include <QAction>
+#include <QLabel>
+#include <QDateTime>
+#include <QString>
+#include <QMessageBox>
+#include <QtXml/QDomDocument>
+#include <QtXml/QDomNode>
+#include <QFile>
+#include <QTextStream>
+#include <QTreeView>
+#include <QXmlStreamWriter>
+#include <QtXml>
+#include <QtDebug>
+#include <QStatusBar>
+
+#include "maemo5location.h"
+#include "xmlparser.h"
+#include "diarydatamanager.h"
+
+#define MAX_FIELDS 2
+#define MAX_BUTTONS 3
+// #define CONTENT_DATA "/usr/share/doc/hikingdiary/diaryContent.xml"
+
+
+class MainWindow : public QMainWindow
+{
+    Q_OBJECT
+
+public:
+    MainWindow(QWidget *parent = 0);
+    ~MainWindow();
+private:
+    QGridLayout *mainGridlayout;
+    QLabel *dateLabel;
+    QDate date;
+    QDateTime dtime;
+    QString strDate;
+    QLineEdit latitudeString;
+    QLineEdit longitudeString;
+    QString fileNameString;
+    QLineEdit *headerText;
+    QTextEdit *textContent;
+    //QLineEdit* textFields[MAX_FIELDS];
+    QLabel *latCoordLabel;
+    QLabel *lonCoordLabel;
+    //QLabel *accLabel;
+    QLineEdit *latCoordData;
+    QLineEdit *lonCoordData;
+    //QLineEdit *accData;
+    QPushButton* buttons[MAX_BUTTONS];
+    QPushButton *getCoordButton;
+    QVBoxLayout* textLayout;
+    QHBoxLayout* coordVLayout;
+    QGridLayout *coordGridLayout;
+    QHBoxLayout* buttonLayout;
+    QMenu* fileMenu;
+    QMenu* aboutMenu;
+    QToolBar* toolBar;
+    QAction* exitAction;
+    QAction* aboutAction;
+    QAction* clearAction;
+    QAction* saveAction;
+    QAction* aboutIconAction;
+    QAction* saveIconAction;
+    QAction* clearIconAction;
+    QAction* exitIconAction;
+
+    QDomDocument *diaryDocs;
+    QFile file;
+    QTextStream out;
+
+    enum BUTTONS
+    {
+        SAVE,
+        CLEAR,
+        EXIT
+    };
+private:
+    void createTextLayout();
+    void createCoordLayout();
+    void createButtons();
+    void createMenus();
+    void createActions();
+    void createToolBars();
+
+    bool writeXml();
+
+private slots:
+    void clearTextFields();
+    void showAbout();
+    bool saveData();
+    void getCoordinates();
+private:
+    Maemo5Location* location;
+    diaryDataManager* manager;
+    xmlParser* xmlparser;
+};
+
+#endif // MAINWINDOW_H
diff --git a/src/mainwindow.o b/src/mainwindow.o
new file mode 100644 (file)
index 0000000..c3b8db8
Binary files /dev/null and b/src/mainwindow.o differ
diff --git a/src/moc_gps_data.cpp b/src/moc_gps_data.cpp
new file mode 100755 (executable)
index 0000000..5ddfe15
--- /dev/null
@@ -0,0 +1,63 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'gps_data.h'
+**
+** Created: Thu Jan 21 11:58:12 2010
+**      by: The Qt Meta Object Compiler version 61 (Qt 4.5.3)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "gps_data.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'gps_data.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 61
+#error "This file was generated using the moc from 4.5.3. 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_Gps_data[] = {
+
+ // content:
+       2,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       0,    0, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_Gps_data[] = {
+    "Gps_data\0"
+};
+
+const QMetaObject Gps_data::staticMetaObject = {
+    { &QObject::staticMetaObject, qt_meta_stringdata_Gps_data,
+      qt_meta_data_Gps_data, 0 }
+};
+
+const QMetaObject *Gps_data::metaObject() const
+{
+    return &staticMetaObject;
+}
+
+void *Gps_data::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_Gps_data))
+        return static_cast<void*>(const_cast< Gps_data*>(this));
+    return QObject::qt_metacast(_clname);
+}
+
+int Gps_data::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QObject::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    return _id;
+}
+QT_END_MOC_NAMESPACE
diff --git a/src/moc_gps_data.o b/src/moc_gps_data.o
new file mode 100755 (executable)
index 0000000..42ec924
Binary files /dev/null and b/src/moc_gps_data.o differ
diff --git a/src/moc_maemo5location.cpp b/src/moc_maemo5location.cpp
new file mode 100644 (file)
index 0000000..31c7ed3
--- /dev/null
@@ -0,0 +1,110 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'maemo5location.h'
+**
+** Created: Fri Jul 9 22:58:05 2010
+**      by: The Qt Meta Object Compiler version 62 (Qt 4.6.2)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "maemo5location.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'maemo5location.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 62
+#error "This file was generated using the moc from 4.6.2. 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_Maemo5Location[] = {
+
+ // content:
+       4,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       4,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       4,       // signalCount
+
+ // signals: signature, parameters, type, tag, flags
+      16,   15,   15,   15, 0x05,
+      23,   15,   15,   15, 0x05,
+      31,   15,   15,   15, 0x05,
+      49,   15,   15,   15, 0x05,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_Maemo5Location[] = {
+    "Maemo5Location\0\0awcp()\0agnss()\0"
+    "locationUpdated()\0connected()\0"
+};
+
+const QMetaObject Maemo5Location::staticMetaObject = {
+    { &QObject::staticMetaObject, qt_meta_stringdata_Maemo5Location,
+      qt_meta_data_Maemo5Location, 0 }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &Maemo5Location::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *Maemo5Location::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *Maemo5Location::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_Maemo5Location))
+        return static_cast<void*>(const_cast< Maemo5Location*>(this));
+    return QObject::qt_metacast(_clname);
+}
+
+int Maemo5Location::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QObject::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        switch (_id) {
+        case 0: awcp(); break;
+        case 1: agnss(); break;
+        case 2: locationUpdated(); break;
+        case 3: connected(); break;
+        default: ;
+        }
+        _id -= 4;
+    }
+    return _id;
+}
+
+// SIGNAL 0
+void Maemo5Location::awcp()
+{
+    QMetaObject::activate(this, &staticMetaObject, 0, 0);
+}
+
+// SIGNAL 1
+void Maemo5Location::agnss()
+{
+    QMetaObject::activate(this, &staticMetaObject, 1, 0);
+}
+
+// SIGNAL 2
+void Maemo5Location::locationUpdated()
+{
+    QMetaObject::activate(this, &staticMetaObject, 2, 0);
+}
+
+// SIGNAL 3
+void Maemo5Location::connected()
+{
+    QMetaObject::activate(this, &staticMetaObject, 3, 0);
+}
+QT_END_MOC_NAMESPACE
diff --git a/src/moc_maemo5location.o b/src/moc_maemo5location.o
new file mode 100644 (file)
index 0000000..1f9545c
Binary files /dev/null and b/src/moc_maemo5location.o differ
diff --git a/src/moc_maemo5locationprivate.cpp b/src/moc_maemo5locationprivate.cpp
new file mode 100644 (file)
index 0000000..4e102ac
--- /dev/null
@@ -0,0 +1,110 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'maemo5locationprivate.h'
+**
+** Created: Fri Jul 9 22:58:06 2010
+**      by: The Qt Meta Object Compiler version 62 (Qt 4.6.2)
+**
+** WARNING! All changes made in this file will be lost!
+*****************************************************************************/
+
+#include "maemo5locationprivate.h"
+#if !defined(Q_MOC_OUTPUT_REVISION)
+#error "The header file 'maemo5locationprivate.h' doesn't include <QObject>."
+#elif Q_MOC_OUTPUT_REVISION != 62
+#error "This file was generated using the moc from 4.6.2. 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_Maemo5LocationPrivate[] = {
+
+ // content:
+       4,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       4,   14, // methods
+       0,    0, // properties
+       0,    0, // enums/sets
+       0,    0, // constructors
+       0,       // flags
+       4,       // signalCount
+
+ // signals: signature, parameters, type, tag, flags
+      23,   22,   22,   22, 0x05,
+      30,   22,   22,   22, 0x05,
+      38,   22,   22,   22, 0x05,
+      56,   22,   22,   22, 0x05,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_Maemo5LocationPrivate[] = {
+    "Maemo5LocationPrivate\0\0awcp()\0agnss()\0"
+    "locationUpdated()\0connected()\0"
+};
+
+const QMetaObject Maemo5LocationPrivate::staticMetaObject = {
+    { &QObject::staticMetaObject, qt_meta_stringdata_Maemo5LocationPrivate,
+      qt_meta_data_Maemo5LocationPrivate, 0 }
+};
+
+#ifdef Q_NO_DATA_RELOCATION
+const QMetaObject &Maemo5LocationPrivate::getStaticMetaObject() { return staticMetaObject; }
+#endif //Q_NO_DATA_RELOCATION
+
+const QMetaObject *Maemo5LocationPrivate::metaObject() const
+{
+    return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
+}
+
+void *Maemo5LocationPrivate::qt_metacast(const char *_clname)
+{
+    if (!_clname) return 0;
+    if (!strcmp(_clname, qt_meta_stringdata_Maemo5LocationPrivate))
+        return static_cast<void*>(const_cast< Maemo5LocationPrivate*>(this));
+    return QObject::qt_metacast(_clname);
+}
+
+int Maemo5LocationPrivate::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
+{
+    _id = QObject::qt_metacall(_c, _id, _a);
+    if (_id < 0)
+        return _id;
+    if (_c == QMetaObject::InvokeMetaMethod) {
+        switch (_id) {
+        case 0: awcp(); break;
+        case 1: agnss(); break;
+        case 2: locationUpdated(); break;
+        case 3: connected(); break;
+        default: ;
+        }
+        _id -= 4;
+    }
+    return _id;
+}
+
+// SIGNAL 0
+void Maemo5LocationPrivate::awcp()
+{
+    QMetaObject::activate(this, &staticMetaObject, 0, 0);
+}
+
+// SIGNAL 1
+void Maemo5LocationPrivate::agnss()
+{
+    QMetaObject::activate(this, &staticMetaObject, 1, 0);
+}
+
+// SIGNAL 2
+void Maemo5LocationPrivate::locationUpdated()
+{
+    QMetaObject::activate(this, &staticMetaObject, 2, 0);
+}
+
+// SIGNAL 3
+void Maemo5LocationPrivate::connected()
+{
+    QMetaObject::activate(this, &staticMetaObject, 3, 0);
+}
+QT_END_MOC_NAMESPACE
diff --git a/src/moc_maemo5locationprivate.o b/src/moc_maemo5locationprivate.o
new file mode 100644 (file)
index 0000000..e070e3c
Binary files /dev/null and b/src/moc_maemo5locationprivate.o differ
diff --git a/src/moc_mainwindow.cpp b/src/moc_mainwindow.cpp
new file mode 100644 (file)
index 0000000..5e40302
--- /dev/null
@@ -0,0 +1,87 @@
+/****************************************************************************
+** Meta object code from reading C++ file 'mainwindow.h'
+**
+** Created: Fri Jul 9 22:58:04 2010
+**      by: The Qt Meta Object Compiler version 62 (Qt 4.6.2)
+**
+** 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.6.2. 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:
+       4,       // revision
+       0,       // classname
+       0,    0, // classinfo
+       4,   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, 0x08,
+      30,   11,   11,   11, 0x08,
+      47,   11,   42,   11, 0x08,
+      58,   11,   11,   11, 0x08,
+
+       0        // eod
+};
+
+static const char qt_meta_stringdata_MainWindow[] = {
+    "MainWindow\0\0clearTextFields()\0showAbout()\0"
+    "bool\0saveData()\0getCoordinates()\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: clearTextFields(); break;
+        case 1: showAbout(); break;
+        case 2: { bool _r = saveData();
+            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; }  break;
+        case 3: getCoordinates(); break;
+        default: ;
+        }
+        _id -= 4;
+    }
+    return _id;
+}
+QT_END_MOC_NAMESPACE
diff --git a/src/moc_mainwindow.o b/src/moc_mainwindow.o
new file mode 100644 (file)
index 0000000..6a8aa5c
Binary files /dev/null and b/src/moc_mainwindow.o differ
diff --git a/src/paintbrush.png b/src/paintbrush.png
new file mode 100755 (executable)
index 0000000..165fd78
Binary files /dev/null and b/src/paintbrush.png differ
diff --git a/src/save-icon.jpg b/src/save-icon.jpg
new file mode 100755 (executable)
index 0000000..0bf48a9
Binary files /dev/null and b/src/save-icon.jpg differ
diff --git a/src/save.png b/src/save.png
new file mode 100755 (executable)
index 0000000..d5d3176
Binary files /dev/null and b/src/save.png differ
diff --git a/src/src.pro b/src/src.pro
new file mode 100755 (executable)
index 0000000..6c65a40
--- /dev/null
@@ -0,0 +1,59 @@
+# -------------------------------------------------
+# Project created by QtCreator 2010-01-15T21:14:13
+# -------------------------------------------------
+TARGET = hikingdiary
+TEMPLATE = app
+QT += xml
+SOURCES += main.cpp \
+    mainwindow.cpp \
+    maemo5location.cpp \
+    maemo5locationprivate.cpp \
+    xmlparser.cpp \
+    diarydata.cpp \
+    diarydatamanager.cpp
+HEADERS += mainwindow.h \
+    maemo5location.h \
+    maemo5locationprivate.h \
+    xmlparser.h \
+    diarydata.h \
+    diarydatamanager.h
+OTHER_FILES += 
+LIBS += 
+CONFIG += link_pkgconfig
+INCLUDEPATH += /usr/include/location \
+    /usr/include/glib-2.0 \
+    /usr/lib/glib-2.0/include
+PKGCONFIG += glib-2.0 \
+    liblocation
+exists(/usr/lib/liblocation.so) { 
+    DEFINES += LIBLOCATION
+    message(liblocation found)
+}
+
+# -----------------------------------------------------------------
+# Debian packetizing additions
+# -----------------------------------------------------------------
+unix { 
+    # VARIABLES
+    isEmpty(PREFIX):PREFIX = /usr
+    BINDIR = $$PREFIX/bin
+    DATADIR = $$PREFIX/share
+    DEFINES += DATADIR=\\\"$$DATADIR\\\" \
+        PKGDATADIR=\\\"$$PKGDATADIR\\\"
+    
+    # MAKE INSTALL
+    desktop.path = $$DATADIR/applications/hildon
+    desktop.files += hikingdiary.desktop
+    INSTALLS += desktop
+    icon26.path = $$DATADIR/icons/hicolor/26x26/apps
+    icon26.files += ../res/icon/26x26/hikingdiary.png
+    INSTALLS += icon26
+    icon48.path = $$DATADIR/icons/hicolor/48x48/apps
+    icon48.files += ../res/icon/48x48/hikingdiary.png
+    INSTALLS += icon48
+    icon64.path = $$DATADIR/icons/hicolor/64x64/apps
+    icon64.files += ../res/icon/64x64/hikingdiary.png
+    INSTALLS += icon64
+    target.path = $$BINDIR
+    INSTALLS += target
+}
diff --git a/src/xmlparser.cpp b/src/xmlparser.cpp
new file mode 100755 (executable)
index 0000000..15fc0b7
--- /dev/null
@@ -0,0 +1,71 @@
+/**
+* xmlparser.cpp
+* Tähän tekstiä luokan/koodin yleisestä toiminnasta…
+* @version 1.0
+*/
+
+
+#include <QtDebug>
+#include <QObject>
+#include <QStringList>
+#include <QList>
+#include <QString>
+
+#include "xmlparser.h"
+
+xmlParser::xmlParser()
+{
+}
+
+bool xmlParser::writeXmlData(QString header, QDate date, QString content, QString latitude, QString longitude){
+    QString diaryPath = "/home/user";
+    QDir dataDir(diaryPath);
+    dataDir.setPath(diaryPath);
+
+    if(!dataDir.exists(diaryPath)){
+        qDebug() << "The path is" << dataDir.path();
+        dataDir.mkpath("hikingdiary");
+    }
+
+    QString fileNameString = "/home/user/diaryContent.xml";
+
+    QFile file(fileNameString);
+
+    if(!file.open( QIODevice::ReadWrite | QIODevice::Append )){
+        qDebug() << "Unable to save file";
+    }
+    QXmlStreamWriter stream( &file );
+    stream.setAutoFormatting(true);
+    stream.writeStartDocument();
+
+    stream.writeAttribute("version", "1.0");
+    stream.writeStartElement("header");
+    stream.writeAttribute("header", header);
+    stream.writeStartElement("date");
+    stream.writeAttribute("date", date.toString() );
+    stream.writeStartElement("position");
+    stream.writeAttribute("latitude", latitude);
+    stream.writeAttribute("longitude",longitude);
+    //! [write element]
+
+    //stream.writeTextElement("title", "Qt Home");
+    stream.writeStartElement("content");
+    stream.writeTextElement("content", content);
+
+    stream.writeEndElement(); // content
+    stream.writeEndElement(); // position
+    stream.writeEndElement(); // date
+    stream.writeEndElement(); // header
+
+    //! [finish stream]
+    stream.writeEndDocument();
+
+    //! [finish stream]
+    //! [write output]
+    file.close();
+
+    //statusBar()->showMessage(tr("File saved"), 2000);
+
+    //clearTextFields();
+    return true;
+}
diff --git a/src/xmlparser.h b/src/xmlparser.h
new file mode 100755 (executable)
index 0000000..78e3723
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef XMLPARSER_H
+#define XMLPARSER_H
+
+#include <QtCore/QCoreApplication>
+#include <QXmlStreamReader>
+#include <QXmlStreamWriter>
+#include <QObject>
+#include <QFile>
+#include <QMessageBox>
+#include <QDate>
+#include "mainwindow.h"
+
+class xmlParser
+{
+public:
+    /* Constructor of the class */
+    xmlParser();
+    /* Destructor of the class */
+    ~xmlParser();
+
+    /*This function creates client's messages in xml -format from the given inputs.
+      Note ! In order to send pure character strings without linebreaks nor xml -headers,
+      xml autoformatting must be disabled and xml file header insertion is omitted.
+      @param QString header
+      @param QString date
+      @param QString content
+      @param QString latitude
+      @param QString longitude
+      @return
+      */
+    bool writeXmlData(QString header, QDate date, QString content, QString latitude, QString longitude);
+};
+
+#endif // XMLPARSER_H
diff --git a/src/xmlparser.o b/src/xmlparser.o
new file mode 100644 (file)
index 0000000..2660a15
Binary files /dev/null and b/src/xmlparser.o differ