Ejemplo n.º 1
0
void FollowUpRecord::setAttributesAndValues(const QMap<QString, QVariant> & attributesAndValues){
    Record::setAttributesAndValues(attributesAndValues);
    QString  s = attributesAndValues.value(QString("Status")).toString();
    QDateTime  ddat = attributesAndValues.value(QString("DueDateAndTime")).toDateTime();
    QString  d = attributesAndValues.value(QString("Details")).toString();
    int c = attributesAndValues.value(QString("ConsultationRecordID")).toInt();

    setStatusForString(s);
    setDueDateTime(ddat);
    setDetails(d);
    setConsultationRecordId(c);
}
Ejemplo n.º 2
0
int NoteEditor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QString*>(_v) = title(); break;
        case 1: *reinterpret_cast< QString*>(_v) = description(); break;
        case 2: *reinterpret_cast< QDateTime*>(_v) = dueDateTime(); break;
        case 3: *reinterpret_cast< bool*>(_v) = completed(); break;
        case 4: *reinterpret_cast< Mode*>(_v) = mode(); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setTitle(*reinterpret_cast< QString*>(_v)); break;
        case 1: setDescription(*reinterpret_cast< QString*>(_v)); break;
        case 2: setDueDateTime(*reinterpret_cast< QDateTime*>(_v)); break;
        case 3: setCompleted(*reinterpret_cast< bool*>(_v)); break;
        case 4: setMode(*reinterpret_cast< Mode*>(_v)); break;
        }
        _id -= 5;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
Ejemplo n.º 3
0
FollowUpRecord::FollowUpRecord(QString & s, QDateTime &ddat,QString&d, int co){
    setStatusForString(s);
    setDueDateTime(ddat);
    setDetails(d);
    setConsultationRecordId(co);
}