Changeset View
Changeset View
Standalone View
Standalone View
plugins/perforce/perforceplugin.cpp
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Line(s) | 139 | { | |||
---|---|---|---|---|---|
140 | return i18n("Perforce"); | 140 | return i18n("Perforce"); | ||
141 | } | 141 | } | ||
142 | 142 | | |||
143 | KDevelop::VcsImportMetadataWidget* PerforcePlugin::createImportMetadataWidget(QWidget* /*parent*/) | 143 | KDevelop::VcsImportMetadataWidget* PerforcePlugin::createImportMetadataWidget(QWidget* /*parent*/) | ||
144 | { | 144 | { | ||
145 | return nullptr; | 145 | return nullptr; | ||
146 | } | 146 | } | ||
147 | 147 | | |||
148 | bool PerforcePlugin::isValidRemoteRepositoryUrl(const QUrl& remoteLocation) | ||||
149 | { | ||||
150 | Q_UNUSED(remoteLocation); | ||||
151 | // TODO | ||||
152 | return false; | ||||
153 | } | ||||
154 | | ||||
148 | bool PerforcePlugin::isValidDirectory(const QUrl & dirPath) | 155 | bool PerforcePlugin::isValidDirectory(const QUrl & dirPath) | ||
149 | { | 156 | { | ||
150 | const QFileInfo finfo(dirPath.toLocalFile()); | 157 | const QFileInfo finfo(dirPath.toLocalFile()); | ||
151 | QDir dir = finfo.isDir() ? QDir(dirPath.toLocalFile()) : finfo.absoluteDir(); | 158 | QDir dir = finfo.isDir() ? QDir(dirPath.toLocalFile()) : finfo.absoluteDir(); | ||
152 | 159 | | |||
153 | do { | 160 | do { | ||
154 | if (dir.exists(m_perforceConfigName)) { | 161 | if (dir.exists(m_perforceConfigName)) { | ||
155 | return true; | 162 | return true; | ||
▲ Show 20 Lines • Show All 537 Lines • Show Last 20 Lines |