Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mobile Datovka
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Datovka projects
mobile Datovka
Commits
5f1cff0a
Commit
5f1cff0a
authored
Oct 19, 2017
by
Martin Straka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added message envelope class
parent
cbff9eac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
821 additions
and
0 deletions
+821
-0
mobile-datovka.pro
mobile-datovka.pro
+2
-0
src/main.cpp
src/main.cpp
+2
-0
src/qml_interaction/message_envelope.cpp
src/qml_interaction/message_envelope.cpp
+542
-0
src/qml_interaction/message_envelope.h
src/qml_interaction/message_envelope.h
+275
-0
No files found.
mobile-datovka.pro
View file @
5f1cff0a
...
...
@@ -112,6 +112,7 @@ SOURCES += \
src/net/xml_layer.cpp \
src/qml_interaction/interaction_filesystem.cpp \
src/qml_interaction/interaction_zfo_file.cpp \
src/qml_interaction/message_envelope.cpp \
src/qml_interaction/message_info.cpp \
src/settings.cpp \
src/setwrapper.cpp \
...
...
@@ -169,6 +170,7 @@ HEADERS += \
src/net/xml_layer.h \
src/qml_interaction/interaction_filesystem.h \
src/qml_interaction/interaction_zfo_file.h \
src/qml_interaction/message_envelope.h \
src/qml_interaction/message_info.h \
src/settings.h \
src/setwrapper.h \
...
...
src/main.cpp
View file @
5f1cff0a
...
...
@@ -49,6 +49,7 @@
#endif
/* defined(Q_OS_ANDROID) */
#include "src/qml_interaction/interaction_filesystem.h"
#include "src/qml_interaction/interaction_zfo_file.h"
#include "src/qml_interaction/message_envelope.h"
#include "src/settings.h"
#include "src/setwrapper.h"
#include "src/sqlite/db_tables.h"
...
...
@@ -302,6 +303,7 @@ int main(int argc, char *argv[])
MessageListModel
::
declareQML
();
Messages
::
declareQML
();
MsgInfo
::
declareQML
();
MsgEnvelope
::
declareQML
();
InteractionZfoFile
interactionZfoFile
;
...
...
src/qml_interaction/message_envelope.cpp
0 → 100644
View file @
5f1cff0a
/*
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* 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.
*/
#include <QQmlEngine>
/* qmlRegisterType */
#include "src/qml_interaction/message_envelope.h"
void
MsgEnvelope
::
declareQML
(
void
)
{
qmlRegisterType
<
MsgEnvelope
>
(
"cz.nic.mobileDatovka.msgEnvelope"
,
1
,
0
,
"MsgEnvelope"
);
qRegisterMetaType
<
MsgEnvelope
>
();
}
MsgEnvelope
::
MsgEnvelope
(
QObject
*
parent
)
:
QObject
(
parent
),
m_dmID
(
0
),
m_dmAnnotation
(),
m_dbIDSender
(),
m_dmSender
(),
m_dmSenderAddress
(),
m_dmSenderType
(
0
),
m_dmSenderOrgUnit
(),
m_dmSenderOrgUnitNum
(),
m_dmSenderRefNumber
(),
m_dmSenderIdent
(),
m_dbIDRecipient
(),
m_dmRecipient
(),
m_dmRecipientAddress
(),
m_dmRecipientOrgUnit
(),
m_dmRecipientOrgUnitNum
(),
m_dmAmbiguousRecipient
(),
m_dmRecipientRefNumber
(),
m_dmRecipientIdent
(),
m_dmLegalTitleLaw
(),
m_dmLegalTitleYear
(),
m_dmLegalTitleSect
(),
m_dmLegalTitlePar
(),
m_dmLegalTitlePoint
(),
m_dmToHands
(),
m_dmPersonalDelivery
(
false
),
m_dmAllowSubstDelivery
(
false
),
m_dmQTimestamp
(),
m_dmDeliveryTime
(),
m_dmAcceptanceTime
(),
m_dmMessageStatus
(
0
),
m_dmAttachmentSize
(
0
),
m_dmType
(),
m_dmMessageType
(
0
),
m_dmDownloadDate
(),
m_dmCustomData
(),
m_dmAttachDownloaded
(
false
),
m_dmReadLocally
(
false
)
{
}
MsgEnvelope
::
MsgEnvelope
(
const
MsgEnvelope
&
data
)
:
QObject
(),
m_dmID
(
data
.
m_dmID
),
m_dmAnnotation
(
data
.
m_dmAnnotation
),
m_dbIDSender
(
data
.
m_dbIDSender
),
m_dmSender
(
data
.
m_dmSender
),
m_dmSenderAddress
(
data
.
m_dmSenderAddress
),
m_dmSenderType
(
data
.
m_dmSenderType
),
m_dmSenderOrgUnit
(
data
.
m_dmSenderOrgUnit
),
m_dmSenderOrgUnitNum
(
data
.
m_dmSenderOrgUnitNum
),
m_dmSenderRefNumber
(
data
.
m_dmSenderRefNumber
),
m_dmSenderIdent
(
data
.
m_dmSenderIdent
),
m_dbIDRecipient
(
data
.
m_dbIDRecipient
),
m_dmRecipient
(
data
.
m_dmRecipient
),
m_dmRecipientAddress
(
data
.
m_dmRecipientAddress
),
m_dmRecipientOrgUnit
(
data
.
m_dmRecipientOrgUnit
),
m_dmRecipientOrgUnitNum
(
data
.
m_dmRecipientOrgUnitNum
),
m_dmAmbiguousRecipient
(
data
.
m_dmAmbiguousRecipient
),
m_dmRecipientRefNumber
(
data
.
m_dmRecipientRefNumber
),
m_dmRecipientIdent
(
data
.
m_dmRecipientIdent
),
m_dmLegalTitleLaw
(
data
.
m_dmLegalTitleLaw
),
m_dmLegalTitleYear
(
data
.
m_dmLegalTitleYear
),
m_dmLegalTitleSect
(
data
.
m_dmLegalTitleSect
),
m_dmLegalTitlePar
(
data
.
m_dmLegalTitlePar
),
m_dmLegalTitlePoint
(
data
.
m_dmLegalTitlePoint
),
m_dmToHands
(
data
.
m_dmToHands
),
m_dmPersonalDelivery
(
data
.
m_dmPersonalDelivery
),
m_dmAllowSubstDelivery
(
data
.
m_dmAllowSubstDelivery
),
m_dmQTimestamp
(
data
.
m_dmQTimestamp
),
m_dmDeliveryTime
(
data
.
m_dmDeliveryTime
),
m_dmAcceptanceTime
(
data
.
m_dmAcceptanceTime
),
m_dmMessageStatus
(
data
.
m_dmMessageStatus
),
m_dmAttachmentSize
(
data
.
m_dmAttachmentSize
),
m_dmType
(
data
.
m_dmType
),
m_dmMessageType
(
data
.
m_dmMessageType
),
m_dmDownloadDate
(
data
.
m_dmDownloadDate
),
m_dmCustomData
(
data
.
m_dmCustomData
),
m_dmAttachDownloaded
(
data
.
m_dmAttachDownloaded
),
m_dmReadLocally
(
data
.
m_dmReadLocally
)
{
}
MsgEnvelope
::
MsgEnvelope
(
qint64
dmID
,
const
QString
&
dmAnnotation
,
const
QString
&
dbIDSender
,
const
QString
&
dmSender
,
const
QString
&
dmSenderAddress
,
int
dmSenderType
,
const
QString
&
dmSenderOrgUnit
,
const
QString
&
dmSenderOrgUnitNum
,
const
QString
&
dmSenderRefNumber
,
const
QString
&
dmSenderIdent
,
const
QString
&
dbIDRecipient
,
const
QString
&
dmRecipient
,
const
QString
&
dmRecipientAddress
,
const
QString
&
dmRecipientOrgUnit
,
const
QString
&
dmRecipientOrgUnitNum
,
const
QString
&
dmAmbiguousRecipient
,
const
QString
&
dmRecipientRefNumber
,
const
QString
&
dmRecipientIdent
,
const
QString
&
dmLegalTitleLaw
,
const
QString
&
dmLegalTitleYear
,
const
QString
&
dmLegalTitleSect
,
const
QString
&
dmLegalTitlePar
,
const
QString
&
dmLegalTitlePoint
,
const
QString
&
dmToHands
,
bool
dmPersonalDelivery
,
bool
dmAllowSubstDelivery
,
const
QString
&
dmQTimestamp
,
const
QString
&
dmDeliveryTime
,
const
QString
&
dmAcceptanceTime
,
int
dmMessageStatus
,
int
dmAttachmentSize
,
const
QString
&
dmType
,
int
_dmMessageType
,
const
QString
&
_dmDownloadDate
,
const
QString
&
_dmCustomData
,
bool
_dmAttachDownloaded
,
bool
_dmReadLocally
,
QObject
*
parent
)
:
QObject
(
parent
),
m_dmID
(
dmID
),
m_dmAnnotation
(
dmAnnotation
),
m_dbIDSender
(
dbIDSender
),
m_dmSender
(
dmSender
),
m_dmSenderAddress
(
dmSenderAddress
),
m_dmSenderType
(
dmSenderType
),
m_dmSenderOrgUnit
(
dmSenderOrgUnit
),
m_dmSenderOrgUnitNum
(
dmSenderOrgUnitNum
),
m_dmSenderRefNumber
(
dmSenderRefNumber
),
m_dmSenderIdent
(
dmSenderIdent
),
m_dbIDRecipient
(
dbIDRecipient
),
m_dmRecipient
(
dmRecipient
),
m_dmRecipientAddress
(
dmRecipientAddress
),
m_dmRecipientOrgUnit
(
dmRecipientOrgUnit
),
m_dmRecipientOrgUnitNum
(
dmRecipientOrgUnitNum
),
m_dmAmbiguousRecipient
(
dmAmbiguousRecipient
),
m_dmRecipientRefNumber
(
dmRecipientRefNumber
),
m_dmRecipientIdent
(
dmRecipientIdent
),
m_dmLegalTitleLaw
(
dmLegalTitleLaw
),
m_dmLegalTitleYear
(
dmLegalTitleYear
),
m_dmLegalTitleSect
(
dmLegalTitleSect
),
m_dmLegalTitlePar
(
dmLegalTitlePar
),
m_dmLegalTitlePoint
(
dmLegalTitlePoint
),
m_dmToHands
(
dmToHands
),
m_dmPersonalDelivery
(
dmPersonalDelivery
),
m_dmAllowSubstDelivery
(
dmAllowSubstDelivery
),
m_dmQTimestamp
(
dmQTimestamp
),
m_dmDeliveryTime
(
dmDeliveryTime
),
m_dmAcceptanceTime
(
dmAcceptanceTime
),
m_dmMessageStatus
(
dmMessageStatus
),
m_dmAttachmentSize
(
dmAttachmentSize
),
m_dmType
(
dmType
),
m_dmMessageType
(
_dmMessageType
),
m_dmDownloadDate
(
_dmDownloadDate
),
m_dmCustomData
(
_dmCustomData
),
m_dmAttachDownloaded
(
_dmAttachDownloaded
),
m_dmReadLocally
(
_dmReadLocally
)
{
}
qint64
MsgEnvelope
::
dmID
(
void
)
{
return
m_dmID
;
}
void
MsgEnvelope
::
setDmID
(
qint64
dmID
)
{
m_dmID
=
dmID
;
}
QString
MsgEnvelope
::
dmAnnotation
(
void
)
const
{
return
m_dmAnnotation
;
}
void
MsgEnvelope
::
setDmAnnotation
(
const
QString
&
dmAnnotation
)
{
m_dmAnnotation
=
dmAnnotation
;
}
QString
MsgEnvelope
::
dbIDSender
(
void
)
const
{
return
m_dbIDSender
;
}
void
MsgEnvelope
::
setDbIDSender
(
const
QString
&
dbIDSender
)
{
m_dbIDSender
=
dbIDSender
;
}
QString
MsgEnvelope
::
dmSender
(
void
)
const
{
return
m_dmSender
;
}
void
MsgEnvelope
::
setDmSender
(
const
QString
&
dmSender
)
{
m_dmSender
=
dmSender
;
}
QString
MsgEnvelope
::
dmSenderAddress
(
void
)
const
{
return
m_dmSenderAddress
;
}
void
MsgEnvelope
::
setDmSenderAddress
(
const
QString
&
dmSenderAddress
)
{
m_dmSenderAddress
=
dmSenderAddress
;
}
int
MsgEnvelope
::
dmSenderType
(
void
)
{
return
m_dmSenderType
;
}
void
MsgEnvelope
::
setDmSenderType
(
int
dmSenderType
)
{
m_dmSenderType
=
dmSenderType
;
}
QString
MsgEnvelope
::
dmSenderOrgUnit
(
void
)
const
{
return
m_dmSenderOrgUnit
;
}
void
MsgEnvelope
::
setDmSenderOrgUnit
(
const
QString
&
dmSenderOrgUnit
)
{
m_dmSenderOrgUnit
=
dmSenderOrgUnit
;
}
QString
MsgEnvelope
::
dmSenderOrgUnitNum
(
void
)
const
{
return
m_dmSenderOrgUnitNum
;
}
void
MsgEnvelope
::
setDmSenderOrgUnitNum
(
const
QString
&
dmSenderOrgUnitNum
)
{
m_dmSenderOrgUnitNum
=
dmSenderOrgUnitNum
;
}
QString
MsgEnvelope
::
dmSenderRefNumber
(
void
)
const
{
return
m_dmSenderRefNumber
;
}
void
MsgEnvelope
::
setDmSenderRefNumber
(
const
QString
&
dmSenderRefNumber
)
{
m_dmSenderRefNumber
=
dmSenderRefNumber
;
}
QString
MsgEnvelope
::
dmSenderIdent
(
void
)
const
{
return
m_dmSenderIdent
;
}
void
MsgEnvelope
::
setDmSenderIdent
(
const
QString
&
dmSenderIdent
)
{
m_dmSenderIdent
=
dmSenderIdent
;
}
QString
MsgEnvelope
::
dbIDRecipient
(
void
)
const
{
return
m_dbIDRecipient
;
}
void
MsgEnvelope
::
setDbIDRecipient
(
const
QString
&
dbIDRecipient
)
{
m_dbIDRecipient
=
dbIDRecipient
;
}
QString
MsgEnvelope
::
dmRecipient
(
void
)
const
{
return
m_dmRecipient
;
}
void
MsgEnvelope
::
setDmRecipient
(
const
QString
&
dmRecipient
)
{
m_dmRecipient
=
dmRecipient
;
}
QString
MsgEnvelope
::
dmRecipientAddress
(
void
)
const
{
return
m_dmRecipientAddress
;
}
void
MsgEnvelope
::
setDmRecipientAddress
(
const
QString
&
dmRecipientAddress
)
{
m_dmRecipientAddress
=
dmRecipientAddress
;
}
QString
MsgEnvelope
::
dmRecipientOrgUnit
(
void
)
const
{
return
m_dmRecipientOrgUnit
;
}
void
MsgEnvelope
::
setDmRecipientOrgUnit
(
const
QString
&
dmRecipientOrgUnit
)
{
m_dmRecipientOrgUnit
=
dmRecipientOrgUnit
;
}
QString
MsgEnvelope
::
dmRecipientOrgUnitNum
(
void
)
const
{
return
m_dmRecipientOrgUnitNum
;
}
void
MsgEnvelope
::
setDmRecipientOrgUnitNum
(
const
QString
&
dmRecipientOrgUnitNum
)
{
m_dmRecipientOrgUnitNum
=
dmRecipientOrgUnitNum
;
}
QString
MsgEnvelope
::
dmAmbiguousRecipient
(
void
)
const
{
return
m_dmAmbiguousRecipient
;
}
void
MsgEnvelope
::
setDmAmbiguousRecipient
(
const
QString
&
dmAmbiguousRecipient
)
{
m_dmAmbiguousRecipient
=
dmAmbiguousRecipient
;
}
QString
MsgEnvelope
::
dmRecipientRefNumber
(
void
)
const
{
return
m_dmRecipientRefNumber
;
}
void
MsgEnvelope
::
setDmRecipientRefNumber
(
const
QString
&
dmRecipientRefNumber
)
{
m_dmRecipientRefNumber
=
dmRecipientRefNumber
;
}
QString
MsgEnvelope
::
dmRecipientIdent
(
void
)
const
{
return
m_dmRecipientIdent
;
}
void
MsgEnvelope
::
setDmRecipientIdent
(
const
QString
&
dmRecipientIdent
)
{
m_dmRecipientIdent
=
dmRecipientIdent
;
}
QString
MsgEnvelope
::
dmLegalTitleLaw
(
void
)
const
{
return
m_dmLegalTitleLaw
;
}
void
MsgEnvelope
::
setDmLegalTitleLaw
(
const
QString
&
dmLegalTitleLaw
)
{
m_dmLegalTitleLaw
=
dmLegalTitleLaw
;
}
QString
MsgEnvelope
::
dmLegalTitleYear
(
void
)
const
{
return
m_dmLegalTitleYear
;
}
void
MsgEnvelope
::
setDmLegalTitleYear
(
const
QString
&
dmLegalTitleYear
)
{
m_dmLegalTitleYear
=
dmLegalTitleYear
;
}
QString
MsgEnvelope
::
dmLegalTitleSect
(
void
)
const
{
return
m_dmLegalTitleSect
;
}
void
MsgEnvelope
::
setDmLegalTitleSect
(
const
QString
&
dmLegalTitleSect
)
{
m_dmLegalTitleSect
=
dmLegalTitleSect
;
}
QString
MsgEnvelope
::
dmLegalTitlePar
(
void
)
const
{
return
m_dmLegalTitlePar
;
}
void
MsgEnvelope
::
setDmLegalTitlePar
(
const
QString
&
dmLegalTitlePar
)
{
m_dmLegalTitlePar
=
dmLegalTitlePar
;
}
QString
MsgEnvelope
::
dmLegalTitlePoint
(
void
)
const
{
return
m_dmLegalTitlePoint
;
}
void
MsgEnvelope
::
setDmLegalTitlePoint
(
const
QString
&
dmLegalTitlePoint
)
{
m_dmLegalTitlePoint
=
dmLegalTitlePoint
;
}
QString
MsgEnvelope
::
dmToHands
(
void
)
const
{
return
m_dmToHands
;
}
void
MsgEnvelope
::
setDmToHands
(
const
QString
&
dmToHands
)
{
m_dmToHands
=
dmToHands
;
}
bool
MsgEnvelope
::
dmPersonalDelivery
(
void
)
const
{
return
m_dmPersonalDelivery
;
}
void
MsgEnvelope
::
setDmPersonalDelivery
(
bool
dmPersonalDelivery
)
{
m_dmPersonalDelivery
=
dmPersonalDelivery
;
}
bool
MsgEnvelope
::
dmAllowSubstDelivery
(
void
)
const
{
return
m_dmAllowSubstDelivery
;
}
void
MsgEnvelope
::
setDmAllowSubstDelivery
(
bool
dmAllowSubstDelivery
)
{
m_dmAllowSubstDelivery
=
dmAllowSubstDelivery
;
}
QString
MsgEnvelope
::
dmQTimestamp
(
void
)
const
{
return
m_dmQTimestamp
;
}
void
MsgEnvelope
::
setDmQTimestamp
(
const
QString
&
dmQTimestamp
)
{
m_dmQTimestamp
=
dmQTimestamp
;
}
QString
MsgEnvelope
::
dmDeliveryTime
(
void
)
const
{
return
m_dmDeliveryTime
;
}
void
MsgEnvelope
::
setDmDeliveryTime
(
const
QString
&
dmDeliveryTime
)
{
m_dmDeliveryTime
=
dmDeliveryTime
;
}
QString
MsgEnvelope
::
dmAcceptanceTime
(
void
)
const
{
return
m_dmAcceptanceTime
;
}
void
MsgEnvelope
::
setDmAcceptanceTime
(
const
QString
&
dmAcceptanceTime
)
{
m_dmAcceptanceTime
=
dmAcceptanceTime
;
}
int
MsgEnvelope
::
dmMessageStatus
(
void
)
{
return
m_dmMessageStatus
;
}
void
MsgEnvelope
::
setDmMessageStatus
(
int
dmMessageStatus
)
{
m_dmMessageStatus
=
dmMessageStatus
;
}
int
MsgEnvelope
::
dmAttachmentSize
(
void
)
{
return
m_dmAttachmentSize
;
}
void
MsgEnvelope
::
setDmAttachmentSize
(
int
dmAttachmentSize
)
{
m_dmAttachmentSize
=
dmAttachmentSize
;
}
QString
MsgEnvelope
::
dmType
(
void
)
const
{
return
m_dmType
;
}
void
MsgEnvelope
::
setDmType
(
const
QString
&
dmType
)
{
m_dmType
=
dmType
;
}
int
MsgEnvelope
::
_dmMessageType
(
void
)
{
return
m_dmMessageType
;
}
void
MsgEnvelope
::
_setDmMessageType
(
int
_dmMessageType
)
{
m_dmMessageType
=
_dmMessageType
;
}
QString
MsgEnvelope
::
_dmDownloadDate
(
void
)
const
{
return
m_dmDownloadDate
;
}
void
MsgEnvelope
::
_setDmDownloadDate
(
const
QString
&
_dmDownloadDate
)
{
m_dmDownloadDate
=
_dmDownloadDate
;
}
QString
MsgEnvelope
::
_dmCustomData
(
void
)
const
{
return
m_dmCustomData
;
}
void
MsgEnvelope
::
_setDmCustomData
(
const
QString
&
_dmCustomData
)
{
m_dmCustomData
=
_dmCustomData
;
}
bool
MsgEnvelope
::
_dmAttachDownloaded
(
void
)
const
{
return
m_dmAttachDownloaded
;
}
void
MsgEnvelope
::
_setDmAttachDownloaded
(
bool
_dmAttachDownloaded
)
{
m_dmAttachDownloaded
=
_dmAttachDownloaded
;
}
bool
MsgEnvelope
::
_dmReadLocally
(
void
)
const
{
return
m_dmReadLocally
;
}
void
MsgEnvelope
::
_setDmReadLocally
(
bool
_dmReadLocally
)
{
m_dmReadLocally
=
_dmReadLocally
;
}
src/qml_interaction/message_envelope.h
0 → 100644
View file @
5f1cff0a
/*
* Copyright (C) 2014-2017 CZ.NIC
*
* 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
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* 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.
*/
#ifndef _MESSAGE_ENVELOPE_H_
#define _MESSAGE_ENVELOPE_H_
#include <QObject>
#include <QString>
/*!
* @brief Class holds message envelope data.
*/
class
MsgEnvelope
:
public
QObject
{
Q_OBJECT
Q_PROPERTY
(
qint64
dmID
READ
dmID
WRITE
setDmID
)
Q_PROPERTY
(
QString
dmAnnotation
READ
dmAnnotation
WRITE
setDmAnnotation
)
Q_PROPERTY
(
QString
dbIDSender
READ
dbIDSender
WRITE
setDbIDSender
)
Q_PROPERTY
(
QString
dmSender
READ
dmSender
WRITE
setDmSender
)
Q_PROPERTY
(
QString
dmSenderAddress
READ
dmSenderAddress
WRITE
setDmSenderAddress
)
Q_PROPERTY
(
int
dmSenderType
READ
dmSenderType
WRITE
setDmSenderType
)
Q_PROPERTY
(
QString
dmSenderOrgUnit
READ
dmSenderOrgUnit
WRITE
setDmSenderOrgUnit
)
Q_PROPERTY
(
QString
dmSenderOrgUnitNum
READ
dmSenderOrgUnitNum
WRITE
setDmSenderOrgUnitNum
)
Q_PROPERTY
(
QString
dmSenderRefNumber
READ
dmSenderRefNumber
WRITE
setDmSenderRefNumber
)
Q_PROPERTY
(
QString
dmSenderIdent
READ
dmSenderIdent
WRITE
setDmSenderIdent
)
Q_PROPERTY
(
QString
dbIDRecipient
READ
dbIDRecipient
WRITE
setDbIDRecipient
)
Q_PROPERTY
(
QString
dmRecipient
READ
dmRecipient
WRITE
setDmRecipient
)
Q_PROPERTY
(
QString
dmRecipientAddress
READ
dmRecipientAddress
WRITE
setDmRecipientAddress
)
Q_PROPERTY
(
QString
dmRecipientOrgUnit
READ
dmRecipientOrgUnit
WRITE
setDmRecipientOrgUnit
)
Q_PROPERTY
(
QString
dmRecipientOrgUnitNum
READ
dmRecipientOrgUnitNum
WRITE
setDmRecipientOrgUnitNum
)
Q_PROPERTY
(
QString
dmAmbiguousRecipient
READ
dmAmbiguousRecipient
WRITE
setDmAmbiguousRecipient
)
Q_PROPERTY
(
QString
dmRecipientRefNumber
READ
dmRecipientRefNumber
WRITE
setDmRecipientRefNumber
)
Q_PROPERTY
(
QString
dmRecipientIdent
READ
dmRecipientIdent
WRITE
setDmRecipientIdent
)
Q_PROPERTY
(
QString
dmLegalTitleLaw
READ
dmLegalTitleLaw
WRITE
setDmLegalTitleLaw
)
Q_PROPERTY
(
QString
dmLegalTitleYear
READ
dmLegalTitleYear
WRITE
setDmLegalTitleYear
)
Q_PROPERTY
(
QString
dmLegalTitleSect
READ
dmLegalTitleSect
WRITE
setDmLegalTitleSect
)
Q_PROPERTY
(
QString
dmLegalTitlePar
READ
dmLegalTitlePar
WRITE
setDmLegalTitlePar
)
Q_PROPERTY
(
QString
dmLegalTitlePoint
READ
dmLegalTitlePoint
WRITE
setDmLegalTitlePoint
)
Q_PROPERTY
(
QString
dmToHands
READ
dmToHands
WRITE
setDmToHands
)
Q_PROPERTY
(
bool
dmPersonalDelivery
READ
dmPersonalDelivery
WRITE
setDmPersonalDelivery
)
Q_PROPERTY
(
bool
dmAllowSubstDelivery
READ
dmAllowSubstDelivery
WRITE
setDmAllowSubstDelivery
)
Q_PROPERTY
(
QString
dmQTimestamp
READ
dmQTimestamp
WRITE
setDmQTimestamp
)
Q_PROPERTY
(
QString
dmDeliveryTime
READ
dmDeliveryTime
WRITE
setDmDeliveryTime
)
Q_PROPERTY
(
QString
dmAcceptanceTime
READ
dmAcceptanceTime
WRITE
setDmAcceptanceTime
)
Q_PROPERTY
(
int
dmMessageStatus
READ
dmMessageStatus
WRITE
setDmMessageStatus
)
Q_PROPERTY
(
int
dmAttachmentSize
READ
dmAttachmentSize
WRITE
setDmAttachmentSize
)
Q_PROPERTY
(
QString
dmType
READ
dmType
WRITE
setDmType
)
Q_PROPERTY
(
int
_dmMessageType
READ
_dmMessageType
WRITE
_setDmMessageType
)
Q_PROPERTY
(
QString
_dmDownloadDate
READ
_dmDownloadDate
WRITE
_setDmDownloadDate
)
Q_PROPERTY
(
QString
_dmCustomData
READ
_dmCustomData
WRITE
_setDmCustomData
)
Q_PROPERTY
(
bool
_dmAttachDownloaded
READ
_dmAttachDownloaded
WRITE
_setDmAttachDownloaded
)
Q_PROPERTY
(
bool
_dmReadLocally
READ
_dmReadLocally
WRITE
_setDmReadLocally
)
public:
/* Don't forget to declare various properties to the QML system. */
static
void
declareQML
(
void
);
/*!
* @brief Constructor.
*
* @param[in] parent Parent object.
*/
explicit
MsgEnvelope
(
QObject
*
parent
=
Q_NULLPTR
);
/*!
* @brief Copy constructor.
*
* @note Needed for QVariant conversion.
*
* @param[in] data Envelope data to be copied.
*/
MsgEnvelope
(
const
MsgEnvelope
&
data
);
MsgEnvelope
(
qint64
dmID
,
const
QString
&
dmAnnotation
,
const
QString
&
dbIDSender
,
const
QString
&
dmSender
,
const
QString
&
dmSenderAddress
,
int
dmSenderType
,
const
QString
&
dmSenderOrgUnit
,
const
QString
&
dmSenderOrgUnitNum
,
const
QString
&
dmSenderRefNumber
,
const
QString
&
dmSenderIdent
,
const
QString
&
dbIDRecipient
,
const
QString
&
dmRecipient
,
const
QString
&
dmRecipientAddress
,
const
QString
&
dmRecipientOrgUnit
,
const
QString
&
dmRecipientOrgUnitNum
,
const
QString
&
dmAmbiguousRecipient
,
const
QString
&
dmRecipientRefNumber
,
const
QString
&
dmRecipientIdent
,
const
QString
&
dmLegalTitleLaw
,
const
QString
&
dmLegalTitleYear
,
const
QString
&
dmLegalTitleSect
,
const
QString
&
dmLegalTitlePar
,
const
QString
&
dmLegalTitlePoint
,
const
QString
&
dmToHands
,
bool
dmPersonalDelivery
,
bool
dmAllowSubstDelivery
,
const
QString
&
dmQTimestamp
,
const
QString
&
dmDeliveryTime
,
const
QString
&
dmAcceptanceTime
,
int
dmMessageStatus
,
int
dmAttachmentSize
,
const
QString
&
dmType
,
int
_dmMessageType
,
const
QString
&
_dmDownloadDate
,
const
QString
&
_dmCustomData
,
bool
_dmAttachDownloaded
,
bool
_dmReadLocally
,
QObject
*
parent
=
Q_NULLPTR
);
qint64
dmID
(
void
);
void
setDmID
(
qint64
dmID
);
QString
dmAnnotation
(
void
)
const
;
void
setDmAnnotation
(
const
QString
&
dmAnnotation
);
QString
dbIDSender
(
void
)
const
;
void
setDbIDSender
(
const
QString
&
dbIDSender
);
QString
dmSender
(
void
)
const
;
void
setDmSender
(
const
QString
&
dmSender
);
QString
dmSenderAddress
(
void
)
const
;
void
setDmSenderAddress
(
const
QString
&
dmSenderAddress
);
int
dmSenderType
(
void
);