Moo
MooProject Class Referenceabstract

A Moo Project

More...

#include <mooproject.h>

Public Member Functions

virtual mooUInt getID ()=0
 get a project's ID
 
virtual const mooChargetName ()=0
 get the project's name
 
virtual MooTrackgetRootTrack ()=0
 get the root track. More...
 
virtual MooTrackgetUserFolder ()=0
 get the current users' folder track. More...
 
virtual mooInt likeProject ()=0
 
virtual mooInt getLikes ()=0
 get project likes
 
virtual mooBool hasUserLiked ()=0
 have we liked already? useful to display user like state
 
virtual mooInt getOwnerID ()=0
 get owner ID
 
virtual mooBool inviteFriend (mooUInt id)=0
 invite a friend to the project More...
 
virtual mooUIntgetProjectMembers (mooInt &count)=0
 obtain a list of project member ids. See MooFriends for details.
 
virtual mooBool sendMessage (const mooChar *message, mooUInt memberId)=0
 fails if not logged in, the project member is not found etc. More...
 
virtual const mooChargetMessage (mooUInt messageID)=0
 

Detailed Description

A Moo Project


MooProject

Member Function Documentation

◆ getMessage()

virtual const mooChar* MooProject::getMessage ( mooUInt  messageID)
pure virtual

retreive the latest messages. Messages have IDs; you will be informed by your MooProjects callback of incoming messages with an according project member and message ID. For example, in your callback void My::mooProjectsCallback (MooProjects* projectss, mooInt operation, mooInt result, mooInt id, void* reference) if (operation == MooProjects::kProjectMessage) lastMessage = mooProjects->getProject (id)->getMessage (result)); note that messge IDs are only valid during a session (between login and logout).

◆ getRootTrack()

virtual MooTrack* MooProject::getRootTrack ( )
pure virtual

get the root track.

the root is a container for folder tracks, one for each member of the project. then for each folder you may obtain a list of its media tracks. see MooTrack to learn more about tracks and clips.

◆ getUserFolder()

virtual MooTrack* MooProject::getUserFolder ( )
pure virtual

get the current users' folder track.

The current user folder track is the only object of a MooProject that can be changed, all other tracks are read only. Project information can only be changed by the project owner (the one who created the project in the first place).

◆ inviteFriend()

virtual mooBool MooProject::inviteFriend ( mooUInt  id)
pure virtual

invite a friend to the project

the project must be opened and the friend has to be a confirmed friend. This is a synchronous operation. Only the project owner can invite his friends to the project. note that once a friend has been invited to a project, he or she can not be removed from the project. The user will get assigned a folder in the project and is free to add tracks and clips there. All contributions are stored in the project owner space. This also means that if the project owners' cloud space exhausts, sync projecect may fail for any project member. Project changes will always be distributed nevertheless, but media files may fail to upload in such cases.

◆ likeProject()

virtual mooInt MooProject::likeProject ( )
pure virtual

like, or unlike a project, returns number of likes for this friend if you like but you liked already, the project is unliked (like is toggled). note: only projects of friends can be liked or unliked.

◆ sendMessage()

virtual mooBool MooProject::sendMessage ( const mooChar message,
mooUInt  memberId 
)
pure virtual

fails if not logged in, the project member is not found etc.

send a message. Messages must not exceed 80 characters. You should avoid the following characters, as those will be replaced:


The documentation for this class was generated from the following file: