ArtMOO
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
G:/dev/qt/MOO/ServerCore/mooglobal.h
Go to the documentation of this file.
00001 #ifndef MOOGLOBAL_H
00002 #define MOOGLOBAL_H
00003 
00004 #include <QtGlobal>
00005 
00006 typedef qint32          ObjectId;
00007 typedef quint32         TaskId;
00008 typedef quint32         ConnectionId;
00009 
00010 #define OBJECT_NONE                     (-1)
00011 #define OBJECT_AMBIGUOUS        (-2)
00012 #define OBJECT_FAILED_MATCH     (-3)
00013 #define OBJECT_UNSPECIFIED      (-4)
00014 
00015 typedef enum mooError
00016 {
00017         E_NONE = 0,  // No error
00018         E_TYPE,      // Type mismatch
00019         E_DIV,       // Division by zero
00020         E_PERM,      // Permission denied
00021         E_PROPNF,    // Property not found
00022         E_VERBNF,    // Verb not found
00023         E_VARNF,     // Variable not found
00024         E_INVIND,    // Invalid indirection
00025         E_RECMOVE,   // Recursive move
00026         E_MAXREC,    // Too many verb calls
00027         E_RANGE,     // Range error
00028         E_ARGS,      // Incorrect number of arguments
00029         E_NACC,      // Move refused by destination
00030         E_INVARG,    // Invalid argument
00031         E_QUOTA,     // Resource limit exceeded
00032         E_FLOAT,     // Floating-point arithmetic error
00033         E_MEMORY         // Out of memory
00034 } mooError;
00035 
00036 #endif // MOOGLOBAL_H