Results 1 to 4 of 4

Thread: Auto update module

  1. #1
    Join Date
    Jan 2006
    Posts
    667
    Thanks
    10
    Thanked 80 Times in 74 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Auto update module

    Hi,

    The product that I am working on needs an auto updater.

    Case 1:

    A notification that a newer version of the software is available and if the user approves, it should start downloading the new version (probably in the background), and then install it automatically.

    Case 2:

    The software should silently download the newer version in the background and then install it after notification.

    I am not sure which version to make.

    I want to make an auto update library using Qt which can be used by any product that is developed using Qt.

    Now the problems:

    I have never written a library(.dll,.so or watever). I don't have any idea how it is written, in what cases it is written etc. I am complete newbie to this stuff.

    Can someone please help me out ? If someone can refer me some tutorial or some sample code, I would be greatful to them.

    Thanks a lot.

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

    Default Re: Auto update module

    If your library is to be linked at compile time, the only thing you need to do is to use a proper Qt target (TEMPLATE=lib CONFIG+=dll), define a set of functions/classes and use the import/export macro if on Windows (dllexport/dllimport -- search this forum or google for more info on that).

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

    Default Re: Auto update module

    Quote Originally Posted by munna
    I am not sure which version to make.
    IMO the best way is to leave it to the user. Let him choose how often your program should check for new versions (including "never" option) and add something like "automatically download new versions" check-box.

  4. #4
    Join Date
    Apr 2006
    Posts
    29
    Thanks
    1
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default Re: Auto update module

    I know such a library exist for Cocoa (I don't recall the name ...) Is anyone aware of a QT module, library or set of classes existing to do that ???

Similar Threads

  1. Module to process application parameters
    By Opilki_Inside in forum General Programming
    Replies: 4
    Last Post: 8th February 2007, 23:26
  2. Update a row
    By dragon in forum Newbie
    Replies: 9
    Last Post: 17th January 2006, 17:11

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.