accounts: don't return reference to string created on the stack

Change-Id: I0216f9beb141230c483271de1ebec0c90f56e438
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
2 files changed
tree: 68856ffda156431b906b7386d7067d47a39a51e2
  1. .tx/
  2. docker/
  3. images/
  4. ringtones/
  5. translations/
  6. web/
  7. .gitignore
  8. .gitmodules
  9. .gitreview
  10. aboutdialog.cpp
  11. aboutdialog.h
  12. aboutdialog.ui
  13. accountdetails.ui
  14. accountitemdelegate.cpp
  15. accountitemdelegate.h
  16. accountlistmodel.cpp
  17. accountlistmodel.h
  18. advancedsettingswidget.cpp
  19. advancedsettingswidget.h
  20. advancedsettingswidget.ui
  21. animatedoverlay.ui
  22. animationhelpers.cpp
  23. animationhelpers.h
  24. avatargraphicsview.cpp
  25. avatargraphicsview.h
  26. bannedcontactswidget.cpp
  27. bannedcontactswidget.h
  28. bannedcontactswidget.ui
  29. bannedlistmodel.cpp
  30. bannedlistmodel.h
  31. build-client.bat
  32. callwidget.cpp
  33. callwidget.h
  34. callwidget.ui
  35. contactdialog.ui
  36. conversationitemdelegate.cpp
  37. conversationitemdelegate.h
  38. conversationsfilterwidget.cpp
  39. conversationsfilterwidget.h
  40. copy-runtime-files.ps1
  41. currentaccountcombobox.cpp
  42. currentaccountcombobox.h
  43. deleteaccountdialog.cpp
  44. deleteaccountdialog.h
  45. deleteaccountdialog.ui
  46. deviceeditwidget.ui
  47. fetch-deps.bat
  48. globalsystemtray.cpp
  49. globalsystemtray.h
  50. ico.rc
  51. idlabel.cpp
  52. idlabel.h
  53. invitebuttonswidget.cpp
  54. invitebuttonswidget.h
  55. invitebuttonswidget.ui
  56. License.rtf
  57. linkdevwidget.cpp
  58. linkdevwidget.h
  59. linkdevwidget.ui
  60. linkify.js
  61. lrcinstance.h
  62. main.cpp
  63. mainwindow.cpp
  64. mainwindow.h
  65. mainwindow.ui
  66. messagewebpage.cpp
  67. messagewebpage.h
  68. messagewebview.cpp
  69. messagewebview.h
  70. navwidget.cpp
  71. navwidget.h
  72. passworddialog.cpp
  73. passworddialog.h
  74. passworddialog.ui
  75. photoboothdialog.cpp
  76. photoboothdialog.h
  77. photoboothdialog.ui
  78. photoboothwidget.cpp
  79. photoboothwidget.h
  80. photoboothwidget.ui
  81. pixbufmanipulator.cpp
  82. pixbufmanipulator.h
  83. qrencode-win32.patch
  84. README.md
  85. regnamedialog.cpp
  86. regnamedialog.h
  87. regnamedialog.ui
  88. ressources.qrc
  89. ring-client-windows.sln
  90. ring-client-windows.vcxproj
  91. ring-client-windows.vcxproj.filters
  92. ring.nsi
  93. ringbutton.cpp
  94. ringbutton.h
  95. ringbutton.ui
  96. ringcontactlineedit.cpp
  97. ringcontactlineedit.h
  98. ringthemeutils.h
  99. RingWinClient.pro
  100. selectareadialog.cpp
  101. selectareadialog.h
  102. sendcontactrequestwidget.cpp
  103. setavatardialog.cpp
  104. setavatardialog.h
  105. setavatardialog.ui
  106. settingsitemwidget.cpp
  107. settingsitemwidget.h
  108. settingskey.h
  109. settingswidget.cpp
  110. settingswidget.h
  111. settingswidget.ui
  112. shmclient.cpp
  113. shmclient.h
  114. smartlistmodel.cpp
  115. smartlistmodel.h
  116. smartlistselectorbuttonnotifier.cpp
  117. smartlistselectorbuttonnotifier.h
  118. smartlistview.cpp
  119. smartlistview.h
  120. stylesheet.css
  121. touch_res.bat
  122. update-translations.py
  123. utils.cpp
  124. utils.h
  125. version.h
  126. videooverlay.cpp
  127. videooverlay.h
  128. videooverlay.ui
  129. videoview.cpp
  130. videoview.h
  131. videoview.ui
  132. videowidget.cpp
  133. videowidget.h
  134. webchathelpers.cpp
  135. webchathelpers.h
  136. windowscontactbackend.cpp
  137. windowscontactbackend.h
  138. winsparkle.patch
  139. wizarddialog.cpp
  140. wizarddialog.h
  141. wizarddialog.ui
  142. wizardwidget.cpp
  143. wizardwidget.h
  144. wizardwidget.ui
README.md

Windows client for Jani

For more information about the jami project, see the following:

Requirements

  • Jami client library and Jami daemon
  • Mingw-w64 build environment
  • Qt5 (we link against Qt5Core, Qt5Widgets, Qt5Gui) built with Mingw
  • Qt5 Svg, Qt5 ImageFormats & Qt5 WinExtras built with Mingw

Get the source code

  • git clone https://gerrit-ring.savoirfairelinux.com/ring-client-windows

Build instructions

USE THE QMAKE OF Qt BUILT WITH MINGW (e.g. /usr/bin/[i686 | x86_64]-w64-mingw32-qmake-qt5)

cd ring-client-windows
mkdir build && cd build
export QTDIR=<path to mingw qt> (e.g. /usr/[i686 | x86_64]-w64-mingw32/lib/qt)
git submodule init && git submodule update
cd libqrencode
./autogen.sh && ./configure --host=[i686 | x86_64]-w64-mingw32 --prefix=<Install dir of Jami and LRC>
make
make install
cd ..
qmake ../RingWinClient.pro -r -spec win32-g++ RING=<Install dir of Jami and LRC> [BUILD=Debug]
make
make install

You will find all files in ./release directory.

#Auto update

If you want to enable auto-update

  • Build winsparkle In the client directory after having initialized the submodule
    cd winsparkle
    mkdir build && cd build
    cmake -DCMAKE_TOOLCHAIN_FILE=<LRC Directory>/cmake/winBuild.cmake -DCMAKE_INSTALL_PREFIX=Install dir of Jami and LRC> ../cmake",
    make
    make install
    
  • Compile the client with ENABLE_AUTOUPDATE=True

Debugging

Compile the client with 'BUILD=Debug' and libRingClient with '-DCMAKE_BUILD_TYPE=Debug'

Packaging

cd build/release
makensis ring.nsi