void HBackground::showStuff() { s_showingStuff=1; _sc->setBackgroundBrush(QBrush(QColor("black"))); ArtistAvatar::_ready=1; closeMode(); if(!s_mco) { s_mco=new HMainContextOptions; s_mco->setMinimumWidth(1024); QGraphicsProxyWidget* pw=_sc->addWidget(s_mco); s_mco->show(); pw->setPos(183,-305); connect(s_mco,SIGNAL(localMode()),this,SLOT(onLocalMode())); connect(s_mco,SIGNAL(suggMode()),this,SLOT(onSuggMode())); connect(s_mco,SIGNAL(topMode()),this,SLOT(onTopMode())); connect(s_mco,SIGNAL(albumMode()),this,SLOT(onAlbumMode())); connect(s_mco,SIGNAL(listMode()),this,SLOT(onListMode())); connect(s_mco,SIGNAL(playMode()),this,SLOT(onPlayMode())); } list.clear(); if(s_mode==Top) { if(s_gotTop) { list=s_toplist; showStuff_makeList(); } else { QMap<QString, QString> p1; p1["method"] = "library.getArtists"; p1["user"] = lastfm::ws::Username; // p1["period"]="3month"; p1["limit"]="5000"; QNetworkReply* reply = lastfm::ws::get( p1 ); connect(reply,SIGNAL(finished()),this,SLOT(showStuff_makeList())); } } else if(s_mode==Suggestions) { if(s_gotRec) { list=s_reclist; showStuff_makeList(); } else { QMap<QString, QString> p1; p1["method"] = "user.getRecommendedArtists"; p1["limit"]="5000"; QNetworkReply* reply = lastfmext_post(p1); connect(reply,SIGNAL(finished()),this,SLOT(showStuff_makeList())); } } else { s_showingStuff=0; if(s_stopRequest) { doStopRequest(); } return; } }
int Q3DockWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = Q3Frame::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 8) qt_static_metacall(this, _c, _id, _a); _id -= 8; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< int*>(_v) = closeMode(); break; case 1: *reinterpret_cast< bool*>(_v) = isResizeEnabled(); break; case 2: *reinterpret_cast< bool*>(_v) = isMovingEnabled(); break; case 3: *reinterpret_cast< bool*>(_v) = isHorizontallyStretchable(); break; case 4: *reinterpret_cast< bool*>(_v) = isVerticallyStretchable(); break; case 5: *reinterpret_cast< bool*>(_v) = isStretchable(); break; case 6: *reinterpret_cast< bool*>(_v) = newLine(); break; case 7: *reinterpret_cast< bool*>(_v) = opaqueMoving(); break; case 8: *reinterpret_cast< int*>(_v) = offset(); break; case 9: *reinterpret_cast< Place*>(_v) = place(); break; } _id -= 10; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 0: setCloseMode(*reinterpret_cast< int*>(_v)); break; case 1: setResizeEnabled(*reinterpret_cast< bool*>(_v)); break; case 2: setMovingEnabled(*reinterpret_cast< bool*>(_v)); break; case 3: setHorizontallyStretchable(*reinterpret_cast< bool*>(_v)); break; case 4: setVerticallyStretchable(*reinterpret_cast< bool*>(_v)); break; case 6: setNewLine(*reinterpret_cast< bool*>(_v)); break; case 7: setOpaqueMoving(*reinterpret_cast< bool*>(_v)); break; case 8: setOffset(*reinterpret_cast< int*>(_v)); break; } _id -= 10; } else if (_c == QMetaObject::ResetProperty) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 10; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 10; } #endif // QT_NO_PROPERTIES return _id; }
void HBackground::doStopRequest() { closeMode(); s_stopRequest=0; showStuff(); }