AsScreenshotService

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

Synopsis

#define             AS_TYPE_SCREENSHOT_SERVICE
gchar *             as_screenshot_service_get_thumbnail_url
                                                        (AsScreenshotService *self,
                                                         const gchar *package_name);
gchar *             as_screenshot_service_get_screenshot_url
                                                        (AsScreenshotService *self,
                                                         const gchar *package_name);
AsScreenshotService * as_screenshot_service_new         (void);
const gchar *       as_screenshot_service_get_base_url  (AsScreenshotService *self);
struct              AsScreenshotService;
struct              AsScreenshotServiceClass;

Description

Details

AS_TYPE_SCREENSHOT_SERVICE

#define AS_TYPE_SCREENSHOT_SERVICE (as_screenshot_service_get_type ())

The type for AsScreenshotService.


as_screenshot_service_get_thumbnail_url ()

gchar *             as_screenshot_service_get_thumbnail_url
                                                        (AsScreenshotService *self,
                                                         const gchar *package_name);

Get the url of a screenshot thumbnail for the package.

self :

the AsScreenshotService instance

package_name :

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

as_screenshot_service_get_screenshot_url ()

gchar *             as_screenshot_service_get_screenshot_url
                                                        (AsScreenshotService *self,
                                                         const gchar *package_name);

Get the url of a screenshot for the package.

self :

the AsScreenshotService instance

package_name :

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

as_screenshot_service_new ()

AsScreenshotService * as_screenshot_service_new         (void);

as_screenshot_service_get_base_url ()

const gchar *       as_screenshot_service_get_base_url  (AsScreenshotService *self);

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

self :

the AsScreenshotService instance to query

Returns :

the value of the "base-url" property

struct AsScreenshotService

struct AsScreenshotService {
	GObject parent_instance;
	AsScreenshotServicePrivate * priv;
};

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


struct AsScreenshotServiceClass

struct AsScreenshotServiceClass {
	GObjectClass parent_class;
};

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

GObjectClass parent_class;

the parent class structure