AppstreamScreenshotService

AppstreamScreenshotService — Get access to a package screenshot service which matches the current distribution.

Synopsis

#define             APPSTREAM_TYPE_SCREENSHOT_SERVICE
gchar *             appstream_screenshot_service_get_thumbnail_url
                                                        (AppstreamScreenshotService *self,
                                                         const gchar *package_name);
gchar *             appstream_screenshot_service_get_screenshot_url
                                                        (AppstreamScreenshotService *self,
                                                         const gchar *package_name);
AppstreamScreenshotService * appstream_screenshot_service_new
                                                        (void);
const gchar *       appstream_screenshot_service_get_base_url
                                                        (AppstreamScreenshotService *self);
struct              AppstreamScreenshotService;
struct              AppstreamScreenshotServiceClass;

Description

Details

APPSTREAM_TYPE_SCREENSHOT_SERVICE

#define APPSTREAM_TYPE_SCREENSHOT_SERVICE (appstream_screenshot_service_get_type ())

The type for AppstreamScreenshotService.


appstream_screenshot_service_get_thumbnail_url ()

gchar *             appstream_screenshot_service_get_thumbnail_url
                                                        (AppstreamScreenshotService *self,
                                                         const gchar *package_name);

Get the url of a screenshot thumbnail for the package.

self :

the AppstreamScreenshotService instance

package_name :

 . The name of the package which the screenshot belongs to. [in]

appstream_screenshot_service_get_screenshot_url ()

gchar *             appstream_screenshot_service_get_screenshot_url
                                                        (AppstreamScreenshotService *self,
                                                         const gchar *package_name);

Get the url of a screenshot for the package.

self :

the AppstreamScreenshotService instance

package_name :

 . The name of the package which the screenshot belongs to. [in]

appstream_screenshot_service_new ()

AppstreamScreenshotService * appstream_screenshot_service_new
                                                        (void);

appstream_screenshot_service_get_base_url ()

const gchar *       appstream_screenshot_service_get_base_url
                                                        (AppstreamScreenshotService *self);

Get and return the current value of the "base-url" property.

self :

the AppstreamScreenshotService instance to query

Returns :

the value of the "base-url" property

struct AppstreamScreenshotService

struct AppstreamScreenshotService {
	GObject parent_instance;
	AppstreamScreenshotServicePrivate * priv;
};

Get access to a package screenshot service which matches the current distribution.


struct AppstreamScreenshotServiceClass

struct AppstreamScreenshotServiceClass {
	GObjectClass parent_class;
};

The class structure for APPSTREAM_TYPE_SCREENSHOT_SERVICE. All the fields in this structure are private and should never be accessed directly.

GObjectClass parent_class;

the parent class structure