Introducing Message4. The changes to the related sources are ifdefed with USING_MESSAGE4 which is defined in Message4.h. To use Message4 the Message4.cpp, Message4.h, MessageUtils4.cpp, MessageUtils4.h and MessagePrivate4.h have to be linked to their counterparts without 4 suffix. Then MessageBody.cpp and MessageField.cpp have to be commented out in the app kit Jamfile and r5_message.cpp has to be added. There remain some bugs to be found. Feel free to change that.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14882 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -42,6 +42,10 @@
|
||||
#include <PortLink.h>
|
||||
#include <ServerProtocol.h>
|
||||
|
||||
#ifdef USING_MESSAGE4
|
||||
#include <MessagePrivate.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
@@ -1261,7 +1265,11 @@ BView::DragMessage(BMessage *message, BRect dragRect, BHandler *replyTo)
|
||||
message->AddInt32("buttons", buttons);
|
||||
}
|
||||
|
||||
#ifndef USING_MESSAGE4
|
||||
_set_message_reply_(message, BMessenger(replyTo, replyTo->Looper()));
|
||||
#else
|
||||
BMessage::Private(message).SetReply(BMessenger(replyTo, replyTo->Looper()));
|
||||
#endif
|
||||
|
||||
int32 bufferSize = message->FlattenedSize();
|
||||
char *buffer = new char[bufferSize];
|
||||
@@ -1314,7 +1322,11 @@ BView::DragMessage(BMessage *message, BBitmap *image,
|
||||
message->AddInt32("buttons", buttons);
|
||||
}
|
||||
|
||||
#ifndef USING_MESSAGE4
|
||||
_set_message_reply_(message, BMessenger(replyTo, replyTo->Looper()));
|
||||
#else
|
||||
BMessage::Private(message).SetReply(BMessenger(replyTo, replyTo->Looper()));
|
||||
#endif
|
||||
|
||||
int32 bufferSize = message->FlattenedSize();
|
||||
char *buffer = new char[bufferSize];
|
||||
|
||||
Reference in New Issue
Block a user