Reply
Thread Tools
Posts: 187 | Thanked: 121 times | Joined on Jun 2011 @ Subang Jaya, Selangor Darul Ehsan, Malaysia
#1
I am basically working on a daemon that toggles the 'allow background connections' option as detailed in http://harmattan-bugs.nokia.com/show_bug.cgi?id=55. As I am new to this whole Qt thingy, I am not sure how to do it the right way.

I have 2 files, namely control.py and classes.py ready and working, and is reading through Upstart documentation http://upstart.ubuntu.com/cookbook/ to create the configuration file. How do I put everything together everything in my Qt project?? http://harmattan-dev.nokia.com/docs/...g_daemons.html doesn't really make sense to me :P

Is there any other tutorial/example that I may have missed?

EDIT: script is here: http://cslai.coolsilon.com/2012/02/0...1-2-harmattan/

Last edited by Jeffrey04; 2012-02-08 at 09:51.
 
Posts: 187 | Thanked: 121 times | Joined on Jun 2011 @ Subang Jaya, Selangor Darul Ehsan, Malaysia
#2
Ok, managed to get everything generated, with .pro file as follows

Code:
TEMPLATE = lib

contains(MEEGO_EDITION,harmattan) {
    target.path = /opt/restricted-mode-toggler/bin
    target.files = *.py
    INSTALLS += target
}

OTHER_FILES += \
    qtc_packaging/debian_harmattan/rules \
    qtc_packaging/debian_harmattan/README \
    qtc_packaging/debian_harmattan/manifest.aegis \
    qtc_packaging/debian_harmattan/copyright \
    qtc_packaging/debian_harmattan/control \
    qtc_packaging/debian_harmattan/compat \
    qtc_packaging/debian_harmattan/changelog \
    control.py \
    classes.py

mydaemon.path = /etc/init/apps
mydaemon.files = restricted-mode-toggler.conf

INSTALLS += mydaemon
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:44.