/usr/include/Wt/WTimeValidator is in libwt-dev 3.3.4+dfsg-6ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | #ifndef WTIME_VALIDATOR_H_
#define WTIME_VALIDATOR_H_
#include "Wt/WRegExpValidator"
namespace Wt {
/*! \class WTimeValidator Wt/WTimeValidator Wt/WTimeValidator
* \brief A time validator
*
* \sa WTimeEdit
* \sa WTime
* \sa WTimePicker
*
*/
class WT_API WTimeValidator : public WRegExpValidator
{
public:
/*! \brief Creates a new WTimeValidator
*/
WTimeValidator(WObject *parent = 0);
/*! \brief Creates a new WTimeValidator
*/
WTimeValidator(const WT_USTRING &format, WObject *parent = 0);
/*! \brief sets the validator format
* \sa WTime::toString()
*/
void setFormat(const WT_USTRING &format);
/*! \brief Returns the Validator current format
*/
virtual WT_USTRING format() const { return format_; }
private:
WT_USTRING format_;
};
}
#endif // WTIME_VALIDATOR_H_
|