Moo
moofriends.h File Reference
#include "mooplatform.h"
#include "moofriend.h"

Go to the source code of this file.

Classes

class  MooFriends
 

MooFriend container and management

More...
 

Typedefs

typedef void(* mooFriendsCallback) (MooFriends *friends, mooInt operation, mooInt result, mooInt id, void *reference)
 

Detailed Description


Typedef Documentation

◆ mooFriendsCallback

typedef void(* mooFriendsCallback) (MooFriends *friends, mooInt operation, mooInt result, mooInt id, void *reference)

callback function most Moo functions are asynchronous and will not return a result immediately. instead, a callback method that you provide will be invoked once an action has completed this callback is invoked in the user thread. you should check if the action was successful and eventually take action depending on the result. the reference parameter passed to MooUser::setCallback is passed to the callback for your own use, Moo does not touch this. see setCallback () for operation and error codes the /id parameter can be zero which means that you should parse the entire list for changes. Otherwise, if id is > 0, changes only apply to the according friend In case of operation beeing kFriendMessage, result holds the message ID (see MooFriend::getMessage ())