File: AlpineApkReviewsBackend.cpp

package info (click to toggle)
plasma-discover 6.5.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,288 kB
  • sloc: cpp: 30,576; xml: 2,710; python: 311; sh: 5; makefile: 5
file content (31 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 *   SPDX-FileCopyrightText: 2020 Alexey Minnekhanov <alexey.min@gmail.com>
 *
 *   SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
 */

#include "AlpineApkReviewsBackend.h"
#include "AlpineApkBackend.h"
#include "resources/AbstractResource.h"

AlpineApkReviewsBackend::AlpineApkReviewsBackend(AlpineApkBackend *parent)
    : AbstractReviewsBackend(parent)
{
}

Rating AlpineApkReviewsBackend::ratingForApplication(AbstractResource *) const
{
    return Rating();
}

ReviewsJob *AlpineApkReviewsBackend::fetchReviews(AbstractResource *app, int page)
{
    Q_UNUSED(app);
    Q_UNUSED(page);

    auto ret = new ReviewsJob;
    static const QVector<ReviewPtr> reviews;
    Q_EMIT ret->reviewsReady(reviews, false);
    ret->deleteLater();
    return ret;
}