gov_mv_zr_vp.h 2.46 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

	/*!
Karel Slaný's avatar
Karel Slaný committed
34 35 36 37 38
	 * GOV MV service
	 * Name: Výpis z živnostenského rejstříku
	 * DS: xhzkdqv - Automat CzP (Ministerstvo vnitra)
	 * XML: czpathome.xml - nutno zadat IČ do xml.
	 * Source DS type: FO, PFO, PO
39
	 */
Karel Slaný's avatar
Karel Slaný committed
40 41
	class SrvcMvZrVp : public Service {
		Q_DECLARE_TR_FUNCTIONS(SrvcMvZrVp)
42

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

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

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

		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
77
		bool setFieldVal(const QString &key, const QString &val) Q_DECL_OVERRIDE;
Karel Slaný's avatar
Karel Slaný committed
78

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

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

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

}