Exemple #1
0
void
call_unref ()
{
  if (unref_val)			/* count(1) */
    unref_val = uncalled (1, 2);
  unref_val = called (unref_val, 4);	/* count(1) */
}
Exemple #2
0
QVariant Callback::call(const QVariantList& arguments)
{
    emit called(arguments);

    qDebug() << "Callback - call result:" << m_returnValue;
    return m_returnValue;
}
Exemple #3
0
void optimizeme(int *p) {
    int q=*p;
    if(!p)
        return;
    called();
    return;
}
Exemple #4
0
void
httpIODeviceFactory( const Tomahawk::result_ptr&, const QString& url,
                     IODeviceCallback callback )
{
    QNetworkRequest req( url );
    // Follow HTTP Redirects
    QSharedPointer< NetworkReply > reply( new NetworkReply( Tomahawk::Utils::nam()->get( req ) ) );
    qRegisterMetaType<NetworkReply*>("NetworkReply*");
    qRegisterMetaType<IODeviceCallback>("IODeviceCallback");
    HttpIODeviceReadyHandler* handler = new HttpIODeviceReadyHandler( reply, callback );
    reply->connect( reply.data(), SIGNAL( finalUrlReached() ),
                    handler, SLOT( called() ));
}
Exemple #5
0
void    MainWindow::init()
{
    QMenuBar *myMenuBar = menuBar();
    QMenu *fileMenu = myMenuBar->addMenu("File");
    QMenu *EditionMenu = myMenuBar->addMenu("Edition");
    QMenu *helpMenu = myMenuBar->addMenu("Help");

    myMenuBar->setObjectName("myMenuBar");
    fileMenu->setObjectName("myFileMenu");
    EditionMenu->setObjectName("myEditionMenu");
    helpMenu->setObjectName("myHelpMenu");

    _dockWidget = new QDockWidget;

    _dockWidget->setFeatures(QDockWidget::NoDockWidgetFeatures | QDockWidget::DockWidgetMovable);

    _dockWidget->setVisible(false);

    _stackedWidget = new QStackedWidget;

    _accountInterface = AccountSingleton::getInstance();
    _centralWidget = CentralWidgetSingleton::getInstance();
    _dockWidgetContent = DockWidgetContentSingleton::getInstance();

    _stackedWidget->addWidget(_accountInterface);
    _stackedWidget->addWidget(_centralWidget);

    setCentralWidget(_stackedWidget);

    _dockWidget->setWidget(_dockWidgetContent);

    _dockWidget->setMinimumSize(400, 600);

    addDockWidget(Qt::LeftDockWidgetArea, _dockWidget, Qt::Vertical);

    setWindowTitle("Babel Client");
    setMinimumSize(800, 700);

    connect(ListenServerSingleton::getInstance(), SIGNAL(connected()), this, SLOT(switchOnConnectedState()));
    connect(ListenServerSingleton::getInstance(), SIGNAL(warningPopUp(QString const&,QString const&)),
            this, SLOT(showWarningPopUp(QString const&,QString const&)));
    connect(ListenServerSingleton::getInstance(), SIGNAL(successPopUp(QString const&,QString const&)),
            this, SLOT(showSuccessPopUp(QString const&,QString const&)));
    connect(ListenServerSingleton::getInstance(), SIGNAL(contactStatusChanged(QString,int)), _dockWidgetContent, SLOT(updateStatusForContact(QString,int)));
    connect(ListenServerSingleton::getInstance(), SIGNAL(callOccured(QString const &, unsigned int)), _centralWidget, SLOT(showCallPopUp(QString const &, unsigned int)));
    connect(ListenServerSingleton::getInstance(), SIGNAL(callFail()), _centralWidget, SLOT(showFailCall()));
    connect(ListenServerSingleton::getInstance(), SIGNAL(newContactToUpdateList(QString const &)), _dockWidgetContent, SLOT(addContactToUpdateList(QString const &)));
    connect(ListenServerSingleton::getInstance(), SIGNAL(textMessageChanged(QString const &)), _centralWidget, SLOT(updateTalkWindowText(QString const&)));
    connect(ListenServerSingleton::getInstance(), SIGNAL(hungUp(QString const &)), _centralWidget, SLOT(applyHangUp(QString const&)));
    connect(_dockWidgetContent, SIGNAL(called()), _centralWidget, SLOT(call()));
}
Exemple #6
0
	void GlooxAccount::handleIncomingCall (QXmppCall *call)
	{
		emit called (new MediaCall (this, call));
	}
Exemple #7
0
QVariant Callback::call(const QVariantList& arguments)
{
    emit called(arguments);

    return m_returnValue;
}
Exemple #8
0
void callee()
{
	compound ret;
	ret = called();
}