Moo
moo.h
Go to the documentation of this file.
1 
4 
5 #ifndef __moo__
6 #define __moo__
7 
8 #include "mooplatform.h"
9 #include "moouser.h"
10 #include "mooprojects.h"
11 #include "moofriends.h"
12 
166 
173 //-----------------------------------------------------------------------------
174 class Moo
175 {
176 public:
177  Moo () {}
178  virtual ~Moo () {}
179 
182  virtual MooUser* getUser () = 0;
183 
186  virtual MooProjects* getProjects () = 0;
187 
190  virtual MooFriends* getFriends () = 0;
191 
194  virtual const mooChar* getMooRootPath () = 0;
195 
200  virtual mooBool setMooRootPath (mooChar* path) = 0;
201 
202  enum
203  {
204  kMooMaxStringLength = 80, // user name, password, search text, info
205  kMooMaxFriends = 1024, // max array entries MooFriend**
206  kMooMaxProjects = 1024 // max array entries MooProject**
207  };
208 
209  // TODO this must be private, server is coded in lib
210  virtual void config (const mooChar* server, int port) = 0;
211 };
212 
213 //-----------------------------------------------------------------------------
214 extern "C"
215 {
218 }
219 
220 #endif
unsigned short mooChar
Definition: mooplatform.h:35
virtual const mooChar * getMooRootPath()=0
virtual MooFriends * getFriends()=0
Container and management of MooProject
Definition: mooprojects.h:31
bool mooBool
just a bool
Definition: mooplatform.h:63
MOO_EXPORT Moo * createMoo()
Exported function. Create Moo instance.
virtual MooUser * getUser()=0
virtual MooProjects * getProjects()=0
Definition: moo.h:174
virtual mooBool setMooRootPath(mooChar *path)=0
MooFriend container and management
Definition: moofriends.h:32
the current application User
Definition: moouser.h:33
#define MOO_EXPORT
Prefix for exported symbols.
Definition: mooplatform.h:91