예제 #1
0
void MCMNotification::unregisterFromLaunchCompleted(const bb::network::PushStatus &status) {
	if (!status.isError()) {
		QMetaObject::invokeMethod(m_registertoLaunchStatus, "setState", Q_ARG(QVariant, false));
		Utils::log("Unregister to launch completed successfully");
	} else {
		Utils::log("Failed to unregister to launch: " + status.errorDescription());
	}
}
예제 #2
0
void MCMNotification::createSessionCompleted(const bb::network::PushStatus &status) {
	if (!status.isError()) {
		Utils::log("Successfully created session");
		QMetaObject::invokeMethod(m_createPushSessionStatus, "setState", Q_ARG(QVariant, true));
	} else {
		Utils::log("Failed to create session: " + status.errorDescription());
		QMetaObject::invokeMethod(m_createPushSessionStatus, "setState", Q_ARG(QVariant, false));
	}
}