File indexing completed on 2024-06-16 04:46:58

0001 /*
0002     SPDX-FileCopyrightText: 2013-2015 Christian Dávid <christian-david@web.de>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 #ifndef BICVALIDATOR_H
0007 #define BICVALIDATOR_H
0008 
0009 #include <QValidator>
0010 #include "kmm_base_widgets_export.h"
0011 #include "kmymoneyvalidationfeedback.h"
0012 
0013 namespace eWidgets {
0014 namespace ValidationFeedback {
0015 enum class MessageType;
0016 }
0017 }
0018 
0019 class KMM_BASE_WIDGETS_EXPORT bicValidator : public QValidator
0020 {
0021     Q_OBJECT
0022 
0023 public:
0024     explicit bicValidator(QObject* parent = 0);
0025     QValidator::State validate(QString&, int&) const final override;
0026 
0027     static QPair<eWidgets::ValidationFeedback::MessageType, QString> validateWithMessage(const QString&);
0028 };
0029 
0030 #endif // BICVALIDATOR_H