Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Enginio 1.0
Forum Updated to NodeBB v4.3 + New Features

Enginio 1.0

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
19 Posts 5 Posters 2.2k 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.
  • 1 Offline
    1 Offline
    123456789
    wrote on last edited by
    #1

    Error
    http://prntscr.com/jzhiji
    PageLeves.qml

    import QtQuick 2.1
    import Enginio 1.0
    import QtQuick.Controls 1.0
    import QtQuick.Layouts 1.0

    ColumnLayout {
    EnginioOAuth2Authentication {
    id: identity
    user: login.text
    password: password.text
    }
    anchors.fill: parent
    anchors.margins: 3
    spacing: 3

    TextField {
        id: login
        Layout.fillWidth: true
        placeholderText: "Username"
        enabled: enginioClient.authenticationState == Enginio.NotAuthenticated
    }
    
    TextField {
        id: password
        Layout.fillWidth: true
        placeholderText: "Password"
        echoMode: TextInput.PasswordEchoOnEdit
        enabled: enginioClient.authenticationState == Enginio.NotAuthenticated
    }
    
    Button {
        id: proccessButton
        Layout.fillWidth: true
    }
    
    TextArea {
        id: data
        text: "Not logged in.\n\n"
        readOnly: true
        Layout.fillHeight: true
        Layout.fillWidth: true
    
        Connections {
            target: enginioClient
            onSessionAuthenticated: {
                data.text = data.text + "User '"+ login.text +"' is logged in.\n\n" + JSON.stringify(reply.data, undefined, 2) + "\n\n"
            }
            onSessionAuthenticationError: {
                data.text = data.text + "Authentication of user '"+ login.text +"' failed.\n\n" + JSON.stringify(reply.data, undefined, 2) + "\n\n"
            }
            onSessionTerminated: {
                data.text = data.text + "Session closed.\n\n"
            }
        }
    }
    
    states: [
        State {
            name: "NotAuthenticated"
            when: enginioClient.authenticationState == Enginio.NotAuthenticated
            PropertyChanges {
                target: proccessButton
                text: "Login"
                onClicked: {
                    enginioClient.identity = identity
                }
            }
        },
        State {
            name: "Authenticating"
            when: enginioClient.authenticationState == Enginio.Authenticating
            PropertyChanges {
                target: proccessButton
                text: "Authenticating..."
                enabled: false
            }
        },
        State {
            name: "AuthenticationFailure"
            when: enginioClient.authenticationState == Enginio.AuthenticationFailure
            PropertyChanges {
                target: proccessButton
                text: "Authentication failed, restart"
                onClicked: {
                    enginioClient.identity = null
                }
            }
        },
        State {
            name: "Authenticated"
            when: enginioClient.authenticationState == Enginio.Authenticated
            PropertyChanges {
                target: proccessButton
                text: "Logout"
                onClicked: {
                    enginioClient.identity = null
                }
            }
        }
    ]
    

    }

    jsulmJ 1 Reply Last reply
    0
    • 1 123456789

      Error
      http://prntscr.com/jzhiji
      PageLeves.qml

      import QtQuick 2.1
      import Enginio 1.0
      import QtQuick.Controls 1.0
      import QtQuick.Layouts 1.0

      ColumnLayout {
      EnginioOAuth2Authentication {
      id: identity
      user: login.text
      password: password.text
      }
      anchors.fill: parent
      anchors.margins: 3
      spacing: 3

      TextField {
          id: login
          Layout.fillWidth: true
          placeholderText: "Username"
          enabled: enginioClient.authenticationState == Enginio.NotAuthenticated
      }
      
      TextField {
          id: password
          Layout.fillWidth: true
          placeholderText: "Password"
          echoMode: TextInput.PasswordEchoOnEdit
          enabled: enginioClient.authenticationState == Enginio.NotAuthenticated
      }
      
      Button {
          id: proccessButton
          Layout.fillWidth: true
      }
      
      TextArea {
          id: data
          text: "Not logged in.\n\n"
          readOnly: true
          Layout.fillHeight: true
          Layout.fillWidth: true
      
          Connections {
              target: enginioClient
              onSessionAuthenticated: {
                  data.text = data.text + "User '"+ login.text +"' is logged in.\n\n" + JSON.stringify(reply.data, undefined, 2) + "\n\n"
              }
              onSessionAuthenticationError: {
                  data.text = data.text + "Authentication of user '"+ login.text +"' failed.\n\n" + JSON.stringify(reply.data, undefined, 2) + "\n\n"
              }
              onSessionTerminated: {
                  data.text = data.text + "Session closed.\n\n"
              }
          }
      }
      
      states: [
          State {
              name: "NotAuthenticated"
              when: enginioClient.authenticationState == Enginio.NotAuthenticated
              PropertyChanges {
                  target: proccessButton
                  text: "Login"
                  onClicked: {
                      enginioClient.identity = identity
                  }
              }
          },
          State {
              name: "Authenticating"
              when: enginioClient.authenticationState == Enginio.Authenticating
              PropertyChanges {
                  target: proccessButton
                  text: "Authenticating..."
                  enabled: false
              }
          },
          State {
              name: "AuthenticationFailure"
              when: enginioClient.authenticationState == Enginio.AuthenticationFailure
              PropertyChanges {
                  target: proccessButton
                  text: "Authentication failed, restart"
                  onClicked: {
                      enginioClient.identity = null
                  }
              }
          },
          State {
              name: "Authenticated"
              when: enginioClient.authenticationState == Enginio.Authenticated
              PropertyChanges {
                  target: proccessButton
                  text: "Logout"
                  onClicked: {
                      enginioClient.identity = null
                  }
              }
          }
      ]
      

      }

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @123456789 I never used this Enginio, but it looks like you did not install it, right?
      Did you check http://doc.qt.io/archives/qt-5.5/enginio-getting-started.html ?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • 1 Offline
        1 Offline
        123456789
        wrote on last edited by
        #3

        not understand @jsulm

        K 1 Reply Last reply
        0
        • 1 123456789

          not understand @jsulm

          K Offline
          K Offline
          koahnig
          wrote on last edited by koahnig
          #4

          @123456789

          Also you might want to check out this before continuing.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          1
          • 1 Offline
            1 Offline
            123456789
            wrote on last edited by
            #5

            my server is not Cloud
            but Sqlite

            @koahnig

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              Which Qt version are you using? Are you sure you have enginio installed?

              (Z(:^

              1 Reply Last reply
              0
              • 1 Offline
                1 Offline
                123456789
                wrote on last edited by
                #7

                http://prntscr.com/jzinze

                http://prntscr.com/jzio79

                @sierdzio

                1 Reply Last reply
                0
                • sierdzioS Offline
                  sierdzioS Offline
                  sierdzio
                  Moderators
                  wrote on last edited by
                  #8

                  Enginio is not supported in Qt 5.10 anymore. It was deprecated in Qt 5.6.

                  (Z(:^

                  1 Reply Last reply
                  2
                  • 1 Offline
                    1 Offline
                    123456789
                    wrote on last edited by
                    #9

                    @sierdzio
                    which use?

                    1 Reply Last reply
                    0
                    • 1 Offline
                      1 Offline
                      123456789
                      wrote on last edited by
                      #10

                      ?


                      mrjjM 1 Reply Last reply
                      0
                      • 1 123456789

                        ?


                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by
                        #11

                        @123456789
                        Hi
                        That Qt service is dead as far as i know.
                        You can pick any other cloud service that offer the features you want.
                        There is nothing predefined from Qt.

                        1 Reply Last reply
                        2
                        • 1 Offline
                          1 Offline
                          123456789
                          wrote on last edited by
                          #12

                          not service in cloud
                          service is sqlite

                          mrjjM 1 Reply Last reply
                          0
                          • 1 123456789

                            not service in cloud
                            service is sqlite

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by mrjj
                            #13

                            @123456789
                            But Sqllite is a local database.
                            You need nothing like Enginio to use it.
                            Its simply just to create db and store data in it using SQL.
                            Small demo project
                            https://www.dropbox.com/s/uo43f7sbiwcjazv/mySqlite.zip?dl=0

                            1 Reply Last reply
                            2
                            • 1 Offline
                              1 Offline
                              123456789
                              wrote on last edited by
                              #14

                              i have creating in qml
                              is obrigation
                              @mrjj

                              mrjjM 1 Reply Last reply
                              0
                              • 1 123456789

                                i have creating in qml
                                is obrigation
                                @mrjj

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by mrjj
                                #15

                                @123456789
                                Ok
                                So you are looking for something like
                                http://doc.qt.io/qt-5/qtquick-localstorage-qmlmodule.html
                                ?

                                examples
                                http://doc.qt.io/qt-5/qtquick-localstorage-example.html

                                1 Reply Last reply
                                1
                                • 1 Offline
                                  1 Offline
                                  123456789
                                  wrote on last edited by
                                  #16

                                  yes
                                  but i use, exemple QT
                                  http://doc.qt.io/archives/qt-5.5/qtenginioqml-users-login-qml.html

                                  mrjjM 1 Reply Last reply
                                  0
                                  • 1 123456789

                                    yes
                                    but i use, exemple QT
                                    http://doc.qt.io/archives/qt-5.5/qtenginioqml-users-login-qml.html

                                    mrjjM Offline
                                    mrjjM Offline
                                    mrjj
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    @123456789
                                    Ok. but as far as i know Enginio is closed.
                                    http://blog.qt.io/blog/2016/01/26/notification-for-all-qt-cloud-services-users/
                                    so it cant possible work in 2018.

                                    1 Reply Last reply
                                    3
                                    • 1 Offline
                                      1 Offline
                                      123456789
                                      wrote on last edited by
                                      #18

                                      @mrjj
                                      but that's just information
                                      is not some kind of solution

                                      mrjjM 1 Reply Last reply
                                      0
                                      • 1 123456789

                                        @mrjj
                                        but that's just information
                                        is not some kind of solution

                                        mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #19

                                        @123456789
                                        Yes, you need to read the docs about storage for QML
                                        and then decided if that is what you need.
                                        Then adapt the code you have to use the
                                        LocalStorage QML classes.
                                        There is none effort, just run solution for this.
                                        The sample you are using in archived which means its not up to date.
                                        So depending what you task is, i think LocalStorage is right for you.

                                        1 Reply Last reply
                                        3

                                        • Login

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