McdOperation

## McdOperation McdOperation — Container class for holding missions |

## Stability Level

Unstable, unless otherwise indicated

## Synopsis

    #include <mcd-operation.h>

                        McdOperation;
    McdOperation*       mcd_operation_new                   (void);
    void                mcd_operation_take_mission          (McdOperation *operation,
                                                             McdMission *mission);
    void                mcd_operation_remove_mission        (McdOperation *operation,
                                                             McdMission *mission);
    void                mcd_operation_foreach               (McdOperation *operation,
                                                             GFunc func,
                                                             gpointer user_data);
    const GList*        mcd_operation_get_missions          (McdOperation *operation);

## Description

This is a simple container class that can hold a list of mission objects as children. McdOperation makes sure that object states (see: McdMission) of the container are all proxied to the children. Children life cycles also managed by this class and parent-child relationship is correctly established.

## Details

### McdOperation

    typedef struct {
        McdMission parent;
    } McdOperation;

### mcd_operation_new ()

    McdOperation*       mcd_operation_new                   (void);

Returns : |

### mcd_operation_take_mission ()

    void                mcd_operation_take_mission          (McdOperation *operation,
                                                             McdMission *mission);

`operation` : |
`mission` : |

### mcd_operation_remove_mission ()

    void                mcd_operation_remove_mission        (McdOperation *operation,
                                                             McdMission *mission);

`operation` : |
`mission` : |

### mcd_operation_foreach ()

    void                mcd_operation_foreach               (McdOperation *operation,
                                                             GFunc func,
                                                             gpointer user_data);

`operation` : |
`func` : |
`user_data` : |

### mcd_operation_get_missions ()

    const GList*        mcd_operation_get_missions          (McdOperation *operation);

`operation` : |
Returns : |