1 /*
2 ################################################################################
3 #  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
4 #  Read the zproject/README.md for information about making permanent changes. #
5 ################################################################################
6 */
7 
8 #include "QmlZdirPatch.h"
9 
10 
11 ///
12 //  Create copy of a patch. If the patch is null, or memory was exhausted,
13 //  returns null.
dup()14 QmlZdirPatch *QmlZdirPatch::dup () {
15     QmlZdirPatch *retQ_ = new QmlZdirPatch ();
16     retQ_->self = zdir_patch_dup (self);
17     return retQ_;
18 };
19 
20 ///
21 //  Return patch file directory path
path()22 const QString QmlZdirPatch::path () {
23     return QString (zdir_patch_path (self));
24 };
25 
26 ///
27 //  Return patch file item
file()28 QmlZfile *QmlZdirPatch::file () {
29     QmlZfile *retQ_ = new QmlZfile ();
30     retQ_->self = zdir_patch_file (self);
31     return retQ_;
32 };
33 
34 ///
35 //  Return operation
op()36 int QmlZdirPatch::op () {
37     return zdir_patch_op (self);
38 };
39 
40 ///
41 //  Return patch virtual file path
vpath()42 const QString QmlZdirPatch::vpath () {
43     return QString (zdir_patch_vpath (self));
44 };
45 
46 ///
47 //  Calculate hash digest for file (create only)
digestSet()48 void QmlZdirPatch::digestSet () {
49     zdir_patch_digest_set (self);
50 };
51 
52 ///
53 //  Return hash digest for patch file
digest()54 const QString QmlZdirPatch::digest () {
55     return QString (zdir_patch_digest (self));
56 };
57 
58 
qmlAttachedProperties(QObject * object)59 QObject* QmlZdirPatch::qmlAttachedProperties(QObject* object) {
60     return new QmlZdirPatchAttached(object);
61 }
62 
63 
64 ///
65 //  Self test of this class.
test(bool verbose)66 void QmlZdirPatchAttached::test (bool verbose) {
67     zdir_patch_test (verbose);
68 };
69 
70 ///
71 //  Create new patch
construct(const QString & path,QmlZfile * file,int op,const QString & alias)72 QmlZdirPatch *QmlZdirPatchAttached::construct (const QString &path, QmlZfile *file, int op, const QString &alias) {
73     QmlZdirPatch *qmlSelf = new QmlZdirPatch ();
74     qmlSelf->self = zdir_patch_new (path.toUtf8().data(), file->self, op, alias.toUtf8().data());
75     return qmlSelf;
76 };
77 
78 ///
79 //  Destroy a patch
destruct(QmlZdirPatch * qmlSelf)80 void QmlZdirPatchAttached::destruct (QmlZdirPatch *qmlSelf) {
81     zdir_patch_destroy (&qmlSelf->self);
82 };
83 
84 /*
85 ################################################################################
86 #  THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY  #
87 #  Read the zproject/README.md for information about making permanent changes. #
88 ################################################################################
89 */
90