コード例 #1
0
ファイル: Notifier.cpp プロジェクト: 12307/poco
Notifier::Notifier(const Session& session, EnabledEventType enabled):
	_session(session)
{
	if (enabled & SQLITE_NOTIFY_UPDATE)   enableUpdate();
	if (enabled & SQLITE_NOTIFY_COMMIT)   enableCommit();
	if (enabled & SQLITE_NOTIFY_ROLLBACK) enableRollback();
}
コード例 #2
0
ファイル: Notifier.cpp プロジェクト: RobertAcksel/poco
Notifier::Notifier(const Session& session, const Any& value, EnabledEventType enabled):
	_session(session),
	_value(value),
	_row(),
	_enabledEvents()
{
	if (enabled & SQLITE_NOTIFY_UPDATE)   enableUpdate();
	if (enabled & SQLITE_NOTIFY_COMMIT)   enableCommit();
	if (enabled & SQLITE_NOTIFY_ROLLBACK) enableRollback();
}
コード例 #3
0
ファイル: CommitWidget.cpp プロジェクト: KDE/cocoon
CommitWidget::CommitWidget(QWidget *parent)
	: QWidget(parent)
	, m_repo(0)
	, m_status(0)
	, ui(new Ui::CommitWidget)
{
	ui->setupUi(this);

	connect(ui->commitMessageTextEdit, SIGNAL(textChanged()), this, SLOT(enableCommit()));
}
コード例 #4
0
ファイル: Notifier.cpp プロジェクト: 12307/poco
bool Notifier::enableAll()
{
	return enableUpdate() && enableCommit() && enableRollback();
}
コード例 #5
0
ファイル: CommitWidget.cpp プロジェクト: KDE/cocoon
void CommitWidget::reload()
{
	enableCommit();
}
コード例 #6
0
ファイル: CommitWidget.cpp プロジェクト: KDE/cocoon
void CommitWidget::on_Repo_indexChanged()
{
	m_status = 0;
	enableCommit();
}