PDA

View Full Version : Designing a new core application



bothapn
12th March 2006, 20:45
I hope this is the right forrum :o
I'm starting a new project for my honors degree, its a component based system whereby the system presents an api to the world and one can program according to that api.
This is a component system as everything except the system itself will be components which will be added and removed in runtime.. now for the questions:
Daemon will be QT4.

- The system is opensource, so I suppose QCoreApllication will be good enough to run the system as a daemon on both linux and windows(opensource eddition)?
- Any ideas what I can maybe search for when it comes to components.. how to design these things and an api?

Anyone knows about any good tutorials or docs on component systems/modules or something that is added to a system in runtime which lets the system communicate with something outside the system through the added component/module?

Any feedback appreciated :o

jacek
12th March 2006, 22:21
how to design these things and an api?
You didn't write what your system will do, so I can tell you only that you should design them well ;) If you want to create a real Unix daemon, you need a bit more than QCoreApplication.

http://doc.trolltech.com/4.1/qlibrary.html
http://doc.trolltech.com/4.1/qpluginloader.html
http://doc.trolltech.com/qq/qq13-apis.html

wysota
12th March 2006, 22:25
Hmm... Read Qt docs. And I don't mean "go find your answer in Qt docs", but read the docs to have a look at good API (You might also want to take a look at this (http://doc.trolltech.com/qq/qq13-apis.html)). As a side effect you'll find the "plug and paint" example in the docs too, which answers your question about pluggable modules.


BTW. I see Jacek was faster again :P

wysota
12th March 2006, 22:26
If you want to create a real Unix daemon, you need a bit more than QCoreApplication.

man 3 daemon ;)

jacek
12th March 2006, 22:34
man 3 daemon ;)
and man 3 signal

jrideout
12th March 2006, 23:48
The Trolls have some of the best api docs I've ever used. See http://doc.trolltech.com/qq/qq13-apis.html for some great advice.

bothapn
13th March 2006, 05:21
Thanx guys!

It will not be a true deamon as such, it will simple be a program that is started at bootup.

thanx for all the real help real fast :D

dimitri
19th March 2006, 11:34
Even if you don't have access to Qt Solutions, have at least a look at the documentation of QtService (http://www.trolltech.com/products/solutions/catalog/4/Utilities/qtservice/).