Warning, file /frameworks/baloo/tests/file/storagedevicestest.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 This file is part of the KDE Baloo Project 0003 SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in> 0004 0005 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0006 */ 0007 0008 #include <QCoreApplication> 0009 #include <QDebug> 0010 0011 #include "storagedevices.h" 0012 0013 using namespace Baloo; 0014 0015 int main(int argc, char** argv) 0016 { 0017 QCoreApplication app(argc, argv); 0018 0019 StorageDevices sd; 0020 for (const auto& device : sd.allMedia()) { 0021 qDebug() << device.mountPath() << device.isUsable(); 0022 } 0023 0024 return 0; 0025 }