604
* hud_client_query_appstack_get_app_id:
605
* @cquery: A #HudClientQuery
606
* @row: Which row in the table to grab the ID from
608
* Get the application ID for a given row in the appstack table.
610
* Return value: The application ID
613
hud_client_query_appstack_get_app_id (HudClientQuery * cquery, DeeModelIter * row)
615
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), NULL);
616
g_return_val_if_fail(row != NULL, NULL);
618
return dee_model_get_string(cquery->priv->appstack, row, HUD_QUERY_APPSTACK_APPLICATION_ID);
622
* hud_client_query_appstack_get_app_icon:
623
* @cquery: A #HudClientQuery
624
* @row: Which row in the table to grab the icon from
626
* Get the application icon for a given row in the appstack table.
628
* Return value: The application icon
631
hud_client_query_appstack_get_app_icon (HudClientQuery * cquery, DeeModelIter * row)
633
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), NULL);
634
g_return_val_if_fail(row != NULL, NULL);
636
return dee_model_get_string(cquery->priv->appstack, row, HUD_QUERY_APPSTACK_ICON_NAME);
640
* hud_client_query_results_get_command_id:
641
* @cquery: A #HudClientQuery
642
* @row: Which row in the table to grab the ID from
644
* Get the command ID for a given row in the results table.
646
* Return value: (transfer full): The command ID
649
hud_client_query_results_get_command_id (HudClientQuery * cquery, DeeModelIter * row)
651
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), NULL);
652
g_return_val_if_fail(row != NULL, NULL);
654
return dee_model_get_value(cquery->priv->results, row, HUD_QUERY_RESULTS_COMMAND_ID);
658
* hud_client_query_results_get_command_name:
659
* @cquery: A #HudClientQuery
660
* @row: Which row in the table to grab the name from
662
* Get the human readable command name for a given row in the results table.
664
* Return value: The command name
667
hud_client_query_results_get_command_name (HudClientQuery * cquery, DeeModelIter * row)
669
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), NULL);
670
g_return_val_if_fail(row != NULL, NULL);
672
return dee_model_get_string(cquery->priv->results, row, HUD_QUERY_RESULTS_COMMAND_NAME);
676
* hud_client_query_results_get_command_highlights:
677
* @cquery: A #HudClientQuery
678
* @row: Which row in the table to grab the highlights from
680
* Get the command highlights for a row in the table with start and
681
* stop characters in an array.
683
* Return value: (transfer full): The command highlights as a variant of type "a(ii)"
686
hud_client_query_results_get_command_highlights (HudClientQuery * cquery, DeeModelIter * row)
688
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), NULL);
689
g_return_val_if_fail(row != NULL, NULL);
691
return dee_model_get_value(cquery->priv->results, row, HUD_QUERY_RESULTS_COMMAND_HIGHLIGHTS);
695
* hud_client_query_results_get_description:
696
* @cquery: A #HudClientQuery
697
* @row: Which row in the table to grab the description from
699
* Get the human readable description for the command in the given row in the results table.
701
* Return value: The description
704
hud_client_query_results_get_description (HudClientQuery * cquery, DeeModelIter * row)
706
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), NULL);
707
g_return_val_if_fail(row != NULL, NULL);
709
return dee_model_get_string(cquery->priv->results, row, HUD_QUERY_RESULTS_DESCRIPTION);
713
* hud_client_query_results_get_description_highlights:
714
* @cquery: A #HudClientQuery
715
* @row: Which row in the table to grab the highlights from
717
* Get the description highlights for a row in the table with start and
718
* stop characters in an array.
720
* Return value: (transfer full): The description highlights as a variant of type "a(ii)"
723
hud_client_query_results_get_description_highlights (HudClientQuery * cquery, DeeModelIter * row)
725
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), NULL);
726
g_return_val_if_fail(row != NULL, NULL);
728
return dee_model_get_value(cquery->priv->results, row, HUD_QUERY_RESULTS_DESCRIPTION_HIGHLIGHTS);
732
* hud_client_query_results_get_shortcut:
733
* @cquery: A #HudClientQuery
734
* @row: Which row in the table to grab the shortcut from
736
* Get the human readable shortcut for the command in the given row in the results table.
738
* Return value: The shortcut
741
hud_client_query_results_get_shortcut (HudClientQuery * cquery, DeeModelIter * row)
743
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), NULL);
744
g_return_val_if_fail(row != NULL, NULL);
746
return dee_model_get_string(cquery->priv->results, row, HUD_QUERY_RESULTS_SHORTCUT);
750
* hud_client_query_results_is_parameterized:
751
* @cquery: A #HudClientQuery
752
* @row: Which row in the table to check if the command is parameterized
754
* Check to see if the given command is parameterized
756
* Return value: Whether the command in the row is parameterized
759
hud_client_query_results_is_parameterized (HudClientQuery * cquery, DeeModelIter * row)
761
g_return_val_if_fail(HUD_CLIENT_IS_QUERY(cquery), FALSE);
762
g_return_val_if_fail(row != NULL, FALSE);
764
return dee_model_get_bool(cquery->priv->results, row, HUD_QUERY_RESULTS_PARAMETERIZED);