McpRequest

## McpRequest McpRequest — Request object, implemented by Mission Control |

## Synopsis

    #include <mission-control-plugins/mission-control-plugins.h>

                        McpRequest;
                        McpRequestIface;
                        McpRequestDelay;
    gboolean            mcp_request_find_request_by_type    (McpRequest *self,
                                                             guint start_from,
                                                             GQuark channel_type,
                                                             guint *ret_index,
                                                             GHashTable **ret_ref_requested_properties);
    const gchar *       mcp_request_get_account_path        (McpRequest *self);
    const gchar *       mcp_request_get_protocol            (McpRequest *self);
    const gchar *       mcp_request_get_cm_name             (McpRequest *self);
    gint64              mcp_request_get_user_action_time    (McpRequest *self);
    guint               mcp_request_get_n_requests          (McpRequest *self);
    GHashTable *        mcp_request_ref_nth_request         (McpRequest *self,
                                                             guint n);
    void                mcp_request_deny                    (McpRequest *self,
                                                             GQuark domain,
                                                             gint code,
                                                             const gchar *message);
    McpRequestDelay *   mcp_request_start_delay             (McpRequest *self);
    void                mcp_request_end_delay               (McpRequest *self,
                                                             McpRequestDelay *delay);

## Object Hierarchy

      GInterface
       +----McpRequest

## Prerequisites

McpRequest requires GObject.

## Description

## Details

### McpRequest

    typedef struct _McpRequest McpRequest;

### McpRequestIface

    typedef struct _McpRequestIface McpRequestIface;

### McpRequestDelay

    typedef struct _McpRequestDelay McpRequestDelay;

### mcp_request_find_request_by_type ()

    gboolean            mcp_request_find_request_by_type    (McpRequest *self,
                                                             guint start_from,
                                                             GQuark channel_type,
                                                             guint *ret_index,
                                                             GHashTable **ret_ref_requested_properties);

`self` : |
`start_from` : |
`channel_type` : |
`ret_index` : |
`ret_ref_requested_properties` : |
Returns : |

### mcp_request_get_account_path ()

    const gchar *       mcp_request_get_account_path        (McpRequest *self);

`self` : |
Returns : |

### mcp_request_get_protocol ()

    const gchar *       mcp_request_get_protocol            (McpRequest *self);

`self` : |
Returns : |

### mcp_request_get_cm_name ()

    const gchar *       mcp_request_get_cm_name             (McpRequest *self);

`self` : |
Returns : |

### mcp_request_get_user_action_time ()

    gint64              mcp_request_get_user_action_time    (McpRequest *self);

`self` : |
Returns : |

### mcp_request_get_n_requests ()

    guint               mcp_request_get_n_requests          (McpRequest *self);

`self` : |
Returns : |

### mcp_request_ref_nth_request ()

    GHashTable *        mcp_request_ref_nth_request         (McpRequest *self,
                                                             guint n);

`self` : |
`n` : |
Returns : |

### mcp_request_deny ()

    void                mcp_request_deny                    (McpRequest *self,
                                                             GQuark domain,
                                                             gint code,
                                                             const gchar *message);

`self` : |
`domain` : |
`code` : |
`message` : |

### mcp_request_start_delay ()

    McpRequestDelay *   mcp_request_start_delay             (McpRequest *self);

`self` : |
Returns : |

### mcp_request_end_delay ()

    void                mcp_request_end_delay               (McpRequest *self,
                                                             McpRequestDelay *delay);

`self` : |
`delay` : |

## See Also

McpRequestPolicy