/*! * * Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file VRxProfiles.cpp * \author (last) Behrouz NematiPour * \date (last) 21-Nov-2023 * \author (original) Peter Lucia * \date (original) 22-Sep-2020 * */ #include "VRxProfiles.h" // Qt // Project #include "ApplicationController.h" #include "RxProfiles.h" #include "FileHandler.h" #include "MsgDefs.h" #include "TreatmentLog.h" using namespace Gui; using namespace View; using namespace Storage; VRxProfiles::VRxProfiles(QObject *parent) : QObject(parent) { connect (this, SIGNAL(didRxProfileList()), &_RxProfilesController, SLOT(doInitRxProfiles())); ACTION_METHOD_BRIDGE_CONNECTION(RxProfileList, _RxProfilesController, QFileInfoList) } void VRxProfiles::doInitRxProfilesList() { emit didRxProfileList(); } void VRxProfiles::onRxProfileList(const QFileInfoList &vRxProfiles) { qDebug() << "-meow-" << vRxProfiles; QStringList fileNames; for (const QFileInfo fileInfo:vRxProfiles){ fileNames << fileInfo.baseName().replace("_", " "); } rxProfilesList(fileNames); qDebug() << _rxProfilesList; }