#ifndef REPOSITORY_RESULT_H #define REPOSITORY_RESULT_H #include // 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