gov_mv_rt_vt.h 2.54 KB
Newer Older
1
/*
2
 * Copyright (C) 2014-2019 CZ.NIC
3 4 5 6 7 8 9 10
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 13 14
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 17 18 19 20 21 22 23 24 25
 *
 * In addition, as a special exception, the copyright holders give
 * permission to link the code of portions of this program with the
 * OpenSSL library under certain conditions as described in each
 * individual source file, and distribute linked combinations including
 * the two.
 */

#pragma once

Karel Slaný's avatar
Karel Slaný committed
26
#include <QCoreApplication> /* Q_DECLARE_TR_FUNCTIONS */
27

28
#include "src/datovka_shared/gov_services/service/gov_service_form_field.h"
Karel Slaný's avatar
Karel Slaný committed
29
#include "src/datovka_shared/gov_services/service/gov_service.h"
30

Karel Slaný's avatar
Karel Slaný committed
31
namespace Gov {
32 33

	/*!
34 35 36 37 38 39 40
	 * GOV MV service
	 * Name: Žádost o výpis z Rejstříku trestů
	 * DS: xhzkdqv - Automat CzP (Ministerstvo vnitra)
	 * XML: czpathome.xml - nutno doplnit Jméno, Příjmení, Datum narození
	 *                     (YYYY-MM-DD), Stát, Okres, Město.
	 * Source DS type: FO
	 */
Karel Slaný's avatar
Karel Slaný committed
41
	class SrvcMvRtVt : public Service {
42 43
		Q_DECLARE_TR_FUNCTIONS(SrvcMvRtVt)

Karel Slaný's avatar
Karel Slaný committed
44 45 46 47 48
	public:
		/*!
		 * @brief Constructor.
		 */
		SrvcMvRtVt(void);
49

50 51 52
		virtual
		Service *createNew(void) const Q_DECL_OVERRIDE;

Karel Slaný's avatar
Karel Slaný committed
53 54
		virtual
		const QString &internalId(void) const Q_DECL_OVERRIDE;
55

Karel Slaný's avatar
Karel Slaný committed
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
		virtual
		const QString &fullName(void) const Q_DECL_OVERRIDE;

		virtual
		const QString &instituteName(void) const Q_DECL_OVERRIDE;

		virtual
		const QString &boxId(void) const Q_DECL_OVERRIDE;

		virtual
		const QString &dmAnnotation(void) const Q_DECL_OVERRIDE;

		virtual
		const QString &dmSenderIdent(void) const Q_DECL_OVERRIDE;

		virtual
		const QString &dmFileDescr(void) const Q_DECL_OVERRIDE;

		virtual
		bool canSend(enum Isds::Type::DbType dbType) const Q_DECL_OVERRIDE;

		virtual
78
		bool setFieldVal(const QString &key, const QString &val) Q_DECL_OVERRIDE;
Karel Slaný's avatar
Karel Slaný committed
79

80 81 82
		virtual
		bool setOwnerInfoFields(const Isds::DbOwnerInfo &dbOwnerInfo) Q_DECL_OVERRIDE;

83 84 85
		virtual
		bool haveAllValidFields(QString *errDescr = Q_NULLPTR) Q_DECL_OVERRIDE;

Karel Slaný's avatar
Karel Slaný committed
86
		virtual
87
		QByteArray binaryXmlContent(void) const Q_DECL_OVERRIDE;
Karel Slaný's avatar
Karel Slaný committed
88 89 90
	};

}