From 16c55e4d3b7f640fc45bab9db53217297e985983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Tue, 29 Jul 2014 13:48:58 +0200 Subject: Improve login code snippet Many users get confused by an identity object being deleted before the authentication is finished, therefore the snippet should use heap allocation. Change-Id: I7fafe6073680a0c89454e7000fe959ad98bc8b0a Reviewed-by: Frederik Gladhorn --- src/enginio_client/enginioidentity.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/enginio_client/enginioidentity.cpp b/src/enginio_client/enginioidentity.cpp index 56b8b90..31f38e1 100644 --- a/src/enginio_client/enginioidentity.cpp +++ b/src/enginio_client/enginioidentity.cpp @@ -224,11 +224,11 @@ public: To authenticate an instance of EnginioClient called \a client such code may be used: \code - EnginioOAuth2Authentication identity; - identity.setUser(_user); - identity.setPassword(_user); + EnginioOAuth2Authentication *identity = new EnginioOAuth2Authentication(client); + identity->setUser(_user); + identity->setPassword(_password); - client.setIdentity(&identity); + client->setIdentity(identity); \endcode Setting the identity will trigger an asynchronous request, resulting in EnginioClient::authenticationState() -- cgit v1.2.3 From 4ee5a2f13a171eb06ea37c846523a935b0ce3ac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Thu, 14 Aug 2014 11:26:36 +0200 Subject: Add change log for Enginio 1.0.6 Change-Id: I25977953c626da6f81bb8eac575321ddaa84a3c3 Reviewed-by: Frederik Gladhorn --- dist/changes-1.0.6 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 dist/changes-1.0.6 diff --git a/dist/changes-1.0.6 b/dist/changes-1.0.6 new file mode 100644 index 0000000..97a8f05 --- /dev/null +++ b/dist/changes-1.0.6 @@ -0,0 +1,22 @@ +Enginio 1.0.6 is a bug-fix release. It maintains both forward and backward +compatibility(source and binary) with Enginio 1.0 series. + +For more details, refer to the online documentation included in this +distribution. The documentation is also available online: + + http://qt-project.org/doc/qt-5/ + +Some of the changes listed in this file include issue tracking numbers +corresponding to tasks in the Qt Bug Tracker: + + http://bugreports.qt-project.org/ + +Each of these identifiers can be entered in the bug tracker to obtain more +information about a particular change. + + +**************************************************************************** +* General * +**************************************************************************** + + - Fixed static build on Windows -- cgit v1.2.3