#ifndef PROJECTLOGIC_H #define PROJECTLOGIC_H #include "types.h" #include "filterparams.h" class ProjectLogic { public: ProjectLogic(); QList findDevicesByAllParameters( const QMap &projects, int entityId, int currentEntity, QString searchText, const FilterParams &filterParams, const QString &sortOrder ); private: QMap filterByEntity(const QMap &projects, int entityId, int currentEntity); QMap searchDevices(const QMap &projects, const QString &searchText); QMap applyFilters(const QMap &projects, const FilterParams &filterParams); QList sortDevices(QMap &devices, const QString &sortOrder); }; #endif // PROJECTLOGIC_H