Logo Search packages:      
Sourcecode: qapt version File versions  Download package

QUrl QApt::Package::screenshotUrl ( QApt::ScreenshotType  type  )  const

Member function that fetches a package's screenshot over the Internet.

Parameters:
type The type of screenshot to be fetched as a QApt::ScreenshotType
Returns:
The location of the package changelog as a QString

Definition at line 429 of file package.cpp.

References name(), QApt::Screenshot, and QApt::Thumbnail.

{
    QString urlBase;
    switch (type) {
        case QApt::Thumbnail:
            urlBase = "http://screenshots.debian.net/thumbnail/";
            break;
        case QApt::Screenshot:
            urlBase = "http://screenshots.debian.net/screenshot/";
            break;
    }

    QUrl url = QUrl(urlBase % name());

    return url;
}


Generated by  Doxygen 1.6.0   Back to index