MCPcopy Create free account
hub / github.com/Martchus/syncthingtray / handleAndroidIntent

Method handleAndroidIntent

syncthingwidgets/quick/app.cpp:631–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

629}
630
631void App::handleAndroidIntent(const QString &data, bool fromNotification)
632{
633 qDebug() << "Handling Android intent: " << data;
634 Q_UNUSED(fromNotification)
635 if (data == QLatin1String("internalErrors")) {
636 emit internalErrorsRequested();
637 } else if (data == QLatin1String("connectionErrors")) {
638 emit connectionErrorsRequested();
639 } else if (data.startsWith(QLatin1String("sharedtext:"))) {
640 emit textShared(data.mid(11));
641 } else if (data.startsWith(QLatin1String("newdev:"))) {
642 emit newDeviceTriggered(data.mid(7));
643 } else if (data.startsWith(QLatin1String("newfolder:"))) {
644 const auto folderRef = splitFolderRef(QStringView(data).mid(10));
645 emit newDirTriggered(folderRef.deviceId.toString(), folderRef.folderId.toString(), folderRef.folderLabel.toString());
646 }
647}
648
649void App::handleStoragePermissionChanged(bool storagePermissionGranted)
650{

Callers

nothing calls this directly

Calls 2

splitFolderRefFunction · 0.85
toStringMethod · 0.80

Tested by

no test coverage detected