MHSyncItemInfo::MHSyncItemInfo(MHSyncItemInfo& copy) { iD = copy.getId(); setGuid(copy.getGuid()); setLuid(copy.getLuid()); setName(copy.getName()); setSize(copy.getSize()); setServerUrl(copy.getServerUrl()); setContentType(copy.getContentType()); setCreationDate(copy.getCreationDate()); setModificationDate(copy.getModificationDate()); setStatus(copy.getStatus()); setServerLastUpdate(copy.getServerLastUpdate()); setRemoteItemUrl(copy.getRemoteItemUrl()); setRemoteThumbUrl(copy.getRemoteThumbUrl()); setRemotePreviewUrl(copy.getRemotePreviewUrl()); setLocalThumbPath(copy.getLocalThumbPath()); setLocalPreviewPath(copy.getLocalPreviewPath()); setLocalItemPath(copy.getLocalItemPath()); setLocalItemETag(copy.getLocalItemETag().c_str()); setLocalThumbETag(copy.getLocalThumbETag().c_str()); setLocalPreviewETag(copy.getLocalPreviewETag().c_str()); setRemoteItemETag(copy.getRemoteItemETag().c_str()); setRemoteThumbETag(copy.getRemoteThumbETag().c_str()); setRemotePreviewETag(copy.getRemotePreviewETag().c_str()); setItemExifData(copy.exifData); setItemVideoMetadata(copy.videoMetadata); setExportedServices(copy.exportedServices); setShared(copy.shared); setNumUploadFailures(copy.numUploadFailures); }
bool MadSVCrop::fromXml(const QString theXml) { QDomDocument myDocument("mydocument"); myDocument.setContent(theXml); QDomElement myTopElement = myDocument.firstChildElement("svcrop"); if (myTopElement.isNull()) { //TODO - just make this a warning qDebug("the top element couldn't be found!"); setGuid(myTopElement.attribute("guid")); //QDomElement myCategory; //QDomElement myDetails; //myCategory=QString(myTopElement.firstChildElement("agrbiomass").text()); //myDetails=QString(myCategory.firstChildElement("details").text()); //mWeightOrgans.depth()=QString(myDetails.firstChildElement("weightorgans").text()).toFloat(); //MadSubCategory mySVCropDetails; //mySVCropDetails = QString(myTopElement.firstChildElement("details").text.()); //mName=MadUtils::xmlDecode(myTopElement.firstChildElement("name").text()); //mDescription=MadUtils::xmlDecode(myTopElement.firstChildElement("description").text()); //mImageFile=QString(myTopElement.firstChildElement("imageFile").text()); return true; } else return false; }
MHSyncItemInfo::MHSyncItemInfo(unsigned long id_, const char* guid, const char* luid, const char* name, int64_t size, const char* serverUrl, const char* contentType, int64_t creationDate, int64_t modificationDate, EItemInfoStatus status, time_t serverLastUpdate, const char* remoteItemUrl, const char* remoteThumbUrl, const char* remotePreviewUrl, const char* localThumbPath, const char* localPreviewPath, const char* localItemPath_, const char* remoteItemETag, const char* remoteThumbETag, const char* remotePreviewETag) { iD = id_; setGuid(guid); setLuid(luid); setName(name); this->size = size; setServerUrl(serverUrl); setContentType(contentType); this->creationDate = creationDate; this->modificationDate = modificationDate; this->status = status; this->serverLastUpdate = serverLastUpdate; setRemoteItemUrl(remoteItemUrl); setRemoteThumbUrl(remoteThumbUrl); setRemotePreviewUrl(remotePreviewUrl); setRemoteItemETag(remoteItemETag); setLocalThumbPath(localThumbPath); setLocalPreviewPath(localPreviewPath); setLocalItemPath(localItemPath_); setRemoteThumbETag(remoteThumbETag); setRemotePreviewETag(remotePreviewETag); setLocalItemETag(""); setLocalPreviewETag(""); setLocalThumbETag(""); numUploadFailures = 0; exportedServices.clear(); setValidationStatus(EValidationStatusUnknown); }
MadSVCrop::MadSVCrop(const MadSVCrop &theData) { setGuid(theData.guid()); setAgrBiomass(theData.agrBiomass()); setWeightOrgans(theData.weightOrgans()); setRootBiomass(theData.rootBiomass()); setNInAGrBiomass(theData.nInAGrBiomass()); setNInOrgans(theData.nInOrgans()); setLai(theData.lai()); }
MadSVCrop& MadSVCrop::operator =(const MadSVCrop& theData) { // gracefully handles self assignment if (this == &theData) return *this; setGuid(theData.guid()); mAgrBiomass=theData.agrBiomass(); mWeightOrgans=theData.weightOrgans(); mRootBiomass=theData.rootBiomass(); mNInAGrBiomass=theData.nInAGrBiomass(); mNInOrgans=theData.nInOrgans(); mLai=theData.lai(); return *this; }
void VK::sendMessage(int guid, int userId, bool isChat, QString text, QString forward, QString attachments) { auto handler = new VKHandlerSendMessage(&storage(), this); handler->setGuid(guid); handler->setAttachments(attachments); handler->setForward(forward); handler->setIsChat(isChat); handler->setText(text); handler->setUserId(userId); //QObject::connect(handler, &VKAbstractHandler::ready, this, &VK::sendHandlertoScript); QObject::connect(handler, &VKAbstractHandler::sendRequest, this, &VK::processHandler); sendNetworkRequest(handler); }
MadSVCrop::MadSVCrop() : MadSerialisable(), MadGuid() { setGuid(); }