Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Looking for engin.io replacement -joining our effort initiative
Forum Update on Monday, May 27th 2025

Looking for engin.io replacement -joining our effort initiative

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
baasengin.iocloud servicespush notificatisocial login
55 Posts 9 Posters 26.0k Views
  • 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.
  • S SGaist
    23 Feb 2016, 22:51

    Hi,

    Don't start by dropping the PIMPL idiom from that module, especially if the goal is to get it integrated with the Qt distribution some day.

    For more details about private implementation you can look here

    C Offline
    C Offline
    Charby
    wrote on 24 Feb 2016, 07:44 last edited by Charby
    #41

    @SGaist Thanks for this information, I wasn't aware of this...
    Nevertheless, for now I would prefer YAGNI over PIMPL ;-)

    K 1 Reply Last reply 24 Feb 2016, 09:56
    0
    • C Charby
      24 Feb 2016, 07:44

      @SGaist Thanks for this information, I wasn't aware of this...
      Nevertheless, for now I would prefer YAGNI over PIMPL ;-)

      K Offline
      K Offline
      kshegunov
      Moderators
      wrote on 24 Feb 2016, 09:56 last edited by
      #42

      @gadlim

      The private classes are mainly for binary compatibility that Qt has to maintain for all the Qt5 line, it's much simpler without that burden.

      Actually, as far as I know, binary compatibility is guaranteed only between major versions, but not for the whole Qt 5 line. Meaning 5.X.Y are binary compatible across all .Y versions, but not between the .X versions. Or in other words, Qt 5.5.1 would be compatible with 5.5.2, 5.5.3 and so on, but 5.4 is not guaranteed to be binary compatible with 5.5.

      @Charby

      Nevertheless, for now I would prefer YAGNI of PIMPL ;-)

      I believe @SGaist's point is that you're in fact going to need it if you ever hope to have your module as part of Qt. :)
      Otherwise you'd be asking everyone that uses your library to do a full rebuild of their code on any change in the private implementation of your module (like adding a member of a class for internal purposes) ... and this ain't a good way to design a library ...

      Kind regards.

      Read and abide by the Qt Code of Conduct

      G 1 Reply Last reply 24 Feb 2016, 10:14
      1
      • K kshegunov
        24 Feb 2016, 09:56

        @gadlim

        The private classes are mainly for binary compatibility that Qt has to maintain for all the Qt5 line, it's much simpler without that burden.

        Actually, as far as I know, binary compatibility is guaranteed only between major versions, but not for the whole Qt 5 line. Meaning 5.X.Y are binary compatible across all .Y versions, but not between the .X versions. Or in other words, Qt 5.5.1 would be compatible with 5.5.2, 5.5.3 and so on, but 5.4 is not guaranteed to be binary compatible with 5.5.

        @Charby

        Nevertheless, for now I would prefer YAGNI of PIMPL ;-)

        I believe @SGaist's point is that you're in fact going to need it if you ever hope to have your module as part of Qt. :)
        Otherwise you'd be asking everyone that uses your library to do a full rebuild of their code on any change in the private implementation of your module (like adding a member of a class for internal purposes) ... and this ain't a good way to design a library ...

        Kind regards.

        G Offline
        G Offline
        gadlim
        wrote on 24 Feb 2016, 10:14 last edited by gadlim
        #43

        @kshegunov said:

        Actually, as far as I know, binary compatibility is guaranteed only between major versions, but not for the whole Qt 5 line. Meaning 5.X.Y are binary compatible across all .Y versions, but not between the .X versions. Or in other words, Qt 5.5.1 would be compatible with 5.5.2, 5.5.3 and so on, but 5.4 is not guaranteed to be binary compatible with 5.5.

        No, there's binary compatibility for .X (minor) versions too
        About the build dependencies, you're right, PIMPL is also better for that.
        But I'll side this @Charby on this, it's a bit YAGNI at that point. The important thing is to get that project off the ground, and the code he's submitted is rather clean and simple, so easier to contribute to and build upon that the official Qt Enginio SDK. If someone wants to contribute a PIMPLification, I think he won't object (?), but I wouldn't be fair to require him to do that himself, as it would eat some of his time that can be better spent adding features.

        K C 2 Replies Last reply 24 Feb 2016, 10:52
        0
        • G gadlim
          24 Feb 2016, 10:14

          @kshegunov said:

          Actually, as far as I know, binary compatibility is guaranteed only between major versions, but not for the whole Qt 5 line. Meaning 5.X.Y are binary compatible across all .Y versions, but not between the .X versions. Or in other words, Qt 5.5.1 would be compatible with 5.5.2, 5.5.3 and so on, but 5.4 is not guaranteed to be binary compatible with 5.5.

          No, there's binary compatibility for .X (minor) versions too
          About the build dependencies, you're right, PIMPL is also better for that.
          But I'll side this @Charby on this, it's a bit YAGNI at that point. The important thing is to get that project off the ground, and the code he's submitted is rather clean and simple, so easier to contribute to and build upon that the official Qt Enginio SDK. If someone wants to contribute a PIMPLification, I think he won't object (?), but I wouldn't be fair to require him to do that himself, as it would eat some of his time that can be better spent adding features.

          K Offline
          K Offline
          kshegunov
          Moderators
          wrote on 24 Feb 2016, 10:52 last edited by kshegunov
          #44

          @gadlim

          No, there's binary compatibility for .X (minor) versions too

          Right, either I have remembered wrongly, or the versioning system has changed somewhat from Qt 4. But in any case, using PIMPL is a good way to ensure all the aforementioned features.

          But I'll side this @Charby on this, it's a bit YAGNI at that point.

          I don't presume to tell you how to design or code your library, just throwing my 2 cents. ;)

          but I wouldn't be fair to require him to do that himself, as it would eat some of his time that can be better spent adding features.

          The only problem I see is that at a later point implementing PIMPL from existing code might be more involved, so I'd go with it from the start, but as I noted, it's up to the actual designer/programmer how to proceed. As a side note, the idiom doesn't actually require more work, only some care to separate the data from the interface. (If you wish you could take a peek at a library (wrap) I'm developing for OpenMPI, to have a baseline for what implementing PIMPL might involve).

          Kind regards.

          Read and abide by the Qt Code of Conduct

          C 1 Reply Last reply 24 Feb 2016, 11:50
          0
          • K kshegunov
            24 Feb 2016, 10:52

            @gadlim

            No, there's binary compatibility for .X (minor) versions too

            Right, either I have remembered wrongly, or the versioning system has changed somewhat from Qt 4. But in any case, using PIMPL is a good way to ensure all the aforementioned features.

            But I'll side this @Charby on this, it's a bit YAGNI at that point.

            I don't presume to tell you how to design or code your library, just throwing my 2 cents. ;)

            but I wouldn't be fair to require him to do that himself, as it would eat some of his time that can be better spent adding features.

            The only problem I see is that at a later point implementing PIMPL from existing code might be more involved, so I'd go with it from the start, but as I noted, it's up to the actual designer/programmer how to proceed. As a side note, the idiom doesn't actually require more work, only some care to separate the data from the interface. (If you wish you could take a peek at a library (wrap) I'm developing for OpenMPI, to have a baseline for what implementing PIMPL might involve).

            Kind regards.

            C Offline
            C Offline
            Charby
            wrote on 24 Feb 2016, 11:50 last edited by Charby
            #45

            @kshegunov Just to clarify slightly my words : when I mentioned my preference to YAGNI over PIMPL, I was not meaning that PIMPL implementation would not be needed : I have a better understanding of PIMPL now - thanks to you guys! - and I am convinced that I would definitely go for it.

            Actually, I meant that my plugin design is not mature enough at this stage, I have only implemented one backend service (Parse) and it is not even complete...so it is likely that when adding new features (or even worst, when I will integrate new backend services) , I would need to change the design, modifying declaration, visibility and so on...and at this stage, it would be much faster if I only modify one class i.o two.
            As far as I understood the PIMPL implementation, adding the private class when my plugin design would be mature enough should be a straightforward process. But if you think, I am missing something please tell me, so I could integrate PIMPL right away.

            Thanks for your feedback !

            1 Reply Last reply
            1
            • G gadlim
              24 Feb 2016, 10:14

              @kshegunov said:

              Actually, as far as I know, binary compatibility is guaranteed only between major versions, but not for the whole Qt 5 line. Meaning 5.X.Y are binary compatible across all .Y versions, but not between the .X versions. Or in other words, Qt 5.5.1 would be compatible with 5.5.2, 5.5.3 and so on, but 5.4 is not guaranteed to be binary compatible with 5.5.

              No, there's binary compatibility for .X (minor) versions too
              About the build dependencies, you're right, PIMPL is also better for that.
              But I'll side this @Charby on this, it's a bit YAGNI at that point. The important thing is to get that project off the ground, and the code he's submitted is rather clean and simple, so easier to contribute to and build upon that the official Qt Enginio SDK. If someone wants to contribute a PIMPLification, I think he won't object (?), but I wouldn't be fair to require him to do that himself, as it would eat some of his time that can be better spent adding features.

              C Offline
              C Offline
              Charby
              wrote on 24 Feb 2016, 11:53 last edited by
              #46

              @gadlim said:

              and the code he's submitted is rather clean and simple

              That's always nice to hear, thank you !!!

              1 Reply Last reply
              0
              • C Offline
                C Offline
                Charby
                wrote on 24 Feb 2016, 11:58 last edited by
                #47

                Another but related topic : I have seen on the wiki, that it is encouraged to request for Qt playground project creation even if the project is in early stage. I think, that's would be great in this case so we could have a common repository to collaborate on a great plugin to give Qt App backend services.

                Do you know how to proceed for creating playground projects ?
                So far, I only sent a request on the development mailing list but I don't know what are the next steps...

                K G 2 Replies Last reply 24 Feb 2016, 18:17
                0
                • C Charby
                  24 Feb 2016, 11:58

                  Another but related topic : I have seen on the wiki, that it is encouraged to request for Qt playground project creation even if the project is in early stage. I think, that's would be great in this case so we could have a common repository to collaborate on a great plugin to give Qt App backend services.

                  Do you know how to proceed for creating playground projects ?
                  So far, I only sent a request on the development mailing list but I don't know what are the next steps...

                  K Offline
                  K Offline
                  kshegunov
                  Moderators
                  wrote on 24 Feb 2016, 18:17 last edited by kshegunov
                  #48

                  @Charby
                  Hello,

                  As far as I understood the PIMPL implementation, adding the private class when my plugin design would be mature enough should be a straightforward process. But if you think, I am missing something please tell me, so I could integrate PIMPL right away.

                  Mostly it's very straightforward process, however there are few "tricks" that are usually closely associated with the PIMPL idiom. I've used two of them in my project (sourced in my previous post), i.e. private slots and private object constructor. The private slots can be substituted with lamda functions if you're willing to enforce C++11. The second one can be implemented at a later stage, but I personally would detest refactoring a full working piece of code only to ensure that the user won't be able to create an object of given class. These two help with the design - not exposing anything besides the barebone interface, but you could certainly skip them (in most cases), or at least defer the[ir] implementation. I hope this is helpful.

                  Kind regards.

                  Read and abide by the Qt Code of Conduct

                  1 Reply Last reply
                  0
                  • C Charby
                    24 Feb 2016, 11:58

                    Another but related topic : I have seen on the wiki, that it is encouraged to request for Qt playground project creation even if the project is in early stage. I think, that's would be great in this case so we could have a common repository to collaborate on a great plugin to give Qt App backend services.

                    Do you know how to proceed for creating playground projects ?
                    So far, I only sent a request on the development mailing list but I don't know what are the next steps...

                    G Offline
                    G Offline
                    gadlim
                    wrote on 26 Feb 2016, 11:43 last edited by
                    #49

                    @Charby said:

                    Do you know how to proceed for creating playground projects ?
                    So far, I only sent a request on the development mailing list but I don't know what are the next steps...

                    The wiki page says "wait for the approval of a maintainer on the mailing list", so the next step is to wait for a response, but as it's been a long time, a bump could help, maybe.

                    On an unrelated note, my pull request was merged into Parse Server today, so +1 to the Parse Server project. There's now a 100% features parity between the Engin.io REST API and the Parse Server API (at least for the subset I'm using, but Id say I'm using all the most common methods).

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      Charby
                      wrote on 3 Mar 2016, 23:22 last edited by
                      #50

                      Just a short post to give feedbacks...
                      Unfortunately I haven't had too much time to continue working on the BaaS plugin lately, here is the project status :

                      • Authentification : partly done (miss the social linking)
                      • Object (alias collection) management : done
                      • JSonModel : partly done (read-only only for now)
                      • Adaptative QML List view : done
                      • Files : work in progress, I should have it completed by tomorrow hopefully

                      As always, comments are welcome !

                      1 Reply Last reply
                      1
                      • G Offline
                        G Offline
                        gadlim
                        wrote on 4 Mar 2016, 18:22 last edited by
                        #51

                        That's great! I've coded a small Qt (C++) tool to do bulk operations on Engin.io, I'll try to port it to your code as soon as possible (I don't think its usefulness is limited to QML, in spite of the name).

                        1 Reply Last reply
                        1
                        • C Offline
                          C Offline
                          Charby
                          wrote on 5 Mar 2016, 01:34 last edited by
                          #52

                          Files support is done - Next step is to support social login.

                          1 Reply Last reply
                          0
                          • F Offline
                            F Offline
                            feldifux
                            wrote on 31 Oct 2016, 20:02 last edited by
                            #53

                            Hi @Charby,
                            I've just seen this post now. How did your integration go so far?

                            There is a Qt optimized cloud/BaaS alternative: you can look at V-Play Game Network: http://v-play.net/game-network/
                            Albeit its name, it is not only for games but also for apps.

                            See here for a list of useful components with their Qt API reference:

                            • http://v-play.net/doc/vplay-webstorage/ - use WebStorage as a cloud-based key/value store. Its data gets synced across devices & platforms.
                            • http://v-play.net/doc/vplay-vplaygamenetwork/ - GameNetwork supports social login from Facebook so data can be synced across devices & platforms with a single user.
                            • http://v-play.net/doc/vplay-vplaymultiplayer/ - The multiplayer components supports a chat, push notifications and a friend system. You can add a QML-stylable messenger to your app with this component.

                            You can also just use some parts of these components, and freely mix it for example with Firebase.

                            Cheers, Chris

                            Founder of Felgo SDK - http://felgo.com/qt

                            Felgo simplifies

                            • Mobile App Dev with Qt esp. iOS & Android
                            • Game Development with Qt

                            What others say

                            Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

                            C 1 Reply Last reply 2 Nov 2016, 14:21
                            2
                            • F feldifux
                              31 Oct 2016, 20:02

                              Hi @Charby,
                              I've just seen this post now. How did your integration go so far?

                              There is a Qt optimized cloud/BaaS alternative: you can look at V-Play Game Network: http://v-play.net/game-network/
                              Albeit its name, it is not only for games but also for apps.

                              See here for a list of useful components with their Qt API reference:

                              • http://v-play.net/doc/vplay-webstorage/ - use WebStorage as a cloud-based key/value store. Its data gets synced across devices & platforms.
                              • http://v-play.net/doc/vplay-vplaygamenetwork/ - GameNetwork supports social login from Facebook so data can be synced across devices & platforms with a single user.
                              • http://v-play.net/doc/vplay-vplaymultiplayer/ - The multiplayer components supports a chat, push notifications and a friend system. You can add a QML-stylable messenger to your app with this component.

                              You can also just use some parts of these components, and freely mix it for example with Firebase.

                              Cheers, Chris

                              C Offline
                              C Offline
                              Charby
                              wrote on 2 Nov 2016, 14:21 last edited by
                              #54

                              Hi @feldifux,
                              Actually I stopped working on this project for some time now. Currently the API is working fine with Parse server as datastorage. Support for social login and push notifications are missing.
                              V-Play Albeit sounds very nice !
                              I will definitely have a try the next time I would need social login or notifications support. Thanks

                              F 1 Reply Last reply 3 Nov 2016, 14:47
                              1
                              • C Charby
                                2 Nov 2016, 14:21

                                Hi @feldifux,
                                Actually I stopped working on this project for some time now. Currently the API is working fine with Parse server as datastorage. Support for social login and push notifications are missing.
                                V-Play Albeit sounds very nice !
                                I will definitely have a try the next time I would need social login or notifications support. Thanks

                                F Offline
                                F Offline
                                feldifux
                                wrote on 3 Nov 2016, 14:47 last edited by
                                #55

                                Sounds good @Charby , if you need any help, just contact us via our support forums. You can also ping me directly here on the Qt forum. :)

                                Founder of Felgo SDK - http://felgo.com/qt

                                Felgo simplifies

                                • Mobile App Dev with Qt esp. iOS & Android
                                • Game Development with Qt

                                What others say

                                Felgo scored #1 in Cross-Platform App Development Tools Report - see why: https://goo.gl/rgp3rq

                                1 Reply Last reply
                                1

                                • Login

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