RE: Noob question re Qt Application structure

2010-05-09 Thread Scifi Guy
Chitti Babu said: Hi Sudheer, Yes, I had a similar use-case and faced the same problem. I ensured that my daemon was properly osso-initialised to ensure that its triggered properly by gui-app via dbus-daemon successfully. But, in your use-case, you seem to use QT. I am not aware of the

RE: Noob question re Qt Application structure

2010-05-08 Thread Scifi Guy
Twas brillig at 10:05:38 07.05.2010 UTC-07 when scifi@hotmail.com did gyre and gimble: SG Could you please elaborate what you mean by upon first access? There is elaborate documentation. http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-starting-services --

Re: Noob question re Qt Application structure

2010-05-07 Thread Ram Kurvakat
just my 2 pence worth. you should perhaps try to make 2 different apps for it. 1 which runs as a daemon and invoked on startup using an upstart http://upstart.ubuntu.com/getting-started.html script. and the other a GUI based app , that can interact with your daemon, via files, sockets, any

Re: Noob question re Qt Application structure

2010-05-07 Thread ianaré sévi
I second that opinion. Subclassing by functionality is definitely good for a single app, but if you need to have the two parts running at different times a daemon app and a GUI app is the way to go. Another option you could use to interact with your two apps is through dbus itself, ince you will

RE: Noob question re Qt Application structure

2010-05-07 Thread Scifi Guy
: Re: Noob question re Qt Application structure From: ian...@gmail.com To: rkma...@gmx.com CC: scifi@hotmail.com; maemo-developers@maemo.org I second that opinion. Subclassing by functionality is definitely good for a single app, but if you need to have the two parts running at different

RE: Noob question re Qt Application structure

2010-05-07 Thread Ram Kurvakat
Message - From: Scifi Guy Sent: 05/07/10 04:24 PM To: ian...@gmail.com, rkma...@gmx.com Subject: RE: Noob question re Qt Application structure Hi Ram ianaré, Thank you for the response. Creating two apps makes sense. I was trying to avoid user having to install two apps for one feature

Re: Noob question re Qt Application structure

2010-05-07 Thread ianare
: Fri, 7 May 2010 10:54:15 -0400 Subject: Re: Noob question re Qt Application structure From: ian...@gmail.com To: rkma...@gmx.com CC: scifi@hotmail.com; maemo-developers@maemo.org I second that opinion. Subclassing by functionality is definitely good for a single app, but if you

Re: Noob question re Qt Application structure

2010-05-07 Thread Mikhail Gusarov
Twas brillig at 08:24:06 07.05.2010 UTC-07 when scifi@hotmail.com did gyre and gimble: SG I can exit the daemon by receiving a custom DBUS signal but how do SG I launch it? Register it as a D-Bus service and daemon will be started by D-Bus upon first access. --

RE: Noob question re Qt Application structure

2010-05-07 Thread Scifi Guy
From: dotted...@dottedmag.net To: scifi@hotmail.com CC: ian...@gmail.com; rkma...@gmx.com; maemo-developers@maemo.org Subject: Re: Noob question re Qt Application structure Date: Fri, 7 May 2010 23:26:50 +0700 Twas brillig at 08:24:06 07.05.2010 UTC-07 when scifi@hotmail.com

RE: Noob question re Qt Application structure

2010-05-07 Thread Scifi Guy
ianaré wrote: Right, one way is to have two separate deb packages, making the GUI depend on the daemon. This is expecially useful if you envision the daemon to be accessed by other apps or does not need the GUI in all cases. Another way is to package both apps (executables) in the same deb

Re: Noob question re Qt Application structure

2010-05-07 Thread Mikhail Gusarov
Twas brillig at 10:05:38 07.05.2010 UTC-07 when scifi@hotmail.com did gyre and gimble: SG Could you please elaborate what you mean by upon first access? There is elaborate documentation. http://dbus.freedesktop.org/doc/dbus-specification.html#message-bus-starting-services --

RE: Noob question re Qt Application structure

2010-05-07 Thread Scifi Guy
From: dotted...@dottedmag.net To: scifi@hotmail.com CC: ian...@gmail.com; rkma...@gmx.com; maemo-developers@maemo.org Subject: Re: Noob question re Qt Application structure Date: Sat, 8 May 2010 00:19:03 +0700 Twas brillig at 10:05:38 07.05.2010 UTC-07 when scifi@hotmail.com