Results 1 to 8 of 8

Thread: Designing a new core application

  1. #1
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile Designing a new core application

    I hope this is the right forrum
    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 975 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designing a new core application

    Quote Originally Posted by bothapn
    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

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Designing a new core application

    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). 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

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,364
    Thanks
    3
    Thanked 5,012 Times in 4,791 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Designing a new core application

    Quote Originally Posted by jacek
    If you want to create a real Unix daemon, you need a bit more than QCoreApplication.
    man 3 daemon

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 975 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designing a new core application

    Quote Originally Posted by wysota
    man 3 daemon
    and man 3 signal

  6. #6
    Join Date
    Feb 2006
    Location
    Boulder, Colorado, USA
    Posts
    63
    Thanked 8 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designing a new core application

    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.

  7. #7
    Join Date
    Mar 2006
    Posts
    14
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Designing a new core application

    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

  8. #8
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Designing a new core application

    Even if you don't have access to Qt Solutions, have at least a look at the documentation of QtService.

Similar Threads

  1. QSkinWindows Classes
    By kernel_panic in forum Qt-based Software
    Replies: 45
    Last Post: 20th April 2010, 12:35
  2. How to detect a running application
    By yogesh in forum Qt Programming
    Replies: 4
    Last Post: 20th February 2009, 10:22
  3. Qt Application + Web Integration -- Help needed
    By swamyonline in forum Qt Programming
    Replies: 0
    Last Post: 17th February 2009, 11:59
  4. dll + application
    By fpujol in forum Qt Programming
    Replies: 11
    Last Post: 15th April 2007, 18:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.