void GameDetailListJob::fetchGameList() { QStringList gluonGamesCategories; gluonGamesCategories << "4400" << "4410" << "4420" << "4430" << "4440"; Attica::Category::List categories; foreach(const QString& gluonCategory, gluonGamesCategories) { Attica::Category category; category.setId(gluonCategory); categories.append(category); }
void AddGameJob::startSocialService() { Attica::Category category; category.setId( d->gameCategory ); Attica::Content content; content.setName( d->gameName ); Attica::ItemPostJob<Attica::Content> *job = provider()->addNewContent( category, content ); connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(addGameComplete(Attica::BaseJob*)) ); job->start(); }
void EditGameJob::startEditionUpload() { if( !d->existingContent.isValid() ) { connect( this, SIGNAL(fetchedExistingGame(QString)), SLOT(startEditionUpload()) ); return; } Attica::Category category; category.setId( d->category.isEmpty() ? "4440" : d->category ); Attica::ItemPostJob<Attica::Content> *job = d->provider->editContent( category, d->id, d->existingContent ); connect( job, SIGNAL(finished(Attica::BaseJob*)), SLOT(editingComplete(Attica::BaseJob*)) ); job->start(); }