forked from qt-creator/qt-creator
Maemo: Add key deployment feature to options page.
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <QtCore/QSettings>
|
||||
#include <QtCore/QStringBuilder>
|
||||
#include <QtGui/QDesktopServices>
|
||||
|
||||
#include <algorithm>
|
||||
@@ -44,6 +45,18 @@
|
||||
namespace Qt4ProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
QString homeDirOnDevice(const QString &uname)
|
||||
{
|
||||
const QString &dir = uname == QLatin1String("root")
|
||||
? QLatin1String("/root")
|
||||
: uname == QLatin1String("developer")
|
||||
? QLatin1String("/var/local/mad-developer-home")
|
||||
: QLatin1String("/home/") + uname;
|
||||
qDebug("%s: user name %s is mapped to home dir %s",
|
||||
Q_FUNC_INFO, qPrintable(uname), qPrintable(dir));
|
||||
return dir;
|
||||
}
|
||||
|
||||
namespace {
|
||||
const QLatin1String SettingsGroup("MaemoDeviceConfigs");
|
||||
const QLatin1String IdCounterKey("IdCounter");
|
||||
|
||||
Reference in New Issue
Block a user