first commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
#ifndef TRAYSERVICE_H
|
||||
#define TRAYSERVICE_H
|
||||
|
||||
#include "../models/tray.h"
|
||||
|
||||
#include <QList>
|
||||
|
||||
class TrayService
|
||||
{
|
||||
public:
|
||||
static TrayService &instance();
|
||||
|
||||
QList<Tray> listTrays(QString *error = nullptr);
|
||||
QList<TraySlot> listSlots(int trayId, QString *error = nullptr);
|
||||
bool initializeTrayGrid(int trayId, QString *error = nullptr);
|
||||
bool initializeAllTrayGrids(QString *error = nullptr);
|
||||
bool ensureAllTrayGrids(QString *error = nullptr);
|
||||
bool findFirstEmptySlot(int trayId, TraySlot *slot, QString *error = nullptr);
|
||||
bool refreshTrayStats(int trayId, QString *error = nullptr);
|
||||
|
||||
private:
|
||||
TrayService() = default;
|
||||
TrayService(const TrayService &) = delete;
|
||||
TrayService &operator=(const TrayService &) = delete;
|
||||
};
|
||||
|
||||
#endif // TRAYSERVICE_H
|
||||
Reference in New Issue
Block a user