static void subject_get_all (TpProxy *proxy, GHashTable *properties, GError *error, gpointer user_data, GObject *object) { if (error) return; update_subject (POLARI_ROOM (user_data), properties); }
static void properties_changed (TpProxy *proxy, const char *iface_name, GHashTable *changed, const char *invalidated, gpointer data, GObject *weak_ref) { if (strcmp (iface_name, TP_IFACE_CHANNEL_INTERFACE_SUBJECT) != 0) return; update_subject (POLARI_ROOM (data), changed); }
UpdateSubjectDialog::UpdateSubjectDialog(QSqlDatabase *db, Subject *subj, QWidget *parent) : QDialog(parent), ui(new Ui::UpdateSubjectDialog) { ui->setupUi(this); m_db = db; m_subject = subj; connect(ui->pushButton_update, SIGNAL(clicked()), this, SLOT(update_subject())); ui->lineEdit_long->setText(m_subject->getName()); ui->lineEdit_short->setText(m_subject->getShortName()); ui->spinBox_weight->setMinimum(0); ui->spinBox_weight->setMaximum(MaxWeightSubject); ui->spinBox_weight->setValue(m_subject->getWeight()); }