Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Maintaining the list of downloads
Forum Updated to NodeBB v4.3 + New Features

Maintaining the list of downloads

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++qt 5.7xml
6 Posts 3 Posters 1.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mathan M
    wrote on last edited by
    #1

    Hi,

    I am using qt5.7.

    I want to maintain an list which is downloaded, Ex: list of maps. The details like title,size,createddate, modified date etc., At some frequency, I have to check the downloaded items compares the last modified date with server.
    Should I maintain the XML to store the map details or I should use QSettings?

    Thanks In advance

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You should add more context about these data you want to download. What are you trying to achieve ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        You should add more context about these data you want to download. What are you trying to achieve ?

        M Offline
        M Offline
        Mathan M
        wrote on last edited by
        #3

        Hi @SGaist ,

        Thanks for the reply.

        We have list of maps in our server, Basically the app will show the list of maps and allows to user to select the maps and download it in his mobile. At constant frequency say for once in 15 days, The app will connect with the server and check any updates available for the stored map in the mobile. If so, It will gives a message to user. So my plan is to maintain an list of maps in xml. Pls suggest if have any other way.

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          @Mathan-M If the list is not too complicated then you can use XML or perhaps a JSON format. Otherwise IMO a local database (SQLite) would be much easier to maintain. Most mobile OS's have built-in support for this.

          157

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            You could also consider JSON to store the data.

            But don't use QSettings for that, it's not its role.

            Shouldn't you rather have a version number in your list of maps and check that rather than starting to do content comparison ? That would make it easier to handle everywhere.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            M 1 Reply Last reply
            0
            • SGaistS SGaist

              You could also consider JSON to store the data.

              But don't use QSettings for that, it's not its role.

              Shouldn't you rather have a version number in your list of maps and check that rather than starting to do content comparison ? That would make it easier to handle everywhere.

              M Offline
              M Offline
              Mathan M
              wrote on last edited by
              #6

              Hi @SGaist ,

              Yes, I am maintaining the version in the xml file to compare the latest version maps are available.

              Thanks for the reply.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved