Moo
mooproject.h
Go to the documentation of this file.
1 
4 
5 #ifndef __mooproject__
6 #define __mooproject__
7 
8 #include "mooplatform.h"
9 
10 class MooTrack;
11 
16 
17 //-----------------------------------------------------------------------------
19 {
20 public:
21  MooProject () {}
22  virtual ~MooProject () {}
23 
25  virtual mooUInt getID () = 0;
26 
28  virtual const mooChar* getName () = 0;
29 
31 
35  virtual MooTrack* getRootTrack () = 0;
36 
38 
42  virtual MooTrack* getUserFolder () = 0;
43 
47  virtual mooInt likeProject () = 0;
49  virtual mooInt getLikes () = 0;
51  virtual mooBool hasUserLiked () = 0;
52 
54  virtual mooInt getOwnerID () = 0;
55 
57 
65  virtual mooBool inviteFriend (mooUInt id) = 0;
66 
68  virtual mooUInt* getProjectMembers (mooInt& count) = 0;
69 
72  // '&' (replaced by '+'), '<' (replaced by '('), and '>' (replaced by ')')
74  virtual mooBool sendMessage (const mooChar* message, mooUInt memberId) = 0;
75 
81  virtual const mooChar* getMessage (mooUInt messageID) = 0;
82 };
83 
84 #endif
virtual mooInt getLikes()=0
get project likes
unsigned short mooChar
Definition: mooplatform.h:35
virtual MooTrack * getRootTrack()=0
get the root track.
virtual mooUInt * getProjectMembers(mooInt &count)=0
obtain a list of project member ids. See MooFriends for details.
__int64 mooInt
All signed ints are 64 bit wide.
Definition: mooplatform.h:41
virtual mooInt likeProject()=0
virtual mooBool hasUserLiked()=0
have we liked already? useful to display user like state
unsigned __int64 mooUInt
All unsigned ints are 64 bit wide.
Definition: mooplatform.h:50
bool mooBool
just a bool
Definition: mooplatform.h:63
virtual mooInt getOwnerID()=0
get owner ID
virtual mooBool sendMessage(const mooChar *message, mooUInt memberId)=0
fails if not logged in, the project member is not found etc.
A Moo Media Track
Definition: mootrack.h:19
virtual const mooChar * getMessage(mooUInt messageID)=0
virtual mooBool inviteFriend(mooUInt id)=0
invite a friend to the project
virtual MooTrack * getUserFolder()=0
get the current users&#39; folder track.
virtual mooUInt getID()=0
get a project&#39;s ID
A Moo Project
Definition: mooproject.h:18
virtual const mooChar * getName()=0
get the project&#39;s name