Пример #1
0
Manager::Manager(QQmlApplicationEngine *newEngine, QObject *parent){
    Q_UNUSED(parent);
    _engine = newEngine;
    this->getFromConfig();
    _engine->rootContext()->setContextProperty("Manager", this);
    _engine->load(QUrl(QStringLiteral("qrc:///qml/ShyftWrk.qml")));
    _qMLBinding= _engine->rootObjects()[0];
    QObject *mainAppStart = _qMLBinding->findChild<QObject*>("mainWindowContext");
    connect(mainAppStart, SIGNAL(authRequested()), this, SLOT(authorizationRequested()));

}
Пример #2
0
void SSIAuthTask::handleAuthRequested()
{
	Buffer* buf = transfer()->buffer();
	
	QString uin = Oscar::normalize( buf->getBUIN() );
	QByteArray reason = buf->getBSTR();
	
	buf->getWord(); // 0x0000 - Unknown
	
	kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Authorization requested from " << uin << endl;
	kdDebug( OSCAR_RAW_DEBUG ) << k_funcinfo << "Reason: " << reason << endl;
	
	emit authRequested( uin, QString::fromUtf8( reason.data(), reason.size() ) );
}
void ConnAliveThread::getAuthCredentials(QString &crd)
{
    /*
     * Get credentials for authData;
     * invoke Input Credentials graphic widget &
     * wait a credentials from him
     */
    qDebug()<<crd<<"keep auth";
    authWaitKey = true;
    emit authRequested(crd);
    int i = 0;
    while ( i<WAIT_AUTH) {
        i++;
        if ( !authWaitKey ) {
            break;
        } else {
            msleep(100);
        };
    };
}
Пример #4
0
void ConnElement::getAuthCredentials(QString &crd)
{
    emit authRequested(crd);
}