libmissioncontrol-server Reference Manual | ||||
---|---|---|---|---|
#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);
GObject +----McdMission +----McdOperation +----McdConnection +----McdController +----McdManager +----McdProxy
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.
void mcd_operation_take_mission (McdOperation *operation, McdMission *mission);
operation : |
|
mission : |
void mcd_operation_remove_mission (McdOperation *operation, McdMission *mission);
operation : |
|
mission : |
void mcd_operation_foreach (McdOperation *operation, GFunc func, gpointer user_data);
operation : |
|
func : |
|
user_data : |
const GList* mcd_operation_get_missions (McdOperation *operation);
operation : |
|
Returns : |
"mission-removed"
signalvoid user_function (McdOperation *mcdoperation, GObject *arg1, gpointer user_data) : Run First
mcdoperation : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
"mission-taken"
signalvoid user_function (McdOperation *mcdoperation, GObject *arg1, gpointer user_data) : Run First
mcdoperation : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |