summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-11-14 17:23:00 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-11-23 11:18:08 +0000
commit56a9594649872f4076b6891f917138d2b1e8d028 (patch)
tree2d14083e97fae7de29162e6002d6a7f2da08ffd3 /vcl/source
parent91cbbb7797f048834b51690e9fab60aa778b1e44 (diff)
Update-check, expand to allow reporting of H/W and OS versions.
Off by default. Expand config options to show the user agent used. Re-use this to show more useful info in Help->About too. Change-Id: I1044116ef9beeb341a537c0f4451dca54e198f67 Reviewed-on: https://gerrit.libreoffice.org/20098 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/app/svapp.cxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 7f490b603c87..e8cb62f865b5 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -51,6 +51,7 @@
#include "vcl/scheduler.hxx"
#include "vcl/unohelp.hxx"
#include "vcl/lazydelete.hxx"
+#include "vcl/opengl/OpenGLWrapper.hxx"
#include "salinst.hxx"
#include "salframe.hxx"
@@ -74,6 +75,7 @@
#include <cassert>
#include <utility>
+#include <thread>
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
@@ -1162,6 +1164,36 @@ OUString Application::GetAppName()
return OUString();
}
+OUString Application::GetHWOSConfInfo()
+{
+ ImplSVData* pSVData = ImplGetSVData();
+ OUStringBuffer aDetails;
+
+ aDetails.append( "Threads " );
+ aDetails.append( (sal_Int32)
+ std::thread::hardware_concurrency() );
+ aDetails.append( "; " );
+
+ OUString aVersion;
+ if ( pSVData && pSVData->mpDefInst )
+ aVersion = pSVData->mpDefInst->getOSVersion();
+ else
+ aVersion = "-";
+
+ aDetails.append( "Ver: " );
+ aDetails.append( aVersion );
+ aDetails.append( "; " );
+
+ aDetails.append( "Render: " );
+ if ( OpenGLWrapper::isVCLOpenGLEnabled() )
+ aDetails.append( "GL" );
+ else
+ aDetails.append( "default" );
+ aDetails.append( "; " );
+
+ return aDetails.makeStringAndClear();
+}
+
void Application::SetDisplayName( const OUString& rName )
{
ImplSVData* pSVData = ImplGetSVData();