| LibAppStream Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
AppstreamScreenshotServiceAppstreamScreenshotService — Get access to a package screenshot service which matches the current distribution. |
#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;
#define APPSTREAM_TYPE_SCREENSHOT_SERVICE (appstream_screenshot_service_get_type ())
The type for AppstreamScreenshotService.
gchar * appstream_screenshot_service_get_thumbnail_url (AppstreamScreenshotService *self,const gchar *package_name);
Get the url of a screenshot thumbnail for the package.
|
the AppstreamScreenshotService instance |
|
. The name of the package which the screenshot belongs to. [in] |
gchar * appstream_screenshot_service_get_screenshot_url (AppstreamScreenshotService *self,const gchar *package_name);
Get the url of a screenshot for the package.
|
the AppstreamScreenshotService instance |
|
. The name of the package which the screenshot belongs to. [in] |
AppstreamScreenshotService * appstream_screenshot_service_new
(void);
const gchar * appstream_screenshot_service_get_base_url
(AppstreamScreenshotService *self);
Get and return the current value of the "base-url" property.
|
the AppstreamScreenshotService instance to query |
Returns : |
the value of the "base-url" property |
struct AppstreamScreenshotService {
GObject parent_instance;
AppstreamScreenshotServicePrivate * priv;
};
Get access to a package screenshot service which matches the current distribution.
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 |
the parent class structure |