1BMessage(); 2-------------- 3case 1: default construction 4 5BMessage(uint32 what); 6-------------- 7case 1: what initialization 8 9BMessage(const BMessage &a_message); 10-------------- 11case 1: copy of default constructed 12 13~BMessage(); 14BMessage& operator=(const BMessage &msg); 15-------------- 16case 1: assignment of default constructed 17 18status_t GetInfo(type_code typeRequested, int32 which, char **name, 19 type_code *typeReturned, int32 *count = NULL) const; 20 21status_t GetInfo(const char *name, type_code *type, int32 *c = 0) const; 22status_t GetInfo(const char *name, type_code *type, bool *fixed_size) const; 23 24int32 CountNames(type_code type) const; 25bool IsEmpty() const; 26bool IsSystem() const; 27bool IsReply() const; 28void PrintToStream() const; 29 30status_t Rename(const char *old_entry, const char *new_entry); 31 32bool WasDelivered() const; 33bool IsSourceWaiting() const; 34bool IsSourceRemote() const; 35BMessenger ReturnAddress() const; 36const BMessage *Previous() const; 37bool WasDropped() const; 38BPoint DropPoint(BPoint *offset = NULL) const; 39 40status_t SendReply(uint32 command, BHandler *reply_to = NULL); 41status_t SendReply(BMessage *the_reply, BHandler *reply_to = NULL, 42 bigtime_t timeout = B_INFINITE_TIMEOUT); 43status_t SendReply(BMessage *the_reply, BMessenger reply_to, 44 bigtime_t timeout = B_INFINITE_TIMEOUT); 45 46status_t SendReply(uint32 command, BMessage *reply_to_reply); 47status_t SendReply(BMessage *the_reply, BMessage *reply_to_reply, 48 bigtime_t send_timeout = B_INFINITE_TIMEOUT, 49 bigtime_t reply_timeout = B_INFINITE_TIMEOUT); 50 51ssize_t FlattenedSize() const; 52status_t Flatten(char *buffer, ssize_t size) const; 53status_t Flatten(BDataIO *stream, ssize_t *size = NULL) const; 54status_t Unflatten(const char *flat_buffer); 55status_t Unflatten(BDataIO *stream); 56 57status_t AddSpecifier(const char *property); 58status_t AddSpecifier(const char *property, int32 index); 59status_t AddSpecifier(const char *property, int32 index, int32 range); 60status_t AddSpecifier(const char *property, const char *name); 61status_t AddSpecifier(const BMessage *specifier); 62status_t SetCurrentSpecifier(int32 index); 63status_t GetCurrentSpecifier(int32 *index, BMessage *specifier = NULL, 64 int32 *form = NULL, const char **property = NULL) const; 65bool HasSpecifiers() const; 66status_t PopSpecifier(); 67 68status_t AddInt32(const char *name, int32 val); 69status_t FindInt32(const char *name, int32 *value) const; 70status_t FindInt32(const char *name, int32 index, int32 *val) const; 71status_t ReplaceInt32(const char *name, int32 val); 72status_t ReplaceInt32(const char *name, int32 index, int32 val); 73bool HasInt32(const char *, int32 n = 0) const; 74int32 FindInt32(const char *, int32 n = 0) const; 75-------------- 76case: No item added. HasInt32() should return false; simple FindInt32() should 77 return 0; FindInt32() should return B_NAME_NOT_FOUND and set data param to 78 0; FindData() should return B_NAME_NOT_FOUND and set data param to NULL. 79 80case: Add single item. HasInt32() should return true; simple FindInt32() should 81 return added item; FindInt32() should return B_OK and set data param to 82 added item; FindData() should return B_OK and set data param to added item. 83 84case: Add single item. Replace item. HasInt32() should return true; simple 85 FindInt32() should return replacement; FindInt32() should return B_OK and 86 set data param to replacement; FindData() should return B_OK and set data 87 param to replacement. 88 89case: No item added. For index 1: HasInt32() should return false; simple 90 FindInt32() should return 0; FindInt32() should return B_NAME_NOT_FOUND 91 and set data param to 0; FindData() should return B_NAME_NOT_FOUND and 92 set data param to NULL. 93 94case: Add multiple items. For each index: HasInt32() should return true; simple 95 FindInt32() should return added item; FindInt32() should return B_OK and set 96 data param to added item; FindData() should return B_OK and set data param 97 to added item. 98 99case: Add multiple items. Replace item. For replaced index: HasInt32() should 100 return true; simple FindInt32() should return replacement; FindInt32() 101 should return B_OK and set data param to replacement; FindData() should 102 return B_OK and set data param to replacement. 103 104case: Add single item via generic AddData(). HasInt32() should return true; simple 105 FindInt32() should return added item; FindInt32() should return B_OK and set 106 data param to added item; FindData() should return B_OK and set data param to 107 added item. 108 109case: Add multiple items via generic AddData(). For each index: HasInt32() should 110 return true; simple FindInt32() should return added item; FindInt32() should 111 return B_OK and set data param to added item; FindData() should return B_OK 112 and set data param to added item. 113 114status_t AddRect(const char *name, BRect a_rect); 115status_t AddPoint(const char *name, BPoint a_point); 116status_t AddString(const char *name, const char *a_string); 117status_t AddString(const char *name, const BString& a_string); 118status_t AddInt8(const char *name, int8 val); 119status_t AddInt16(const char *name, int16 val); 120status_t AddInt64(const char *name, int64 val); 121status_t AddBool(const char *name, bool a_boolean); 122status_t AddFloat(const char *name, float a_float); 123status_t AddDouble(const char *name, double a_double); 124status_t AddPointer(const char *name, const void *ptr); 125status_t AddMessenger(const char *name, BMessenger messenger); 126status_t AddRef(const char *name, const entry_ref *ref); 127status_t AddMessage(const char *name, const BMessage *msg); 128status_t AddFlat(const char *name, BFlattenable *obj, int32 count = 1); 129status_t AddData(const char *name, type_code type, const void *data, 130 ssize_t numBytes, bool is_fixed_size = true, int32 count = 1); 131 132status_t RemoveData(const char *name, int32 index = 0); 133status_t RemoveName(const char *name); 134status_t MakeEmpty(); 135 136status_t FindRect(const char *name, BRect *rect) const; 137status_t FindRect(const char *name, int32 index, BRect *rect) const; 138status_t FindPoint(const char *name, BPoint *pt) const; 139status_t FindPoint(const char *name, int32 index, BPoint *pt) const; 140status_t FindString(const char *name, const char **str) const; 141status_t FindString(const char *name, int32 index, const char **str) const; 142status_t FindString(const char *name, BString *str) const; 143status_t FindString(const char *name, int32 index, BString *str) const; 144status_t FindInt8(const char *name, int8 *value) const; 145status_t FindInt8(const char *name, int32 index, int8 *val) const; 146status_t FindInt16(const char *name, int16 *value) const; 147status_t FindInt16(const char *name, int32 index, int16 *val) const; 148status_t FindInt64(const char *name, int64 *value) const; 149status_t FindInt64(const char *name, int32 index, int64 *val) const; 150status_t FindBool(const char *name, bool *value) const; 151status_t FindBool(const char *name, int32 index, bool *value) const; 152status_t FindFloat(const char *name, float *f) const; 153status_t FindFloat(const char *name, int32 index, float *f) const; 154status_t FindDouble(const char *name, double *d) const; 155status_t FindDouble(const char *name, int32 index, double *d) const; 156status_t FindPointer(const char *name, void **ptr) const; 157status_t FindPointer(const char *name, int32 index, void **ptr) const; 158status_t FindMessenger(const char *name, BMessenger *m) const; 159status_t FindMessenger(const char *name, int32 index, BMessenger *m) const; 160status_t FindRef(const char *name, entry_ref *ref) const; 161status_t FindRef(const char *name, int32 index, entry_ref *ref) const; 162status_t FindMessage(const char *name, BMessage *msg) const; 163status_t FindMessage(const char *name, int32 index, BMessage *msg) const; 164status_t FindFlat(const char *name, BFlattenable *obj) const; 165status_t FindFlat(const char *name, int32 index, BFlattenable *obj) const; 166status_t FindData(const char *name, type_code type, 167 const void **data, ssize_t *numBytes) const; 168status_t FindData(const char *name, type_code type, int32 index, 169 const void **data, ssize_t *numBytes) const; 170 171status_t ReplaceRect(const char *name, BRect a_rect); 172status_t ReplaceRect(const char *name, int32 index, BRect a_rect); 173status_t ReplacePoint(const char *name, BPoint a_point); 174status_t ReplacePoint(const char *name, int32 index, BPoint a_point); 175status_t ReplaceString(const char *name, const char *string); 176status_t ReplaceString(const char *name, int32 index, const char *string); 177status_t ReplaceString(const char *name, const BString& string); 178status_t ReplaceString(const char *name, int32 index, const BString& string); 179status_t ReplaceInt8(const char *name, int8 val); 180status_t ReplaceInt8(const char *name, int32 index, int8 val); 181status_t ReplaceInt16(const char *name, int16 val); 182status_t ReplaceInt16(const char *name, int32 index, int16 val); 183status_t ReplaceInt64(const char *name, int64 val); 184status_t ReplaceInt64(const char *name, int32 index, int64 val); 185status_t ReplaceBool(const char *name, bool a_bool); 186status_t ReplaceBool(const char *name, int32 index, bool a_bool); 187status_t ReplaceFloat(const char *name, float a_float); 188status_t ReplaceFloat(const char *name, int32 index, float a_float); 189status_t ReplaceDouble(const char *name, double a_double); 190status_t ReplaceDouble(const char *name, int32 index, double a_double); 191status_t ReplacePointer(const char *name, const void *ptr); 192status_t ReplacePointer(const char *name,int32 index,const void *ptr); 193status_t ReplaceMessenger(const char *name, BMessenger messenger); 194status_t ReplaceMessenger(const char *name, int32 index, BMessenger msngr); 195status_t ReplaceRef( const char *name,const entry_ref *ref); 196status_t ReplaceRef( const char *name, int32 index, const entry_ref *ref); 197status_t ReplaceMessage(const char *name, const BMessage *msg); 198status_t ReplaceMessage(const char *name, int32 index, const BMessage *msg); 199status_t ReplaceFlat(const char *name, BFlattenable *obj); 200status_t ReplaceFlat(const char *name, int32 index, BFlattenable *obj); 201status_t ReplaceData(const char *name, type_code type, 202 const void *data, ssize_t data_size); 203status_t ReplaceData(const char *name, type_code type, int32 index, 204 const void *data, ssize_t data_size); 205 206void *operator new(size_t size); 207void operator delete(void *ptr, size_t size); 208 209bool HasRect(const char *, int32 n = 0) const; 210bool HasPoint(const char *, int32 n = 0) const; 211bool HasString(const char *, int32 n = 0) const; 212bool HasInt8(const char *, int32 n = 0) const; 213bool HasInt16(const char *, int32 n = 0) const; 214bool HasInt64(const char *, int32 n = 0) const; 215bool HasBool(const char *, int32 n = 0) const; 216bool HasFloat(const char *, int32 n = 0) const; 217bool HasDouble(const char *, int32 n = 0) const; 218bool HasPointer(const char *, int32 n = 0) const; 219bool HasMessenger(const char *, int32 n = 0) const; 220bool HasRef(const char *, int32 n = 0) const; 221bool HasMessage(const char *, int32 n = 0) const; 222bool HasFlat(const char *, const BFlattenable *) const; 223bool HasFlat(const char *,int32 ,const BFlattenable *) const; 224bool HasData(const char *, type_code , int32 n = 0) const; 225BRect FindRect(const char *, int32 n = 0) const; 226BPoint FindPoint(const char *, int32 n = 0) const; 227const char *FindString(const char *, int32 n = 0) const; 228int8 FindInt8(const char *, int32 n = 0) const; 229int16 FindInt16(const char *, int32 n = 0) const; 230int64 FindInt64(const char *, int32 n = 0) const; 231bool FindBool(const char *, int32 n = 0) const; 232float FindFloat(const char *, int32 n = 0) const; 233double FindDouble(const char *, int32 n = 0) const; 234