| LibAppStream Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define AS_TYPE_SEARCH_QUERY gboolean as_search_query_get_search_all_categories (AsSearchQuery *self); void as_search_query_set_search_all_categories (AsSearchQuery *self); void as_search_query_set_categories_from_string (AsSearchQuery *self,const gchar *categories_str); AsSearchQuery * as_search_query_new (const gchar *term); const gchar * as_search_query_get_search_term (AsSearchQuery *self); void as_search_query_set_search_term (AsSearchQuery *self,const gchar *value); gchar ** as_search_query_get_categories (AsSearchQuery *self,int *result_length1); void as_search_query_set_categories (AsSearchQuery *self,gchar **value,int value_length1); struct AsSearchQuery; struct AsSearchQueryClass; #define AS_TYPE_DATABASE gboolean as_database_open (AsDatabase *self); gboolean as_database_db_exists (AsDatabase *self); GPtrArray * as_database_get_all_applications (AsDatabase *self); GPtrArray * as_database_find_applications (AsDatabase *self,AsSearchQuery *query); GPtrArray * as_database_find_applications_by_str (AsDatabase *self,const gchar *search_str,const gchar *categories_str); AsDatabase * as_database_new (void); const gchar * as_database_get_database_path (AsDatabase *self); struct AsDatabase; struct AsDatabaseClass;
#define AS_TYPE_SEARCH_QUERY (as_search_query_get_type ())
The type for AsSearchQuery.
gboolean as_search_query_get_search_all_categories
(AsSearchQuery *self);
|
the AsSearchQuery instance |
Returns : |
TRUE if we search in all categories |
void as_search_query_set_search_all_categories
(AsSearchQuery *self);
Shortcut to set that we should search in all categories
|
the AsSearchQuery instance |
void as_search_query_set_categories_from_string (AsSearchQuery *self,const gchar *categories_str);
Set the categories list from a string
|
the AsSearchQuery instance |
|
. Comma-separated list of category-names. [in] |
const gchar * as_search_query_get_search_term (AsSearchQuery *self);
Get and return the current value of the "search-term" property.
|
the AsSearchQuery instance to query |
Returns : |
the value of the "search-term" property |
void as_search_query_set_search_term (AsSearchQuery *self,const gchar *value);
Set the value of the "search-term" property to value.
|
the AsSearchQuery instance to modify |
|
the new value of the "search-term" property |
gchar ** as_search_query_get_categories (AsSearchQuery *self,int *result_length1);
Get and return the current value of the "categories" property.
|
the AsSearchQuery instance to query |
Returns : |
the value of the "categories" property |
void as_search_query_set_categories (AsSearchQuery *self,gchar **value,int value_length1);
Set the value of the "categories" property to value.
|
the AsSearchQuery instance to modify |
|
the new value of the "categories" property |
struct AsSearchQuery {
GObject parent_instance;
AsSearchQueryPrivate * priv;
};
Class describing a query on the AppStream application database
struct AsSearchQueryClass {
GObjectClass parent_class;
};
The class structure for AS_TYPE_SEARCH_QUERY. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |
gboolean as_database_db_exists (AsDatabase *self);
|
the AsDatabase instance |
Returns : |
TRUE if the application database exists |
GPtrArray * as_database_get_all_applications (AsDatabase *self);
|
the AsDatabase instance |
GPtrArray * as_database_find_applications (AsDatabase *self,AsSearchQuery *query);
|
the AsDatabase instance |
|
GPtrArray * as_database_find_applications_by_str (AsDatabase *self,const gchar *search_str,const gchar *categories_str);
|
the AsDatabase instance |
|
|
|
const gchar * as_database_get_database_path (AsDatabase *self);
Get and return the current value of the "database-path" property.
|
the AsDatabase instance to query |
Returns : |
the value of the "database-path" property |
struct AsDatabase {
GObject parent_instance;
AsDatabasePrivate * priv;
};
Class to access the AppStream application database
struct AsDatabaseClass {
GObjectClass parent_class;
gboolean (*open) (AsDatabase* self);
};
The class structure for AS_TYPE_DATABASE. All the fields in this structure are private and should never be accessed directly.
GObjectClass |
the parent class structure |
virtual method called by as_database_open()
|