19 lines
525 B
C
19 lines
525 B
C
#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
|