repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / haikudepot / server / dumpexportrepository / DumpExportRepositorySource.cpp
blobe0e5998a743431339003a18f9608dc48492b7429
1 /*
2 * Generated Model Object
3 * source json-schema : dumpexport.json
4 * generated at : 2017-11-11T13:59:22.559632
5 */
6 #include "DumpExportRepositorySource.h"
9 DumpExportRepositorySource::DumpExportRepositorySource()
11 fUrl = NULL;
12 fCode = NULL;
16 DumpExportRepositorySource::~DumpExportRepositorySource()
18 if (fUrl != NULL) {
19 delete fUrl;
22 if (fCode != NULL) {
23 delete fCode;
28 BString*
29 DumpExportRepositorySource::Url()
31 return fUrl;
35 void
36 DumpExportRepositorySource::SetUrl(BString* value)
38 fUrl = value;
42 void
43 DumpExportRepositorySource::SetUrlNull()
45 if (!UrlIsNull()) {
46 delete fUrl;
47 fUrl = NULL;
52 bool
53 DumpExportRepositorySource::UrlIsNull()
55 return fUrl == NULL;
59 BString*
60 DumpExportRepositorySource::Code()
62 return fCode;
66 void
67 DumpExportRepositorySource::SetCode(BString* value)
69 fCode = value;
73 void
74 DumpExportRepositorySource::SetCodeNull()
76 if (!CodeIsNull()) {
77 delete fCode;
78 fCode = NULL;
83 bool
84 DumpExportRepositorySource::CodeIsNull()
86 return fCode == NULL;