ImagingTools Core SDK
CAddress.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ACF includes
6#include <imtauth/IAddress.h>
7
8
9namespace imtauth
10{
11
12
13class CAddress: virtual public IAddress
14{
15public:
16 static QByteArray GetTypeId();
17
18 CAddress();
19
20 // reimplemented (IAddress)
21 virtual QString GetCountry() const override;
22 virtual void SetCountry(const QString & country) override;
23 virtual QString GetCity() const override;
24 virtual void SetCity(const QString & city) override;
25 virtual int GetPostalCode() const override;
26 virtual void SetPostalCode(int postalCode) override;
27 virtual QString GetStreet() const override;
28 virtual void SetStreet(const QString& street) override;
29
30 // reimplemented (iser::IObject)
31 virtual QByteArray GetFactoryId() const override;
32
33 // reimplemented (iser::ISerializable)
34 virtual bool Serialize(iser::IArchive& archive) override;
35
36 // reimplemented (istd::IChangeable)
37 virtual int GetSupportedOperations() const override;
38 virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS) override;
39 virtual bool IsEqual(const IChangeable& object) const override;
40 virtual istd::IChangeableUniquePtr CloneMe(CompatibilityMode mode = CM_WITHOUT_REFS) const override;
41 virtual bool ResetData(CompatibilityMode mode = CM_WITHOUT_REFS) override;
42
43private:
44 QString m_country;
45 QString m_city;
46 int m_postalCode;
47 QString m_street;
48};
49
50
51} // namespace imtauth
52
53