16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include "hswidgetcomponentdescriptor.h" |
19 #include "hswidgetcomponentdescriptor.h" |
20 |
20 |
|
21 |
|
22 HsWidgetComponentDescriptor::HsWidgetComponentDescriptor():installationPath(),uri(),title(), |
|
23 description(),iconUri(),hidden(),serviceXml(),version(),library(),translationFilename(),uid(0),previewImage() |
|
24 {} |
|
25 |
|
26 HsWidgetComponentDescriptor::HsWidgetComponentDescriptor(const HsWidgetComponentDescriptor& copyFrom) { |
|
27 this->installationPath = copyFrom.installationPath; |
|
28 this->uri = copyFrom.uri; |
|
29 this->title = copyFrom.title; |
|
30 this->description = copyFrom.description; |
|
31 this->iconUri = copyFrom.iconUri; |
|
32 this->hidden = copyFrom.hidden; |
|
33 this->serviceXml = copyFrom.serviceXml; |
|
34 this->version = copyFrom.version; |
|
35 this->library = copyFrom.library; |
|
36 this->translationFilename = copyFrom.translationFilename; |
|
37 this->uid = copyFrom.uid; |
|
38 this->previewImage = copyFrom.previewImage; |
|
39 |
|
40 } |
|
41 |
|
42 |
21 bool HsWidgetComponentDescriptor::isValid() |
43 bool HsWidgetComponentDescriptor::isValid() |
22 { |
44 { |
23 bool ret(false); |
45 bool ret(false); |
24 if (version == "1.0") { |
46 if (version == "1.0") { |
25 ret = !(uri.isEmpty() || serviceXml.isEmpty() || title.isEmpty()); |
47 ret = !(uri.isEmpty() || serviceXml.isEmpty() || title.isEmpty()); |