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.

type The type of screenshot to be fetched as a QApt::ScreenshotType
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/";
        case QApt::Screenshot:
            urlBase = "http://screenshots.debian.net/screenshot/";

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

    return url;

Generated by  Doxygen 1.6.0   Back to index