Exemplo n.º 1
0
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);
    }
Exemplo n.º 2
0
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();
}
Exemplo n.º 3
0
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();
}