7#ifndef FORMAT_DATE_TIME_H
8#define FORMAT_DATE_TIME_H
10#include "CoordUnitsDate.h"
11#include "CoordUnitsTime.h"
18typedef QHash<CoordUnitsDate, QString> FormatDate;
19typedef QHash<CoordUnitsTime, QString> FormatTime;
21typedef QHash<CoordUnitsDate, QStringList> FormatsDate;
22typedef QHash<CoordUnitsTime, QStringList> FormatsTime;
32 CoordUnitsTime coordUnitsTime,
37 QValidator::State
parseInput (CoordUnitsDate coordUnitsDate,
38 CoordUnitsTime coordUnitsTime,
39 const QString &stringUntrimmed,
44 bool ambiguityBetweenDateAndTime (CoordUnitsDate coordUnitsDate,
45 CoordUnitsTime coordUnitsTime,
46 const QString &
string)
const;
47 void dateTimeLookup (
const FormatsDate &formatsDate,
48 const FormatsTime &formatsTime,
49 CoordUnitsDate coordUnitsDate,
50 CoordUnitsTime coordUnitsTime,
51 const QString &
string,
52 bool useQDateTimeElseQRegExp,
55 void loadFormatsFormat();
56 void loadFormatsParseAcceptable();
57 void loadFormatsParseIncomplete();
60 FormatDate m_formatsDateFormat;
61 FormatTime m_formatsTimeFormat;
64 FormatsDate m_formatsDateParseAcceptable;
65 FormatsTime m_formatsTimeParseAcceptable;
70 FormatsDate m_formatsDateParseIncomplete;
71 FormatsTime m_formatsTimeParseIncomplete;