Files
cinema-ticket-management-sy…/core/repositories/repository_result.h
T

19 lines
525 B
C
Raw Normal View History

2026-07-12 14:34:52 +04:00
#ifndef REPOSITORY_RESULT_H
#define REPOSITORY_RESULT_H
#include <QString>
// Represents the result of an operation in a repository
struct RepositoryResult {
QString errorMessage; // Error message if the operation failed
bool success; // Indicates whether the operation was successful
// Creates a successful result
static RepositoryResult successResult();
// Creates a failed result with an error message
static RepositoryResult failureResult(const QString &error);
};
#endif // REPOSITORY_RESULT_H