~ubuntu-branches/debian/stretch/rkward/stretch

« back to all changes in this revision

Viewing changes to rkward/rbackend/rksessionvars.cpp

  • Committer: Package Import Robot
  • Author(s): Thomas Friedrichsmeier
  • Date: 2014-10-16 13:30:00 UTC
  • mfrom: (1.1.22)
  • Revision ID: package-import@ubuntu.com-20141016133000-rhhrlwwgy2iwfu3e
Tags: 0.6.2~rc1-1
* new upstream release
* avoid duplicate cmake run during build
* upstream increased lowest supported R version to 2.8.0
* bump standards version to 3.9.4 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include "rksessionvars.h"
19
19
 
20
20
#include "rinterface.h"
 
21
#include "../settings/rksettingsmoduledebug.h"
 
22
#include "../settings/rksettingsmodulegeneral.h"
21
23
#include "../version.h"
22
24
 
 
25
#include <kdeversion.h>
 
26
#include <ktemporaryfile.h>
 
27
#include <kstandarddirs.h>
 
28
 
 
29
#include <QLibraryInfo>
 
30
#include <QSysInfo>
 
31
 
23
32
#include "../debug.h"
24
33
 
25
34
RKSessionVars* RKSessionVars::_instance = 0;
110
119
        return 0;
111
120
}
112
121
 
 
122
QStringList RKSessionVars::frontendSessionInfo () {
 
123
        QStringList lines;
 
124
        lines.append ("RKWard version: " RKWARD_VERSION);
 
125
        lines.append ("KDE version (runtime): " + QString (KDE::versionString ()));
 
126
        lines.append ("KDE version (compile time): " KDE_VERSION_STRING);
 
127
        lines.append ("Qt build key: " + QLibraryInfo::buildKey ());
 
128
#if defined Q_WS_WIN
 
129
        lines.append ("Windows runtime version (refer to QSysInfo documentation to translate code into human readable form): 0x" + QString::number (QSysInfo::windowsVersion (), 16));
 
130
#elif defined Q_WS_MAC
 
131
        lines.append ("MacOS runtime version (refer to QSysInfo documentation to translate code into human readable form): 0x" + QString::number (QSysInfo::MacintoshVersion, 16));
 
132
#endif
 
133
        lines.append ("Local KDE directory: " + KGlobal::dirs ()->localkdedir ());
 
134
        lines.append ("RKWard storage directory: " + RKSettingsModuleGeneral::filesPath ());
 
135
        lines.append ("Backend version (as known to the frontend): " + r_version_string);
 
136
        lines.append (QString());
 
137
        lines.append ("Debug message file (this may contain relevant diagnostic output in case of trouble):");
 
138
        lines.append (RKSettingsModuleDebug::debug_file->fileName ());
 
139
        return lines;
 
140
}
 
141
 
113
142
#include "rksessionvars.moc"