maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Need help in creating a Qt Creator daemon project (https://talk.maemo.org/showthread.php?t=82181)

Jeffrey04 2012-02-08 08:55

Need help in creating a Qt Creator daemon project
 
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/

Jeffrey04 2012-02-08 17:55

Re: Need help in creating a Qt Creator daemon project
 
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



All times are GMT. The time now is 10:39.

vBulletin® Version 3.8.8