Friday, December 17, 2010

Code updated after comment received from "mich", now code looks much better.
---------------------

Now that I have some free time and no work to do, I thought to play with QML and created simple demo that implement views and changes view on swipe event.

As of now I don't have latest QML installed, therefor I am not able to use GestureArea QML element to detect swipe gesture and decided to implement my own swipe detection code in QML.

In demo, view is quite simple just showing colored rectangle and string. My intention for demo was to create reusable view element and to change view from one to another.

My view code is as below, I am calling it as screen in code and named QML file as Screen.qml. Mainly screen element maintain states to hide and show view and animate the transition. In real world it might required lots of other property and function but my implementation have only few.

Friday, December 10, 2010

Recently I was working on Audiobook Reader application for maemo. For this application I have created one custom item delegate for QListView which contains two clickable item and generate signal accordingly.

For application I was using some different mechanism to create button inside custom item delegate, but now I found better way to create custom item delegate with QPushButton. So thought to share code.

Following is code for custom item delegate derived from QItemDelegate.

Update: I have uploaded following code to gitorous, Please visit this link if you want a working sample code.

Sunday, December 5, 2010

So after long time I found enough time to complete my Audiobook Reader application. This application was in extra-devel repository for long time but there were few problem with it, now finally I worked on those bugs and I am satisfied enough to share information about it.

Now days almost all novels are available in audio format and I am huge fan of those audio book. Previously I was using n900's music player to hear those audio books. But music player dose not preserve last playing position and this create problem when phone restart.

So I created this Audiobook Reader application.Key features are listed below.

You can add multiple audiobook.

It support both individual audio file which contain whole book, or can add folder which contain books audio file.

You can bookmark position in audiobook and can resume from same position.

It remember bookmark for all audiobook.This mean you can play multiple audiobook simultaneously.

Following are snaps from application.

Above snaps is of Book list view. This view list currently added books,

Add Audio button is used to add single audio file which contain whole book content.

Add Folder button is used to add folder, which contain multiple audio file for book. Note that you need to select folder which contain audio files, not the individual files.

Pokemon icon is used to start playing individual audio book.

Cross mark icon is used to remove this book from book list.

In above snaps are from Reading view.This view list currently played book's title, track name and artist's name.

> button is used to play book

|| button is used to pause book

x button is used to stop book, it will put reading position to beginning.

<)) button is used to increase/ decrease volume

Currently you can download this application to your n900 from extra-devel repository.