SubmissionInfo.h header
#include <ew/core/SubmissionInfo.h>
Namespace ew::core
SubmissionInfo struct
struct ew::core::SubmissionInfo
The submission-pipeline details a task carries when it tracks a query/submission of a piece of writing to an agent, publisher, magazine or contest: who it went to (and what kind of recipient), when it was sent, and free-form notes (response, terms, fees). The response-due/deadline is the task's own due date and the pipeline stage (querying / submitted / accepted / rejected) is the task's board status, so this record only adds what those do not already capture. An empty record (no recipient, no submitted date, no notes) means the task is an ordinary to-do, not a submission.
Members
QString ew::core::SubmissionInfo::recipient
The agent / publisher / magazine / contest the work was sent to.
SubmissionRecipientKind ew::core::SubmissionInfo::kind =
What sort of recipient it is.
QDate ew::core::SubmissionInfo::submittedOn
When the work was submitted; an invalid (null) date means not yet sent.
QString ew::core::SubmissionInfo::notes
Free-form notes about the submission (response received, terms offered, reading fee, etc.).
bool ew::core::SubmissionInfo::isEmpty() const
Whether this record carries no submission data (so the owning task is an ordinary to-do).
bool operator==(const SubmissionInfo &, const SubmissionInfo &)=default
Value equality across all fields.
Enumerations
enum class SubmissionRecipientKind { Agent, Publisher, Magazine, Contest, Other }
Who a piece of writing was submitted to. New kinds are additive; serialized as a stable lowercase token.
Functions
std::optional< SubmissionRecipientKind > ew::core::submissionRecipientKindFromToken(QStringView token)
Parses a submission recipient kind from its serialization token; std::nullopt if unrecognized.
QString ew::core::toToken(SubmissionRecipientKind kind)
Returns the stable serialization token for kind (e.g. "agent").