Adi Oanca
27c5631fa3
Added support for sending BRegions
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-22 09:48:10 +00:00
DarkWyrm
4e51dee8d0
don't prevent ReadyToRun from being called when running without the registrar
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10877 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-19 15:35:49 +00:00
Ingo Weinhold
289adc045d
Changed due to moving RegistrarDefs.h stuff into the BPrivate namespace and replacing kRosterPortName.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-18 01:11:39 +00:00
Ingo Weinhold
0ffb21a672
* Moved everything into the BPrivate namespace.
...
* Replaced the constant kRosterPortName by a function returning that name
(we need different port names under BeOS and Haiku, and already at
libbe init time).
* The settings directory is obtained via find_directory() (critized by
Axel :-).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10812 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-18 01:06:30 +00:00
Ingo Weinhold
9171d496e2
Added function is_running_on_haiku(), which returns at runtime whether we're running under Haiku.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10783 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-17 01:20:22 +00:00
Ingo Weinhold
2d36bfd683
* Added support for the DEBUG_PRINTF macro.
...
* More debugging output in error cases.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-15 21:49:12 +00:00
Ingo Weinhold
26afdd622e
* Added more debug output.
...
* In handle_reply(), in case the port message code is not as expected,
don't return B_OK and let the caller proceed with an uninitialized
BMessage, but return an error.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-15 21:47:41 +00:00
Ingo Weinhold
bcab07add0
* More sophisticated debug output macro.
...
* Fixed BLooper::ReadMessageFromPort(). If ReadRawFromPort() failed,
there was nevertheless a message created and dispatched.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-15 00:28:58 +00:00
Ingo Weinhold
77cbf881fc
* Got rid of the BClipboard::fCount. It was modified, but never read.
...
Renamed fSystemCount to fCount.
* be_clipboard is now initialized by init_clipboard().
* Documented at least {Local,System}Count(), since their meaning wasn't
very obvious to me (neither helped the BeBook description).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-13 00:54:00 +00:00
Ingo Weinhold
5fa518561e
Use new init_clipboard() function which initializes the global be_clipboard at libbe init time.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10705 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-13 00:50:26 +00:00
Ingo Weinhold
51634653c6
* Fixed BMessageBody::GetInfo(): Indexed based iteration was broken for
...
two different reasons.
* Fixed BMessageBody::FindData() in case of type B_ANY_TYPE, which should
match any matchingly-named field.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-12 03:25:48 +00:00
Ingo Weinhold
c9f9a6b20d
* fReplyTo.target (the handler token) is internally checked even, if the
...
preferred handler is addressed. So make sure, it has a usable value in
this case, otherwise ReturnAddress() usually won't work.
* If the message to be read from the port is bigger than the on-stack
buffer, the chunk of memory to be allocated on the heap has to be the
size of the message, not the size of the on-stack buffer. This caused
all kind of nasty, hard-trackable problems.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-12 03:20:15 +00:00
Ingo Weinhold
c5c962d426
Enhanced debugging output to print also the thread ID.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-12 03:13:52 +00:00
Stefano Ceccherini
86832512bb
Now includes MenuWindow.h instead of duplicating the declaration
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:04:28 +00:00
Stefano Ceccherini
ca8ed92280
Moved gPrivateScreen into the BPrivate namespace. Small cleanups to Application.cpp. Refined some comments. Used strdup() instead of new because it`s nicer for strings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-21 10:44:31 +00:00
Axel Dörfler
e372dc78c8
Added handling of B_QUIT_REQUESTED messages, even if it might not be complete.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-21 01:32:55 +00:00
Axel Dörfler
c18d84297a
Grouped all constructors together.
...
Moved InitData() to be close to the constructors.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 13:04:16 +00:00
Axel Dörfler
72f5d8600c
Moved the quit window code into window_quit_loop() which is now called by
...
quit_all_windows(). I've also implemented the file panel quit mechanism,
but I'm not sure it's correctly done yet.
The BApplication destructor now locks the looper. Added commented out
deletion of fServerTo port and a ToDo comment if this should be done.
Run() no longer checks fMsgPort somewhere, but fInitError at the beginning;
if a missing fMsgPort doesn't set this, I guess InitData() is broken (or
better, BRoster::Private::CompleteRegistration() is). It now also deletes
any fPulseRunner (could be moved to ~BApplication, though).
QuitRequested() now correctly calls quit_all_windows().
Added a question to Quit() about the usefulness of special casing calling
the function from another thread.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 12:57:00 +00:00
Axel Dörfler
af34fbf1c5
Moved the unmaintainable list of initializers for the different constructors
...
to InitData(). Also fixed the initial value of fPulseRate (was 500000 but
according to the BeBook, it should have been 0).
Implemented SetPulseRate() (untested, but should be okay).
Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 11:09:56 +00:00
Axel Dörfler
beabca50a7
Collision with our style guide.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 10:30:50 +00:00
Axel Dörfler
bae6988e7d
Fixed some bugs and added some missing functionality:
...
- DispatchMessage() would swallow all handled messages, no matter if they were
intended for this handler.
- B_REFS_RECEIVED does now maintain the recent folder/document lists.
- Now calls Pulse() when a B_PULSE is received.
- No longer calls ReadyToRun() more than once, no matter how many B_READY_TO_RUN
are sent to the app.
- Added B_APP_ACTIVATED to the yet unhandled messages; furthermore, the known
unhandled messages now dump themselves to stdout.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-20 10:04:28 +00:00
Stefano Ceccherini
f19d9d3b36
Moved functionality of do_argv() into a new static helper function called fill_argv_message(). Now do_argv() handles the B_ARGV_RECEIVED message (incidentally, thats almost how it
s done in beos). That made DispatchMessage() a bit cleaner.Added some comments. B_PATH_NAME_LENGTH + 1 --> B_PATH_NAME_LENGTH.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 11:18:42 +00:00
Stefano Ceccherini
bd6c26014a
Now it calls ScriptReceived if it receives a scripting message in MessageReceived(). Falls back to BLooper::MessageReceived() in case something goes wrong (just to be safe).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 23:29:03 +00:00
Stefano Ceccherini
833a592226
Added B_SILENT_RELAUNCH handler. Expanded a comment.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 10:59:35 +00:00
Stefano Ceccherini
b1ce1640cd
Renamed gApplicationPropInfo to sPropertyInfo and made it static.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 10:15:11 +00:00
Stefano Ceccherini
a8fc5954c0
Implemented get_window_list(), and used it in count_windows() and window_at(). That simplified the code a lot. Removed some unused headers.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 10:12:59 +00:00
DarkWyrm
41f6b937f7
Submission of Stefano's BApplication patch - archiving support
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-09 22:54:46 +00:00
ejakowatz
cc17162615
Added clarifying comments and a bit more error checking
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-02 21:36:27 +00:00
DarkWyrm
c2f63fb50d
Moved functionality of PortLink into LinkMsg* to avoid serious code duplication in the app_server
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 01:20:30 +00:00
DarkWyrm
a3bd1e1ca5
Added class for requesting shared client-server memory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-09 18:13:33 +00:00
ejakowatz
059b143a70
The fWasDelivered member was never getting initialized, so replying to
...
messages which did not explicitely request a reply would fail. The member
is now initialized if an unflattened message has the MSG_FLAG_INCL_REPLY
flag set.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9193 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-05 06:56:41 +00:00
ejakowatz
5958205f6c
Fixed bug. There was an issue with unflattening. When moving dataPtr along the buffer to the next variable-size item, the padding was being incorrectly calculated (too large) because the four-byte size header was not being taken into account. E.g., for an 18-byte item, the padding was calculated as 6 bytes, rather than two, placing dataPtr directly past the size header for the next item. An incorrect value would be used as the size for the next item, which could result in anything from a segment violation to an allocation failure.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:33:31 +00:00
ejakowatz
974d454507
Fixed bug. BMessageBody's assignment operator was making a generic copy of the map which maintains the data -- meaning only pointers to contained BMessageFields were being copied. Added Clone() operation to BMessageField and Copy() to BMessageFieldStoragePolicy, along with a specialization of BMessageFieldStoragePolicy for BDataBuffer; a straight copy of the vector is sufficient for all other data types. This fixes issues with BMessage unittests where BMessage, entry_ref, BFlattenable, and raw data are exercises.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8890 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:25:09 +00:00
ejakowatz
02043d35db
Added calc_padding() convenience function for calculating how much padding to add to a buffer in order for it to fall on a specified byte boundary.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8889 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-07 23:06:32 +00:00
Ingo Weinhold
044be4e258
Introduced a new build flag and macro RUN_WITHOUT_APP_SERVER, to allow
...
several things to work without a running app server (the Storage Kit to
begin with).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-28 20:18:31 +00:00
ejakowatz
b9c2cb3cd1
BMessage now sends B_NO_REPLY on destruction if no reply has been sent.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-25 04:14:30 +00:00
ejakowatz
68247322bf
Squished another possible memory leak.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-24 23:59:33 +00:00
ejakowatz
72a804515c
Fixed a couple of memory leaks and an incorrect index bounds check.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8635 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-24 23:54:02 +00:00
DarkWyrm
bceb8166d4
Added a function to the BPortLink debugging code
...
Made a couple of style tweaks to BApplication::connect_to_app_server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8620 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-22 00:22:51 +00:00
DarkWyrm
38e110b124
Client-server messaging fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-08 22:35:25 +00:00
DarkWyrm
3ceb31b96a
Pahtz's changes from PortLink/BSession/PortMessage/PortQueue to BPortLink
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8519 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-30 15:15:27 +00:00
Stefano Ceccherini
5dccfc1921
Some small changes (mostly suggested by Axel). Added more ToDO items, changed some comments, added some more (unhandled yet) message codes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-29 06:49:17 +00:00
Stefano Ceccherini
6cd5d5b1f1
Implemented AppResources() "by the book" (not tested), InitialWorkspace(), researched and implemented a TODO item, some small cleanups.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-27 06:26:07 +00:00
DarkWyrm
9a663361f2
Added a NULL pointer check. Eliminates a way to crash the app_server in just two keystrokes. :P
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-02 22:02:19 +00:00
Axel Dörfler
576416d2d7
Fixed a warning about the uninitialized use of variable team.
...
Added a ToDo item because gcc is right and itemSize may be used uninitialized;
someone with a better understanding of this code should fix it.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-29 19:44:26 +00:00
Axel Dörfler
2410a823c6
Fixed some warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8232 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-29 19:42:45 +00:00
Stefano Ceccherini
359aeca0f5
Should use private interface headers
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 08:19:30 +00:00
Stefano Ceccherini
6542ca9b70
Added gPrivateScreen declaration
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 08:14:57 +00:00
Axel Dörfler
1787eef9f9
Added B_I_BEAM_CURSOR and B_HAND_CURSOR in new file AppDefs.cpp.
...
B_CURSOR_SYSTEM_DEFAULT and B_CURSOR_I_BEAM are now initialized in BApplication::InitData().
Added a todo note about how to save the app server communication to get those initialized.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8201 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 22:26:11 +00:00
Axel Dörfler
917cf3f748
Constructor no longer crashes when data == NULL.
...
Now exports B_CURSOR_SYSTEM_DEFAULT and B_CURSOR_I_BEAM - maybe they should
be part of AppDefs.cpp, though.
Style update.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8200 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 22:23:29 +00:00
Axel Dörfler
14c2eb06d3
Applied our coding style. Theoretically improved return values.
...
Data() now enters the debugger as well if called in unlocked state.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8191 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 19:49:16 +00:00
Axel Dörfler
ef42360872
Added be_clipboard global variable (not initialized yet anywhere, though).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8190 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 19:28:33 +00:00
DarkWyrm
768ec791c9
Plugged a memory leak (thanks Matthijs!)
...
Removed the use of malloc() -- deprecated
Deprecated PortLink::FlushToSession()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-11 13:38:08 +00:00
DarkWyrm
86469b8c91
Added header
...
Code readability improvements
Removed SetMsgCode()
Documented class
Added some minor error-handling
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-11 12:57:13 +00:00
DarkWyrm
76441bab6e
Add header
...
Minor tweaks to BClipboard
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7587 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-15 16:23:58 +00:00
Stefano Ceccherini
f6dc8f8d6b
Hm, how come I removed that ?
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-06 08:40:08 +00:00
Stefano Ceccherini
fcb11fb123
Added a TODO reminder
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7168 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-06 08:12:18 +00:00
Axel Dörfler
3339a96ba6
Fixed ReadFromRawPort(); it was severly broken (the missing B_RELATIVE_TIMEOUT
...
flag was reported by Bill Hayden).
I fixed only this method, and nothing else, but please have a look at how
I did it, and apply the same fixes, thanks!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-05 01:49:48 +00:00
Axel Dörfler
3905fad39d
Added a ToDo comment about the missing reply sending on destruction (as reported by Ingo).
...
You don't have to check against NULL when deleting an object.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6674 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-22 16:38:24 +00:00
DarkWyrm
1e620294dd
Reintegrated Bill Hayden's removal of malloc.h. Stupid me. :/
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6596 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-15 17:44:55 +00:00
DarkWyrm
539232f28e
Removed a warning
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-12 01:22:01 +00:00
Axel Dörfler
b7d3f36edc
"Fixed" the write_port_etc() call: it used a hardcoded 8 instead of B_RELATIVE_TIMEOUT (ts ts ts).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-23 01:12:51 +00:00
haydentech
eca8c2bc73
malloc.h is obsolete, use stdlib.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-22 22:08:56 +00:00
DarkWyrm
75d4185679
Removed a crash because of a call to get_menu_info in init_interface_kit()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-17 17:28:08 +00:00
Adi Oanca
dc3ebdec6c
fixed the problems Ingo pointed out
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-17 16:35:00 +00:00
Ingo Weinhold
36aeb57dce
* Doh! Signatures are case insensitive.
...
* Removed the definition of RUN_WITHOUT_REGISTRAR. This can be triggered
by an environment variable now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:30:08 +00:00
Adi Oanca
3638a5ea21
just a simple variable set to true....
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6047 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:17:53 +00:00
Adi Oanca
f28a6f704b
It know asks and waits for all loopers to quit
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:16:42 +00:00
Adi Oanca
71a3d0e5f5
modified some methods to return 'void'
...
rendered BSession operationable, again...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:03:18 +00:00
Adi Oanca
b0591ec204
added an new method to be able to port message sto a BSession handler
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6042 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-13 00:00:59 +00:00
haydentech
f742072808
gcc 3 fix (no default args in implementation)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-30 22:52:34 +00:00
Stefano Ceccherini
53b9eef827
Implemented AboutRequested(), reorganized a bit the connection to app server, added a call to _init_interface_kit_()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5712 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-19 07:19:14 +00:00
DarkWyrm
2e4c9e2113
Attachment data bugfixes related to fDataSize
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-14 00:22:30 +00:00
ejakowatz
b07c31a73f
Finished up some scripting-related items.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5080 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-18 04:55:28 +00:00
DarkWyrm
83f9647173
Updates to sync with (hopefully) final tweaks to messaging protocols
...
Implemented BSession::DropInputBuffer with code from Adi
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5013 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-13 23:34:12 +00:00
DarkWyrm
45799af7b5
Tweaked all messaging classes to comply with new message protocol policies
...
AppServerLink no longer inherits from BSession
Modified client files which talk to the server to sync with changes in messaging classes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 19:08:06 +00:00
DarkWyrm
591d280e6c
Added PortMessage::ReadString and PortLink::AttachString to support BSession-style string attachments
...
Tweaks to startup code for BApplication
Tweaked PortQueue to utilize the BSession workaround for PortMessages
Tweaks to message protocol for BCursor
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-04 00:55:53 +00:00
DarkWyrm
8123b61c01
Eliminated a memory allocation bug
...
Added a sensible workaround for BSession message code packaging
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-03 23:28:46 +00:00
DarkWyrm
b8b711a00d
BSession no longer a parent class
...
Removed deprecated reply functions
Global protocol change - reply port attached last, not first
Still uses BSession-style messaging (msg code attached to buffer followed by attachement data)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-03 22:23:17 +00:00
DarkWyrm
582e2dddd5
Conversion to BSession messaging
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4931 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-03 00:37:56 +00:00
DarkWyrm
5e69d02601
Moved BSession messaging code to ServerProtocol.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4930 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-03 00:02:19 +00:00
DarkWyrm
594cf26a76
Conversion over to BSession API
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-02 01:01:45 +00:00
DarkWyrm
2dd8584cff
Implemented some functions referenced elsewhere to remove linker errors
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-01 23:43:48 +00:00
DarkWyrm
1e56330f9a
Updated constructor to use newer replay API
...
Tweaked messaging so that things should work properly now
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4735 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-17 18:36:14 +00:00
shatty
1cfc49614f
fixed BMessage::Flatten(x) so that it does not crash
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-16 03:45:51 +00:00
haydentech
5c85a290e1
Minor cleanup
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-04 20:01:17 +00:00
DarkWyrm
0bc9048607
Added BSession to build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-31 18:53:05 +00:00
Adi Oanca
2eaa0ee692
New communication class that will be used by app_server - BWindow/BView ... later, maybe by every class!
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4429 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-31 17:32:04 +00:00
Adi Oanca
ae1338ef78
New PortLink implementation based on BSession
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4428 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-31 17:30:24 +00:00
ejakowatz
0784fd8bde
Fixed bugs in (un)flattening code.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-29 22:32:22 +00:00
Ingo Weinhold
66abd4d0a6
Fixed a few warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 21:36:38 +00:00
Ingo Weinhold
9f01bd9197
send_message(): B_ANY_TOKEN -> B_PREFERRED_TOKEN. That's the right one.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 15:29:11 +00:00
Ingo Weinhold
d4d9f7015a
flatten_hdr() checks the reply handler token for B_NULL_TOKEN, so it's not wise to use exactly that one as dummy for sending synchronous messages.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 15:07:06 +00:00
ejakowatz
0ab25acded
Fixed bug with fBody not being properly initialized on construction.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-26 04:47:51 +00:00
ejakowatz
e9e500cb9e
Minor tweak to BHandler::UnlockLooper()
...
Added calls to _init_message_(), _delete_message_(), and
_msg_cache_cleanup() to InitTerminateLibBe.cpp
Finished first implementation of BMessage::SendReply(), BMessage::_send_(),
and BMessage::_send_message()
Add BMessage to app.src, removed BBlockCache from support.src.
New BMessage::Private class has functions for twiddling BMessage internals
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-25 07:55:52 +00:00
shadow303
17e6de7a37
gcc 3 fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4227 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-04 00:46:53 +00:00
DarkWyrm
c3ba6ec990
Checking in a wild pointer fix which I *swear* was already checked in
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-29 04:05:55 +00:00
DarkWyrm
297ffbbb1a
Removed memory leak in InitData
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-24 19:54:43 +00:00
shadow303
78cc8d1a5a
Fix templates for PortMessage & PortLink.
...
Update BApplication for changes to PortLink
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-11 23:15:23 +00:00
haydentech
36535a1728
Fix use of uninitialized variable
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-11 22:08:17 +00:00
shadow303
d1acc68a9d
Templatize PortLink & PortMessage
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-11 01:49:58 +00:00
DarkWyrm
e76917c658
Added Read(int64*)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 20:13:23 +00:00
DarkWyrm
2a4311aea6
Added Read(bool*)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 17:41:44 +00:00
DarkWyrm
faa6a27319
Simplfied AppServerLink interface
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3933 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-10 16:56:27 +00:00
DarkWyrm
c73b41b97f
Build fix
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3920 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-09 18:46:04 +00:00
Marc Flerackers
19225ae191
A new BInvoker implementation. The InvokeNotify is now implemented as it should.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-07 07:58:14 +00:00
shadow303
3bc6d6c59a
gcc 3 fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3845 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-04 21:10:14 +00:00
haydentech
99966f7887
Namespace/gcc3 fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-26 15:39:32 +00:00
DarkWyrm
6b76dd01f5
Can get replies as PortMessages now
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 13:18:39 +00:00
shadow303
c27b0019d6
gcc3 cleanup & fix stupid mistake
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3617 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-23 02:48:28 +00:00
DarkWyrm
21099b6971
Separated PortQueue and PortMessage into separate files.
...
Added read methods to PortMessage
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3594 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-22 17:17:40 +00:00
Ingo Weinhold
37faaaded5
Made the (BHandler*, BLooper*,) constructor more robust. Now the looper list is locked and the looper checked for validity.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3581 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-20 00:18:56 +00:00
haydentech
2e9a7f0c99
Fix unintended code path when debug macros are turned off
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-11 14:29:46 +00:00
DarkWyrm
14f0c2cfa2
Removed a minor bug from the InitData server communication code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-09 12:36:56 +00:00
Ingo Weinhold
d37e75d958
If our incomplete BMessage (missing sending of messages) is linked into libopenbeos, anything involving the registrar blocks on library initialization (more precisely anything linked against libopenbeos and started while the registrar is running).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-07 17:38:32 +00:00
ejakowatz
0cc48ce6f9
Unit tests to ensure robust handling of bogus params to convenience funcs
...
plus fixes for the bugs they exposes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 23:22:08 +00:00
ejakowatz
df1b8782c7
Fixes for bugs in BFlattenable convenience functions (revealed by the new
...
unit tests).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-03 04:38:17 +00:00
ejakowatz
67833f26bc
Fixed adding pointers. BMessage::AddPointer() was specifying const void*
...
as the template param (where everything else was using void*) and
BMessage::AddData() was adding the pointer to the pointer as the data.
Unit tests save the day again!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-29 06:28:28 +00:00
ejakowatz
80e966963f
Little tweaks and fixes too numerous to count, but mostly involved with
...
adding entry_refs and BMessages. Lots of stuff for specifiers and also for
sending replies (with thanks to Mike Nordell).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-23 23:13:02 +00:00
haydentech
30fd51473f
Minor header-related changes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-14 17:21:46 +00:00
haydentech
cf8525ee3c
Default args allowed only in header (not implementation) with gcc 3.X
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-14 15:23:06 +00:00
Ingo Weinhold
1847fb9c71
Always save before checking in. UpdateActiveApp() comment has been changed slightly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3054 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-05 17:16:30 +00:00
Ingo Weinhold
c99847b4cd
Unimplemented ActivateApp(); it has to ask the app server instead. Moved its code to UpdateActiveApp(), which has exactly the matching semantics. :-)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3053 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-05 17:15:13 +00:00
DarkWyrm
0f434a0aad
The mother of all commits. :P
...
Unremoved zlib and added libpng to public libs (C'mon DW, make up your mind... ;^)
Added screenshot support to app_server
Added full keyboard message support to app_server
Added UseLibraryHeaders and LibraryHeaders rules to jamrules
Updated ColorUtils to convert uint32 colors to rgb_colors
BAppServerLink now autolocks client-server communications on the client side (as it should)
app_server now also juliennes and makes french fries. Yum.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3045 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-30 00:17:50 +00:00
DarkWyrm
fec61feeb8
Initial checkin of PortQueue class
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-25 01:16:34 +00:00
DarkWyrm
dc4e96ca20
Removed bug which caused goofy app signature names in app_server
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3003 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-23 19:36:04 +00:00
DarkWyrm
610785086b
Filled in AppServerLink
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-23 18:51:49 +00:00
DarkWyrm
f9439a60dc
Initial checkin of AreaLink
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 15:19:37 +00:00
DarkWyrm
c328988230
Effectively made Attach(*,size) a const function
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-21 13:09:22 +00:00
ejakowatz
74d9216544
New tests for Add/Find/Replace/HasRef, and tweak in MessageTest.cpp to use
...
it. Also, minor fix in entry_ref handling in BMessage::AddData().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-20 06:02:27 +00:00
ejakowatz
e60c601e2d
Tweaks to make the tests work correctly and properly scope a BMessage
...
function.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-20 05:37:07 +00:00
ejakowatz
9895f0ea8a
Some clean up and tweaks to the specifier handling code, plus the
...
beginnings of SendReply() functionality.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 08:01:59 +00:00
ejakowatz
2be975a1ee
_get_object_token_ has found its permanent home in AppMisc.h, which the
...
other files were modified to include.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 08:00:50 +00:00
ejakowatz
b1055b4c2d
This is all the code for the backing store for BMessage (BMessageBody &
...
BMessageField) for the "template madness" version. Also included is
BDataBuffer which is a little reference counting raw data container.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 07:58:17 +00:00
ejakowatz
9abaf1dfa7
Resolved conflict. DarkWyrm tweaked the old version (which I had #if 0'd
...
out all over the place). There is now a giant
#ifdef USING_TEMPLATE_MADNESS
separating the two versions. At some point, the common code should be
reconciled.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 05:02:31 +00:00
DarkWyrm
c503a7bc9c
Added BHandler tokens to app_server communications setup
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 01:11:24 +00:00
DarkWyrm
e26cbbcf17
Implemented _get_object_token_ to allow app_server to receive BHandler tokens
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-19 00:59:20 +00:00
DarkWyrm
53ea435d7b
Multiple fixes and added to build. Not yet complete, but close
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2925 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-16 21:43:28 +00:00
DarkWyrm
71c040584c
FlushWithReply(ReplyData *) checks for non-NULL buffers - eliminates a memory leak
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 18:01:55 +00:00
DarkWyrm
ca34e8a04c
Added startup code to talk to app_server
...
We can now run simple applications with app_server!!
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2900 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 17:17:17 +00:00
DarkWyrm
c51942ea6e
Removed fixed attachment limit
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2870 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-06 22:24:45 +00:00
DarkWyrm
364bb57e76
Updated sources to reflect changes in <ServerProtocol.h>
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-24 15:44:37 +00:00
DarkWyrm
16d1f45f81
Implemented IsCursorHidden
...
Removed PortLink usage where unnecessary
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-23 21:31:58 +00:00
Ingo Weinhold
de1a825ec8
Added missing file AppServerLink.cpp.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2710 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 23:13:31 +00:00
Ingo Weinhold
4b883396bd
Fixed warning.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-11 18:18:29 +00:00
Ingo Weinhold
2ed834e3f6
Cleaned up BRoster's friends mess. All access to private BRoster functionality is now done through the newly added BRoster::Private class, which is BRoster's only friend (poor BRoster ;-).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-08 23:29:21 +00:00
Ingo Weinhold
83969b9581
B_PATH_NAME_LENGTH + 1 -> B_PATH_NAME_LENGTH.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-04 23:47:30 +00:00
DarkWyrm
fe517480c3
More testing and fixes. Removed an attachment bug.
...
Port capacity checking a compile-time option.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-20 00:17:22 +00:00
DarkWyrm
51c9c2f980
Added new FlushWithReply method and some error checking. Mostly tested.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-19 00:30:49 +00:00
shadow303
18d65fb5c0
Include ServerProtocol.h instead of using #define SET_CURSOR_BCURSOR
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1905 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-11 22:03:35 +00:00
DarkWyrm
7c7ee64a50
Partially implemented SetCursor
...
Completely implemented ShowCursor, HideCursor, ObscureCursor
Documented necessary steps for connect_to_app_server
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 22:22:22 +00:00
shadow303
af554d2ae4
Add Clipboard to build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1892 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 21:17:23 +00:00
shadow303
bcb5296173
Minor bug fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1891 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 21:16:58 +00:00
Tyler Dauwalder
1bde02ae7b
Fleshed out any missing pieces of BRoster::
...
- ClearRecent{Docs,Folders,Apps}
- AddToRecentApps()
- {Load,Save}RecentLists()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-08 08:36:08 +00:00
DarkWyrm
e4840f5bd2
Checkin for Gabe Yoder
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-02 23:33:33 +00:00
Tyler Dauwalder
44db8a0885
+ Added {Get,Add,Clear}Recent{Apps,Documents,Folders} framework
...
+ Fleshed out {Get,Add}RecentApps calls
+ Updated argument names for GetRecent{Documents,Folders} to
versions used in R5 release notes in the Be Book.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-27 07:46:32 +00:00
ejakowatz
259a6f747a
Proxy for the connection to app_server; just a skeleton at this point.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1637 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-25 01:10:10 +00:00
DarkWyrm
b010ca6720
Checkin for Gabe Yoder
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 00:08:45 +00:00
Ingo Weinhold
edb7407e80
Implemented {Start,Stop}Watching().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-18 14:04:40 +00:00
Ingo Weinhold
8c7ccd0bda
Implemented BRoster::Broadcast().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-15 22:30:53 +00:00
Ingo Weinhold
05d576c2e8
Added/fixed some doxygen comments.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-14 21:05:02 +00:00
Ingo Weinhold
6f1a85effd
Implemented BMessageRunner class.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-12 22:41:13 +00:00
Ingo Weinhold
121f83dd58
Moved the miscellaneous app kit functions into the BPrivate namespace and added the function current_team() which returns the ID of the current team.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-12 22:40:21 +00:00
Ingo Weinhold
065aba535a
Added BMessageRunner to the build. Not implemented yet.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-08 21:56:36 +00:00
Ingo Weinhold
beebfc0af4
Added empty implementation with doxygen comments for public methods.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-08 21:53:27 +00:00
DarkWyrm
7fb951b11d
Added PortLink class to libopenbeos build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 23:36:52 +00:00
Ingo Weinhold
8c7b7c869d
* resolve_app() and translate_ref() do now traverse the supplied ref and
...
set it to the resolved entry. Fixed bug causing non-traversal of app
links. Unset the app meta MIME type's app hint, if it is invalid.
* resolve_app(): Fixed incorrect behavior in case the signature of the
found app is not the signature of the preferred app.
* Implemented SetSignature(). It is indeed needed and I finally found out.
:-)
* xLaunchAppPrivate(): The document ref is always resolved.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 21:59:57 +00:00
Ingo Weinhold
d8c0f6e4f5
InitData(): Set the correct signature when pre-registered under a wrong one.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-07 21:52:15 +00:00
Ingo Weinhold
f2d61cef5e
Implemented the Launch() methods and their helpers.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 22:51:19 +00:00
Ingo Weinhold
717a24b7a6
Fixed synchronous SendMessage() calls. _send_()'s wantsReply must always be false, otherwise we get flooded with B_NO_REPLY messages.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 22:50:23 +00:00
Ingo Weinhold
ad4fdf8d15
* Don't uninitialized be_app_messenger in the destructor.
...
* Fixed missing variable initialization in GetSupportedSuites().
* InitData(): Don't post B_ARGV_RECEIVED to ourselfs when pre-registered.
* InitData(): Added create_app_meta_mime().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-06 22:48:39 +00:00
Ingo Weinhold
c0aa02a83c
Added doxygen documentation for BRoster::Launch(). Implementation tomorrow. :-)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1373 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-04 21:05:52 +00:00
Tyler Dauwalder
ef3fb6465d
Added RegistrarThreadManager to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-01 07:25:04 +00:00
Tyler Dauwalder
9f6eedfaf3
+ Renamed and moved from src/servers/registrar/ThreadManager.{h,cpp}
...
+ Fixed iteration bugs
+ Added more complete debugging output
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1320 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-01 07:22:11 +00:00
DarkWyrm
8d22950d01
API and stability improvements
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-30 22:34:20 +00:00
Tyler Dauwalder
05b9dff7c4
Added RegistrarThread to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 07:13:11 +00:00
Tyler Dauwalder
cd7adc0b06
RegistrarThread class, which is the base class for threads
...
spawned in the registrar.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1265 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-29 07:01:43 +00:00
shatty
0fb7a1079b
fixed newline at end of file.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1242 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-28 09:51:57 +00:00
Ingo Weinhold
92a1f24167
Implemented BRoster::FindApp() and a bunch of helper functions needed for it. Tweaked some of the helpers signatures.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-22 00:12:56 +00:00
Stefano Ceccherini
15685713d1
Commit per Jeremy Rand, fixes build on Dano compiler
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-20 11:06:06 +00:00
Ingo Weinhold
7bb1eb8242
Fixed BLooper::UnlockFully(): It assumed benaphore style locking whereas semaphore style is used.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 16:56:48 +00:00
Ingo Weinhold
69b461cdbe
Fixed typo.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-09-03 01:09:20 +00:00
ejakowatz
77a6586a2e
Another test with minor tweaks to BLooper.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@874 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-25 15:44:28 +00:00
ejakowatz
cb5b0f6d58
Fixed SetCommonFilterList() so that the same list can't be added to more
...
than one looper.
Implemented UnlockFully(), and changed destructor and Quit() to use it.
Reordered the destructor slightly so as to delete fLockSem *after* the call
to UnlockFully().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 20:38:15 +00:00
ejakowatz
d008c62d53
Fixed a narsty little bug that suddenly started rearing its ugly head in
...
IsMessageWaiting() test #3 . fLastMessage wasn't getting initialized to
NULL on construction, and the random value was finally biting me. All
better now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-24 03:08:44 +00:00
ejakowatz
ff1ade6b3d
More tests and fixes for bugs exposed by them. Also removed spurious
...
instantiation of BRoster from BArchivable, line 323, as per Tyler's
mention. =)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-22 03:43:06 +00:00
jrand
e39c71fce8
Remove R3 compatibility details from BPropertyInfo, fix memory leak and implement endian-ness
...
aware flatten and unflatten code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-21 06:44:27 +00:00
Ingo Weinhold
41b5558a3c
Added explanative comment to get_app_path() and fixed the error return value of main_thread_for().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 20:21:10 +00:00
jrand
3841621d26
Fixed Flatten() and FlattenedSize() implementation so the unit tests pass now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@813 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-19 04:13:06 +00:00
jrand
52ec2aa88b
Fixed Unflatten() and FindMatch() so the unit tests pass now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@805 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 06:52:03 +00:00
jrand
75d07a502f
Add the BPropertyInfo implementation to the library.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@804 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 04:30:06 +00:00
jrand
765a2199e3
Add initial BPropertyInfo implementation, courtesy of Marc Flerackers.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@803 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-18 04:29:14 +00:00
Ingo Weinhold
4a87ab984b
Set the the application BHandler's name correctly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@754 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 22:38:24 +00:00
ejakowatz
54831cd6f1
Initial checkin for Gabe Yoder.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@739 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-13 14:02:00 +00:00
Ingo Weinhold
bbab11ba30
Changed BRoster::GetRunningAppInfo() return value back to B_BAD_TEAM_ID in case the team ID is < 0. I thought R5 returns B_ERROR, but it does only for -1, otherwise it also returns B_BAD_TEAM_ID. We don't mimic this slightly insane behavior.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@680 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:50:19 +00:00
Ingo Weinhold
ca3e9dba80
Fixed the return value in case of team ID < 0. R5 returns B_ERROR instead of B_BAD_TEAM_ID and so do we now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@677 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:34:04 +00:00
Ingo Weinhold
9e9f5a1ad3
Improved BMessenger::InitData() a bit: Now only one roster call is done, when a signature but no team ID is given.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-09 23:31:40 +00:00
Ingo Weinhold
672c1ea9ba
Fixed return codes in InitData().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@623 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 22:19:37 +00:00
Ingo Weinhold
9231d6b096
Added be_roster check in InitData().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@622 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 22:18:23 +00:00
ejakowatz
2e2e159adc
Work on ResolveSpecifier().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-06 03:58:59 +00:00